Upgrade puppet-git.lizard to Buster
It’s getting too hard to run PuppetDB on Stretch.
What we have to do:
check release notes & upgrade doc check modules compatibility
This is a rough plan that might work:
Move /var/lib/gitolite to its own (virtual) disk. Now we’ll have 3 gitolite disks. Clone the current puppet master vm (change its mac address) — creates new master. Temporarily rename sshd onion service on new VM Follow important part of the doc on creating new vm. Add it as a node to itself. Pin the puppetdb version. Upgrade to buster
- Ensure PuppetDB data goes through schema migration; run
puppetdb upgrade -c /etc/puppetdb/conf.d/config.iniif needed.
Make sure we have the
pg_trgmPostgreSQL extension enabled.
Unpin the puppetdb version and downgrade. Check puppetmaster logs for errors and deprecations and fix them. Point every agent to the new master once with
--noopto identify obvious issues.
Deal with issues by pushing fixes to new master. Migrate from
- [until this point we can easily revert]
Shutdown old vm and mark as no autostart. Disable Puppet agent on every system. Point the new system drive to the old VM. Merge the fixes in topic branches into master/production branches. Revert
18f135c4in the manifests repo.
Start puppet-git Push all updated submodules and the main manifests repo. Rename sshd onion service back to its official name on the new VM. Re-enable Puppet agent on every system, one after the other. Move new VM’s disks to the correct PV (= the same as the old VM’s disks). Delete temporary disks created for
- Related to #16927
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information