• Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
all links
  • puppetdb call api en HTTPS

    With SSL:

    curl -X GET https://puppetdb.example.com:8081/pdb/query/v4/resources \
    --tlsv1 \
    --cacert /etc/puppet/ssl/certs/ca.pem \
    --cert /etc/puppet/ssl/certs/thisnode.pem \
    --key /etc/puppet/ssl/private_keys/thisnode.pem \
    --data-urlencode query@

    This requires that you specify a certificate (issued by the same CA PuppetDB trusts), a private key, and a CA certificate.

    In both examples, should be a file that contains the query to execute.

    October 19, 2015 - permalink - https://docs.puppetlabs.com/puppetdb/3.1/api/query/tutorial.html
    puppetdb