Skip to content

Instantly share code, notes, and snippets.

@haani-niyaz
Created August 23, 2016 02:12
Show Gist options
  • Save haani-niyaz/0df57eac21014300cf6386e5c3f779da to your computer and use it in GitHub Desktop.
Save haani-niyaz/0df57eac21014300cf6386e5c3f779da to your computer and use it in GitHub Desktop.
hiera <key> # to query common.yaml only
hiera <key> -m <FQDN> # to query config of a given node (using mcollective)
hiera <key> -i <FQDN> # to query config of a given node (using Puppet inventory)
hiera <key> environment=production fqdn=myhost1 # to pass values for hiera.yaml
# To dump complex data
hiera -a <array key>
hiera -h <hash key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment