- generate new ssh key pair to use as github deploy keys; install per site/pm deploy key on lsst-it/lsst-puppet-hiera-private repo
- stop local agent (service)
- cp in sshkey for hiera
- check /etc/hosts to see if puppet-master is resolvable
- remove enc configuration from puppet.conf
- change env to IT_1141_hiera_redux
- rm old code/hiera paths (due to dir path changes)
- manually update r10k conf (first run only)
- restart puppetserver to ensure nothing is cached
- add custom facts
- run puppet agent in --noop mode
- run puppet agent
- restart puppet agent (service)
- stop local agent (service)
systemctl stop puppet
systemctl status puppet
- change env to IT_1141_hiera_redux
- check /etc/hosts to see if puppet-master is resolvable
- add custom facts
mkdir -p /etc/facter/facts.d
cat > /etc/facter/facts.d/role.txt <<END
role=graylog
site=po
END
cat /etc/facter/facts.d/role.txt
- run puppet agent in --noop mode
```sh
puppet agent --test --noop
Look for:
Info: Using configured environment 'IT_1141_hiera_redux'
- run puppet agent
puppet agent --test
- restart puppet agent (service)