Upgrading
Sections
To upgrade your deployment, you must upgrade both the infrastructure components and agents.
The order in which you
upgrade components is important. Always upgrade Puppet Server and PuppetDB simultaneously, including the puppetdb-termini
package on Puppet Server nodes, and always upgrade them before you
upgrade agent nodes. Do not run different major versions on your Puppet primary servers (including Server) and PuppetDB nodes.
puppet-agent
package is updated, make sure to restart the puppetserver
service afterward.Upgrade Puppet Server
Upgrade Puppet Server to adopt features and functionality of newer versions.
Upgrading the puppetserver
package effectively upgrades Puppet Server. The puppetserver
package, in turn,
depends on the puppet-agent
package, and your node’s package manager
automatically upgrades puppet-agent
if the new version of puppetserver
requires it.
Upgrade agents
Regularly upgrade agents to keep your systems running smoothly.
Upgrade Puppet Server.
Upgrade agents using the puppet_agent
module
Upgrade your Puppet agents using the
puppetlabs/puppet_agent
module.
The puppet_agent
module supports upgrading open source Puppet agents on *nix,
Windows, and macOS.
Upgrade *nix agents
To upgrade *nix nodes, use
the update
command.
yum update puppet-agent
Copied!
Apt:apt-get update
apt-get install --only-upgrade puppet-agent
Copied!
Upgrade Windows agents
To upgrade Windows agents, reinstall the agent using the installation instructions. You don't need to uninstall the agent before reinstalling unless you’re upgrading from 32-bit Puppet to the 64-bit version.
Upgrade macOS agents
Use the puppet resource
command to upgrade macOS agents.
Download the appropriate agent tarball.
sudo puppet resource package "<NAME>.dmg" ensure=present source=<FULL PATH TO DMG>
Copied!
Upgrade PuppetDB
Upgrade PuppetDB to get the newest features available.