Skip to content

Instantly share code, notes, and snippets.

@paaloeye
Last active December 15, 2015 19:18
Show Gist options
  • Save paaloeye/5309970 to your computer and use it in GitHub Desktop.
Save paaloeye/5309970 to your computer and use it in GitHub Desktop.
Puppet REST api
# Command to communicate with puppet
curl --cert /etc/puppet/ssl/certs/puppet..pem \
--key /etc/puppet/ssl/private_keys/puppet..pem \
--cacert /etc/puppet/ssl/ca/ca_crt.pem \
-H 'Accept: yaml' \
https://puppet.:8140/production/catalog/puppet-inv.local
#
# Paths
#
# Content of File resource with source attribute 'modules/foo/bar'
/production/file_content/modules/foo/bar
# Catalog for puppet-inv.local node
/production/catalog/puppet-inv.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment