Ger Apeldoorn
2012-May-07 10:38 UTC
[Puppet Users] Remote-upgrading puppet-enterprise agents
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 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/R6toDLsObcoJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.