Aller à la recherche

Take control!

Linux, PostgreSQL, Puppet and more

lundi 2 décembre 2013 15:15

Display catalog for host managed by puppet

This command will show the host catalog, compiled version of host configuration:

curl https://puppet:8140/production/catalog/$(hostname -f)? \
   --cacert /var/lib/puppet/ssl/certs/ca.pem \
   --cert /var/lib/puppet/ssl/certs/$(hostname -f).pem \
   --key /var/lib/puppet/ssl/private_keys/$(hostname -f).pem

Afficher le catalogue d'un hôte géré par puppet

La commande suivante permet d'afficher le catalogue, version compilée de la configuration d'un hôte:

curl https://puppet:8140/production/catalog/$(hostname -f)? \
   --cacert /var/lib/puppet/ssl/certs/ca.pem \
   --cert /var/lib/puppet/ssl/certs/$(hostname -f).pem \
   --key /var/lib/puppet/ssl/private_keys/$(hostname -f).pem