Remote-upgrading puppet-enterprise agents

180 views
Skip to first unread message

Ger Apeldoorn

unread,
May 7, 2012, 6:38:30 AM5/7/12
to puppet...@googlegroups.com
Hi,

Today, I've upgrade my PE installation to version 2.5 and found that there is no way to remote upgrade your clients with puppet node install.

I figured out how to do it, so I might as well share it. (I assume that you already got 'puppet node install' working)

First, you need to create a cloudpack script that runs the puppet-enterprise-upgrader instead of the installer. It is created by search/replace:

sed 's/puppet-enterprise-installer/puppet-enterprise-upgrader/' /opt/puppet/lib/ruby/site_ruby/1.8/puppet/cloudpack/scripts/puppet-enterprise.erb > /opt/puppet/lib/ruby/site_ruby/1.8/puppet/cloudpack/scripts/puppet-enterprise-upgrade.erb

Then, create an answer file to upgrade your agent, this is mine in ~/Puppet/agentupgrade.answer:
q_puppet_cloud_install=n
q_puppet_enterpriseconsole_install=n
q_puppetagent_install=y
q_puppetagent_server=puppetenterprise.example.com
q_puppetca_install=n
q_puppetmaster_install=n
q_rubydevelopment_install=n
q_upgrade_install_wrapper_modules=n
q_upgrade_installation=y
q_upgrade_remove_mco_homedir=n
q_vendor_packages_install=n

Then, you run the puppet node install with the new script and answerfile:

puppet node install --login=root --keyfile=~/.ssh/id_rsa --install-script puppet-enterprise-upgrade --installer-payload ~/Puppet/puppet-enterprise-2.5.0-el-6-x86_64.tar.gz  --installer-answers ~/Puppet/agentupgrade.answer --puppetagent-certname [Client-certname] [Client-FQDN]

That is all!

Ger
Reply all
Reply to author
Forward
0 new messages