haani-niyaz
8/23/2016 - 2:12 AM

From http://lzone.de/cheat-sheet/Puppet

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>