Last active
December 21, 2017 18:31
-
-
Save josephoaks/c6ba4f71181b088f25a2cbcb77d07e11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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