example how to get node information from Puppet server

This commit is contained in:
2022-05-13 10:17:23 +02:00
parent 3503e5e544
commit c0728050dc

View File

@@ -31,3 +31,12 @@ Puppet execution can be disabled for a certain amount of time with the
The disabling time has to be in the ``date`` format (see date(1)).
To manually check the node information on the Puppet server for given host, do ::
FQDN=$(hostname --fqdn)
curl \
--cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem \
--cert /etc/puppetlabs/puppet/ssl/certs/$FQDN.pem \
--key /etc/puppetlabs/puppet/ssl/private_keys/$FQDN.pem \
"https://puppet01.psi.ch:8140/puppet/v3/node/$FQDN?environment=prod&configured_en" \
| jq .