Fundraising/techops/procedures/servers-role-build
Appearance
< Fundraising | techops
Special notes when building out a host in the build role
Sometimes things can't be fully automated with puppet. A large portion of these steps were found while setting up frpm2001 in T242269 and T247133-
Here are some of the modifications needed on this build:
SSH
- Create root ssh keys
- Update authorized keys in git for git user on build role
- Update authorized keys in git for puppet user on build role
- Verify host keys for commonly made connections on new and existing build hosts
Hiera
Requires #SSH
- Update common.yaml to specify the host as a puppetmaster
- Add host specific hieradata/site/$host.yaml file where puppet master overrides will occur
Puppet
- Run puppet-merge for base and private repos
- Update modules/role/files/build/etc/motd.tail to reference new host as a puppetmaster
GPG
- Import gpg keys from another build host (frpm1002/frpm2001)
- Update gpg.conf file to contain fr_tech_ops group
MariaDB
- Update mysql grants to allow new host to connect to payments db
- Add /root/.payments-my.cnf with the correct info so the host can back up the payments db
Backups
- Update authorized keys in git for backupmover user in the default role
- Update modules/role/manifests/logger.pp for backup definition
- Update modules/fundraising/templates/archive_sync.erb for backup sync
- Update modules/fundraising/templates/archive_purge.erb for backup purging
Code deploy
- Create ssh key for mwdeploy user
- Update authorized keys in git for mwdeploy user in the default role