Book Image

Mastering Puppet

By : Thomas Uphill
Book Image

Mastering Puppet

By: Thomas Uphill

Overview of this book

Table of Contents (17 chapters)

Syslog


To use syslog, set reports = log in the main section of /etc/puppet/puppet.conf and report=true on all the nodes, as shown in the following snippet:

[main]
    reports = log
[agent]
    report = true

After restarting httpd on our masters, we'll see catalog compilation messages from nodes appearing in our syslog logs. By default, Puppet will use the daemon facility to change the facility set syslogfacility in the [main] section of puppet.conf. To determine your current facility, use the following command:

# puppet master --configprint syslogfacility
daemon

On our system using rsyslog, we can have all Puppet report messages go into a Puppet logfile using syslogfacility = local5, as shown in the following snippet:

[main]
  reports = log
  syslogfacility = local5

Then, in /etc/rsyslog.conf or /etc/syslog.conf (similar syntax), redirect all local5 level messages to puppet.log, as shown in the following snippet:

local5.*           /var/log/puppet.log

Even if you use one of the GUIs in the next...