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
Beware of https://bugs.debian.org/932135
We want PuppetDB 6.2.0-4 (currently in sid, maintainer won't file a stable update request yet, he's first waiting for a proper fix on the PostgreSQL side: https://bugs.debian.org/932247) to do the DB schema migration. And then, likely, we can downgrade to the Buster package.