--- tags: maintenance project: infra --- # Upgrade puppet-pe from 2019.0 to 2019.8 [Documentation](https://puppet.com/docs/pe/2019.8/upgrading_pe.html) ## Requirement - [x] AWS EBS snapshot - [x] Delete puppet db report - [x] `puppet resource service pe-puppetdb ensure=stopped` - [x] Create `/tmp/delete-reports.sql` - [x] Owned by pe-postgres:pe-postgres - [x] `puppet resource service pe-puppetdb ensure=running` - [x] Download 2019.8 on puppet.jenkins.io - [x] `tar xvzf puppet-enterprise-2019.8.7-ubuntu-18.04-amd64.tar.gz` - [x] Upgrade - [x] `./puppet-enterprise-installer` - [x] `puppet agent -t` - [x] `puppet agent -t` # twice ## Warnings This section gather warnings that we got during the upgrade process and that we need to address later on. **Use puppet_agent module** ``` Use puppet_agent module version 4.0.0 or later for agent upgrades. The updated module includes several important bug fixes which improve the upgrade experience. ``` **Upgrade caution** ``` Please read https://puppet.com/docs/pe/2019.8/upgrading_pe.html#upgrade_cautions before upgrading to PE 2019.8.7. ``` **Upgrade hiera from 3 to 5 ``` upgrade hiere from 3 to 5 ``` **Remove old database directories** ``` When you have verified that the 11 datastore is up to date, you may wish to remove the following 9.6 directories to free up space: /opt/puppetlabs/server/data/postgresql/9.6, /opt/puppetlabs/server/data/postgresql/activity/PG_9.6_201608131, /opt/puppetlabs/server/data/postgresql/classifier/PG_9.6_201608131, /opt/puppetlabs/server/data/postgresql/orchestrator/PG_9.6_201608131, /opt/puppetlabs/server/data/postgresql/puppetdb/PG_9.6_201608131, /opt/puppetlabs/server/data/postgresql/rbac/PG_9.6_201608131 ``` **Removing old postgresql version** ``` Your PE PostgreSQL 9.4 directories are currently taking up 0.41 gigabytes. Your PE PostgreSQL 9.6 directories are currently taking up 0.42 gigabytes. Your PE installation is now running PostgreSQL 11. You can optionally remove packages and data associated with previous PostgreSQL versions with the command "puppet infrastructure run remove_old_postgresql_versions". ``` **Ensure puppet agent run** ``` Run 'puppet agent -t' twice on the primary server node. ```