Puppet#
Puppet is an open-source configuration management and deployment tool. The operator uses it on engagements to manage agents on a fleet, sign certs from the master, and push or audit modules across nodes.
Services#
Command |
Effect |
|---|---|
|
Start Puppet server service. |
|
Enable Puppet server service on boot. |
|
Start Puppet agent service. |
|
Enable Puppet agent service on boot. |
Certificates#
Run on the master.
Command |
Effect |
|---|---|
|
List available nodes to sign. |
|
List all signed nodes. |
|
Manually sign a specific node. |
|
Sign all nodes. |
|
Remove the cert. |
Nodes#
Command |
Effect |
|---|---|
|
Remove node and cert. |
Modules#
Run on the master.
Command |
Effect |
|---|---|
|
List currently installed modules. |
|
Install module from |
|
Remove the module. |
|
Upgrade to a new version of the module. |
|
Search modules on |
Agent#
Command |
Effect |
|---|---|
|
Run Puppet agent on demand. |
|
Disable Puppet agent. |
|
Enable Puppet agent. |
|
Print location of Puppet agent configuration file. |
|
Preview what Puppet will change without making the changes. |
|
Preview changes for a particular module. |
|
Check the runtime interval. |
Config#
Auto cert sign on master, edit /etc/puppetlabs/puppet/autosign.conf.
*.<DOMAIN>
Change run interval on the agent, edit /etc/puppetlabs/puppet/puppet.conf.
[agent]
runinterval = 1800
Default is every 30 minutes (1800 seconds).
Change agent environment, edit /etc/puppetlabs/puppet/puppet.conf.
[main]
environment = <ENVIRONMENT>
Default is production.
Change agent default master, edit /etc/puppetlabs/puppet/puppet.conf.
[main]
server = <PUPPET_SERVER>
Default is puppet.
Triage#
Command |
Effect |
|---|---|
|
Reach the Puppet master by IP first. |
|
Short domain name reach to the Puppet master. |
|
Make sure FQDN can reach the Puppet master. |
|
Check both FQDN and short domain are entered in client DNS. |
|
If using DNS server side, check nameservers can resolve the name. |
|
Check DNS configuration on the client. |
|
Restart connection, check for errors. |
|
If using a custom server, check the config is correct for non-default. |
|
Test connection to Puppet server on port 8140. |
|
If time is out of sync, get it in sync with the master. |
SSL#
Command |
Effect |
|---|---|
|
Clean node on the master. |
|
Remove SSL certificate on the node. |
|
Run Puppet agent on the node. |