Linux servers in my company are configured and managed by Puppet which installed with Foreman.
While looking at the Foreman dashboard I can see that 95% of the servers appear as synced and updated (blue icon) and 20 servers which have no known common ground appear as unsynced and not updated.
When looking on the /etc/puppet/puppet.conf
file on any of the Puppet agents (the ones which are updated or the ones that are not updated), I see it's configured like so:
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
Which is the default configuration which came with the package.
You can see that under the [agent]
section the only configured directives are classfile
and localconfig
while on the Puppet server's /etc/puppet/puppet.conf
the '[agent]' section looks like so:
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$statedir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig
# Disable the default schedules as they cause continual skipped
# resources to be displayed in Foreman - only for Puppet >= 3.4
default_schedules = false
report = true
pluginsync = true
masterport = 8140
environment = production
certname = puppet.nj.company.com
server = puppet.nj.company.com
listen = false
splay = false
runinterval = 1800
noop = false
configtimeout = 120
So my questions are:
- Shall I copy what's under agent section in the Puppet server to the clients?
- What could cause the specific servers not to be updated by the Puppet server if they are all configured automatically by Puppet and they're all configured in the same way?