User Tools

Site Tools


linux:puppet_deploy

For AIX:

Puppet useful commands

Show the configuration parameters:

# puppet config print all
# puppet config print modulepath

Main config file is in /etc/puppet/puppet.conf

Important options under [main] section:

vardir: Path where Puppet stores dynamic data.

ssldir: Path where SSL certifications are stored.

Under [agent] section:

server: Host name of the PuppetMaster. (Default: puppet)

certname: Certificate name used by the client. (Default is its fqdn)

runinterval: Number of minutes between Puppet runs, when running as service. (Default: 30)

report: If to send Puppet runs' reports to the **report_server. (Default: true)

Under [master] section:

autosign: If new clients certificates are automatically signed. (Default: false)

reports: How to manage clients' reports (Default: store)

storeconfigs: If to enable store configs to support exported resources. (Default: false)

Client configuration

Test puppet client with no operation, and debug, this will generate a key on the server that needs to be register for use:

puppet agent -d --noop -t

On the server, register the client

puppet cert sign "<client_hostname>"

And list all puppet clients

puppet cert list -all

The file /etc/puppet/manifest/nodes.pp contain the nodes and their characteristics: files and packages to deploy

linux/puppet_deploy.txt · Last modified: 2021/01/01 21:25 (external edit)