Puppet agent uses various network services which the Puppet master provides in order to manage systems. Other systems can access these services in order to use the Puppet master’s data. For more about more Puppet’s API, refer to the following:
Testing the HTTP API using curl
An example of how you can use the HTTP API to retrieve the catalog for a node can be seen using curl.
curl --cert /etc/puppetlabs/puppet/ssl/certs/mymachine.pem \ --key /etc/puppetlabs/puppet/ssl/private_keys/mymachine.pem \ --cacert /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem \ -H 'Accept: pson' \ https://puppetmaster:8140/puppet/v3/catalog/mymachine?environment=production
Most of this command consists of pointing curl to the appropriate SSL certificates, which will be different depending on your ssldir location and your node’s certname.