Upgrading Puppet Agents

19
Upgrade Puppet Agents ◉ ω◉ ) * The puppet_agent Module Story Michael Smith Puppet Labs

Transcript of Upgrading Puppet Agents

Page 1: Upgrading Puppet Agents

Upgrade Puppet Agents 🔮 彡゚◉ ω◉ ) つー☆ * 🔮

The puppet_agent Module Story

Michael SmithPuppet Labs

Page 2: Upgrading Puppet Agents

package {‘puppet’: ensure => latest,}

The Problem

Page 3: Upgrading Puppet Agents

package {‘puppet-agent’: ensure => 1.3.5, source => ‘...’,}

The Problem

Page 4: Upgrading Puppet Agents

# 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

Page 5: Upgrading Puppet Agents

Not justpuppet-agent problems

Page 6: Upgrading Puppet Agents

Puppet 3 → 4

Page 7: Upgrading Puppet Agents

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+)

Page 8: Upgrading Puppet Agents

Puppet 4 Migration

Page 9: Upgrading Puppet Agents

Demo

Puppet 4 Migration

Page 10: Upgrading Puppet Agents

What happened?

Puppet 4 Migration

Page 11: Upgrading Puppet Agents

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

Page 12: Upgrading Puppet Agents

Module Structure

Page 13: Upgrading Puppet Agents

Puppet.conf

Page 14: Upgrading Puppet Agents

Install

Page 15: Upgrading Puppet Agents

Windows Install

Page 16: Upgrading Puppet Agents

What now?

Page 17: Upgrading Puppet Agents

- More platforms- Puppet 4 -> 4 Upgrades- Manage agent config- Improve package providers?- Downgrades?

What now?

Other ideas?

Page 18: Upgrading Puppet Agents

- 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

Page 19: Upgrading Puppet Agents

Questions?And thanks for listening