Files
2026-09-28 17:14:01 +02:00

1.3 KiB

Puppet Client

The Puppet Agent updates the configuration on the node. It automatically runs regularly, for configuration details check the configuration guide.

The puppet client can be manually triggered/run by calling following command on the client:

puppet agent -t

To only check what the client would actually do, without actually changing the systems configuration/files/etc. you can use the --noop option:

puppet agent -t --noop

To instruct the puppet client to use a specific puppet environment use:

puppet agent -t --environment my_environment

The client will keep this environment until

  • either the puppet environment is removed from the server (i.e. the client will do a fallback to the default environment)
  • you manually change the environment again

Configuration

Attach Node to Different Puppet Server

For testing purpose you might want to change the Puppet server to which a test node is attached to. To do so do, change the server in the [main] section of /etc/puppetlabs/puppet/puppet.conf accordingly.

Then delete the current host and CA certificate and the CRL:

rm -f /etc/puppetlabs/puppet/ssl/certs/*
rm -f /etc/puppetlabs/puppet/ssl/crl.pem

Finally run the puppet agent again.