#TODO: create a Bolt plan to automate this
- Install
git
andbolt
- Create the metrics_import directory in
root
's home directory
mkdir metrics_import
- Clone operational dashboards to this directory
cd metrics_import
git clone https://github.com/puppetlabs/puppet_operational_dashboards.git
- Save files/metrics_import.sh to the
puppet_operational_dashboards
directory created by thegit clone
- Run the
provision_dashboard
plan fromroot
's home directory
bolt plan run puppet_operational_dashboards::provision_dashboard --targets localhost
- Save the Support GPG key from 1pass to a file
key.asc
- Import it
gpg --import key.asc
- Save the key's passphrase to a file
/root/.support_gpg
- Save
files/metrics_import.service
to/etc/systemd/system/metrics_import.service
- Save
files/metrics_import.timer
to/etc/systemd/system/metrics_import.timer
- Do a daemon-reload
systemctl daemon-reload
- Confirm the timer is running
systemctl status metrics_import.timer