Skip to content

Instantly share code, notes, and snippets.

@josephoaks
Last active December 21, 2017 18:31
Show Gist options
  • Save josephoaks/c6ba4f71181b088f25a2cbcb77d07e11 to your computer and use it in GitHub Desktop.
Save josephoaks/c6ba4f71181b088f25a2cbcb77d07e11 to your computer and use it in GitHub Desktop.
pirate.puppetlabs.vm.yaml
---
nginx::vhosts:
testing.pirate.puppetlabs.vm:
docroot: "/var/www/testing"
dev.pirate.puppetlabs.vm:
docroot: "/var/www/dev"
#### Hiera 3 ####
puppet apply -e "notice(hiera('nginx::vhosts')['dev.pirate.puppetlabs.vm']['docroot'])"
#### Hiera 5 ####
puppet apply -e "notice(lookup('nginx::vhosts')['dev.pirate.puppetlabs.vm']['docroot'])"
Notice: Scope(Class[main]): /var/www/dev
Notice: Compiled catalog for pirate.puppetlabs.vm in environment production in 0.48 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment