Puppet

From Puppet web site:

Puppet is IT automation software that helps system administrators manage infrastructure throughout its lifecycle, from provisioning and configuration to patch management and compliance. Using Puppet, you can easily automate repetitive tasks, quickly deploy critical applications, and proactively manage change, scaling from 10s of servers to 1000s, on-premise or in the cloud.

Installation

Install the puppet package. Alternatively, install puppet-gitAUR for the development version.

If you want to install a puppet master you can install the puppetserverAUR package, the documentation for which is in Puppet server.

Configuration

Puppet's main configuration file is puppet.conf which is located at /etc/puppetlabs/puppet/puppet.conf.

There are 3 sections to place settings depending if it is a master/agent: [main], [agent] and [master].

Bare minimum of settings are:

  • server: The hostname of the puppet server. Default:
  • report: Most users should set this to true.
  • pluginsync: Most users should set this to true.
  • certname: The certified name of the machine (unique identifier). Default:

Puppet will look for node configuration in .

After starting puppet by daemon/cron/standalone, it will generate certificates in directory. You need to accept this certificate in the puppet master:

# puppet cert sign name

Notes on bindaddress for puppet master.

The default value for bindaddress is 0.0.0.0, which makes puppet listen on IPv4 only: bindaddress = 0.0.0.0

To make puppet master listen on IPv6, set the bindaddress value to:

To make puppet listen on both interface, set the value to:

Facter

Facter is a companion program of puppet that gathers facts about the system it runs on.

Commands:

# puppet facts find facter
# facter -p

Puppet Resources

Packages

Pacman is supported by puppet. Installing packages works out of the box since puppet 3.1.0.

Services

Since puppet 3.2.1, systemd on Arch Linux is fully supported.

See systemctl for details on how to use the provided units.

PuppetDB

PuppetDB is the fast, scalable, and reliable data warehouse for Puppet. It caches data generated by Puppet, and gives you advanced features at awesome speed with a powerful API. PuppetDB is available as and . See https://github.com/puppetlabs/puppetdb for more information.

Puppet Bolt

Puppet Bolt is standalone piece of software that was introduced by puppet to allow applying tasks without the need for puppet agent and puppet server (like Ansible/Salt). Of course many advantages of the master/agent-design are then lost but if you need to send one-time commands puppet bolt is the right tool for you.

For example restarting a webserver or deleting the mailqueue is done better with puppet bolt whereas keeping a a package to the most current version should be done with standard puppet configuration management.

The only needed package is . More information can be found here: Documentation / official hands-on lab

gollark: But why?
gollark: /warp choruscity
gollark: Join the Chorus City[-State]!
gollark: Ne[LETTER V REDACTED]er!
gollark: Really? A letter v?
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.