From c0728050dcc3a815c4a250349a267a27025dc03e Mon Sep 17 00:00:00 2001 From: Konrad Bucheli Date: Fri, 13 May 2022 10:17:23 +0200 Subject: [PATCH] example how to get node information from Puppet server --- admin-guide/puppet/client.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/admin-guide/puppet/client.rst b/admin-guide/puppet/client.rst index 277cf5d5..441dcd2a 100644 --- a/admin-guide/puppet/client.rst +++ b/admin-guide/puppet/client.rst @@ -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 .