Or cheatshit (because of puppet)
############## command ############## | —————————————————————— |
---|---|
puppet config print –section main server | from a /slave/ print which is the master server |
puppet config print –section main ca_server | print which is the CA server |
puppet config print –render-as json –section main | jq . | Print all the config as json (pipped through jq to be able to read it… |
############## command ############## | —————————————————————— |
---|---|
puppet config print modulepath | Print location of the modules in a ${PATH} style |
puppet module list | List installed modules |
puppet module install puppetlabs-postgresql | Install one module from puppet-forge |
############## command ############## | —————————————————————— |
---|---|
puppet parser validate module_name/manifests/init.pp | validate one module (aka lint) |
############## command ############## | —————————————————————— |
---|---|
puppetserver ca list –all | list certificates from all nodes (should be executed on the puppet-master node |
puppet job run –nodes node1,node2 | Run puppet agent on nodes node1,node2 |
############## command ############## | —————————————————————— |
---|---|
cmd | desc |