Skip to content

Instantly share code, notes, and snippets.

@kabakaev
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save kabakaev/7638e95da7199705cd81 to your computer and use it in GitHub Desktop.

Select an option

Save kabakaev/7638e95da7199705cd81 to your computer and use it in GitHub Desktop.
simulate Hiera run in CLI
# or hiera --hash \
hash='rkt_base::monitor::icinga2::is_server'; \
env='staging'; \
role='puppet'; \
role2='monitor'; \
role3='log'; \
countrycode='id'; \
hiera \
-c /etc/puppet/environments/production/hiera.yaml --debug "$hash" \
::environment=production environment=production \
env=$env ::env=$env \
role=$role ::role=$role \
role2=$role2 ::role2=$role2 \
role3=$role3 ::role3=$role3 \
countrycode=$countrycode ::countrycode=$countrycode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment