update, upgrade

Upgrading Puppet Enterprise

Because I'm using Puppet Enterprise version 2016.4.2 (LTS) and version 2016.4.3 is available I want to upgrade Puppet Enterprise to latest version. In this blog I will tell you how to update to the latest Puppet Verion.

Download the new version from https://puppet.com/misc/pe-files/previous-releases/2016.4.3

# wget https://pm.puppetlabs.com/puppet-enterprise/2016.4.3/
puppet-enterprise-2016.4.3-el-7-x86_64.tar.gz
# tar -xvf puppet-enterprise-2016.4.3-el-7-x86_64.tar.gz
puppet-enterprise-2016.4.3-el-7-x86_64/VERSION
puppet-enterprise-2016.4.3-el-7-x86_64/LICENSE.txt
puppet-enterprise-2016.4.3-el-7-x86_64/puppet-enterprise-installer
puppet-enterprise-2016.4.3-el-7-x86_64/puppet-enterprise-uninstaller
puppet-enterprise-2016.4.3-el-7-x86_64/README.markdown
puppet-enterprise-2016.4.3-el-7-x86_64/packages/bootstrap-metadata
puppet-enterprise-2016.4.3-el-7-x86_64/packages/el-7-x86_64-package-versions.json
puppet-enterprise-2016.4.3-el-7-x86_64/packages/el-7-x86_64/pe-    activemq-5.14.3-1.pe.el7.noarch.rpm
puppet-enterprise-2016.4.3-el-7-x86_64/packages/el-7-x86_64/pe-bundler-1.8.2-6.pe.el7.noarch.rpm
....

Update to version 2016.4.3:

# cd puppet-enterprise-2016.4.3-el-7-x86_64
# ls -l
total 208
drwxr-xr-x. 2 root root     50 Feb 15 20:36 conf.d
-rw-rw-r--. 1 root root  19151 Dec 21 21:21 LICENSE.txt
drwxr-xr-x. 2 root root   4096 Feb 15 20:36 modules
drwxr-xr-x. 3 root root   4096 Feb 15 20:36 packages
-rwxrwxr-x. 1 root root  33783 Feb  1 01:47 puppet-enterprise-installer
-rwxrwxr-x. 1 root root 136894 Feb  1 01:47 puppet-enterprise-uninstaller
-rw-rw-r--. 1 root root   1225 Dec 21 21:21 README.markdown
-rw-rw-r--. 1 root root      9 Feb  1 01:47 VERSION
#./puppet-enterprise-installer
~/puppet-enterprise-2016.4.3-el-7-x86_64 ~/puppet-enterprise-  2016.4.3-el-7-x86_64
=============================================================
Puppet Enterprise Installer
=============================================================
## We've detected an existing Puppet Enterprise 2016.4.2 install.
 Would you like to proceed with text-mode upgrade/repair? [Yn]Y
## We've found a pe.conf file at   /etc/puppetlabs/enterprise/conf.d/pe.conf.
 Proceed with upgrade/repair of 2016.4.2 using the pe.conf at  /etc/puppetlabs/enterprise/conf.d/pe.conf? [Yn]Y
2017-02-15 20:40:33,351 Running command:   /opt/puppetlabs/puppet/bin/puppet agent       --disable='puppet-enterprise-installer preparing to configure node'
## We're installing the Puppet Agent...
....
## Puppet Enterprise configuration complete!
Documentation: https://docs.puppet.com/pe/2016.4/index.html
Release notes: https://docs.puppet.com/pe/2016.4/release_notes.html
If this is a monolithic configuration, run 'puppet agent -t' to
complete the setup of this system.
If this is a split configuration, install or upgrade the remaining
PE components, and then run puppet agent -t on the Puppet master,
PuppetDB, and PE console, in that order.

We are using monolithic configuration so:

# puppet agent -t
Info: Loading facts
Info: Caching catalog for slotpuppetmaster
Info: Applying configuration version '1487188546'
Notice:    /Stage[main]/Puppet_enterprise::Master::File_sync_disabled/File[/etc/puppetlabs/puppetserver/conf.d/file-sync.conf]/ensure: removed
Info: /Stage[main]/Puppet_enterprise::Master::File_sync_disabled/File[/etc/puppetlabs/puppetserver/conf.d/file-sync.conf]: Scheduling refresh of     Service[pe-puppetserver]
Notice: /Stage[main]/Puppet_enterprise::Master::Puppetserver/Service[pe-  puppetserver]: Triggered 'refresh' from 1 events
Notice: Applied catalog in 131.00 seconds

That's all :-)