You can use built-in PE plans to clean up /opt/puppetlabs
by removing packages from older versions of PE and data from PostgreSQL 9.6.
Version and installation information
PE version: All supported versions
Solution
Remove old PE packages
You can remove PE packages prior to the current version from your primary server and any replicas, compilers, and database nodes that you have. On the primary server, run puppet infrastructure run remove_old_pe_packages pe_version=current
Note: In 2019.8.7 and later, you don’t have to specify pe_version=current
, since the value is current
by default.
Alternatively, you can remove PE package versions older than a specific version by setting a value for pe_version
, for example: pe_version=2019.8.10
For more information on remove_old_pe_packages
, including additional parameters it accepts, on the primary server, run puppet infrastructure run remove_old_pe_packages --help
Remove old PostgreSQL versions
PE 2019.2 included an upgrade to PostgreSQL 11. If you have PostgreSQL 9.6 data on disk from earlier versions of PE, you can clean that up using the remove_old_posgresql_versions
plan. The data isn’t cleaned up automatically during PE upgrades, in case you need to roll back.
On the primary server, run puppet infrastructure run remove_old_postgresql_versions
For more information on remove_old_postgresql_versions
, including additional parameters it accepts, on the primary server, run puppet infrastructure run remove_old_postgresql_versions --help
Long term maintenance of PE Databases
To tune, maintain, and back up PE PostgreSQL, use the puppetlabs-pe_databases
module.
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles