Upload
michael-smith
View
100
Download
0
Embed Size (px)
Citation preview
Upgrade Puppet Agents 🔮 彡゚◉ ω◉ ) つー☆ * 🔮
The puppet_agent Module Story
Michael SmithPuppet Labs
package {‘puppet’: ensure => latest,}
The Problem
package {‘puppet-agent’: ensure => 1.3.5, source => ‘...’,}
The Problem
# assume aio_agent_version factif ($::aio_agent_version != ‘1.3.5’) { file {‘/tmp/pkg’: source => ‘https://…’, } ~> package {‘puppet-agent’: ensure => 1.3.5, source => ‘/tmp/pkg’, }}
The Problem
Not justpuppet-agent problems
Puppet 3 → 4
Preparation
Puppet 4 MigrationModule is restricted to Puppet 3.8+
●Disable stringify_facts (FOSS)
●Future parser
Puppet 4/Facter 3 Preparation
●Directory environments
●catalog_previewPerform upgrade from new master (Puppet Server 2.1+)
Puppet 4 Migration
Demo
Puppet 4 Migration
What happened?
Puppet 4 Migration
Copied SSL files
● ssldir● certdir● privatedir● privatekeyd
ir● publickeydir● requestdir
What happened?MCollective
(server.cfg/client.cfg)
resets logfileappends to
libdir and plugin.yaml
ensure service starts
Reset settings
vardirrundirlibdirconfdirclassfiledisable_warningsSSL settings
Puppet 4 Migration
Module Structure
Puppet.conf
Install
Windows Install
What now?
- More platforms- Puppet 4 -> 4 Upgrades- Manage agent config- Improve package providers?- Downgrades?
What now?
Other ideas?
- http://docs.puppetlabs.com/pe/latest/install_upgrading.html
- http://docs.puppetlabs.com/pe/latest/install_upgrading_agents.html
- http://docs.puppetlabs.com/puppet/latest/reference/upgrade_major_server.html
- http://docs.puppetlabs.com/puppet/latest/reference/upgrade_major_agent.html
- https://forge.puppetlabs.com/puppetlabs/puppet_agent
- http://docs.puppetlabs.com/pe/latest/install_multimaster.html
References
Questions?And thanks for listening