Created
January 29, 2014 21:48
-
-
Save gsarjeant/8697898 to your computer and use it in GitHub Desktop.
$environment in hiera_config in PE 3.2
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
== Static hiera_config == | |
[root@master puppet]# grep hiera puppet.conf | |
hiera_config = /etc/puppetlabs/puppet/environments/dev/hiera.yaml | |
[root@master environments]# puppet apply --environment=dev dev/modules/testmod/tests/init.pp | |
Notice: Compiled catalog for master.puppetlabs.vm in environment dev in 0.10 seconds | |
Notice: My param in PE 3.2 is Dev is so much more better than production, friend. | |
Notice: /Stage[main]/Testmod/Notify[My param in PE 3.2 is Dev is so much more better than production, friend.]/message: defined 'message' as 'My param in PE 3.2 is Dev is so much more better than production, friend.' | |
Notice: Finished catalog run in 0.19 seconds | |
== Dynamic hiera_config == | |
[root@master puppet]# grep hiera puppet.conf | |
hiera_config = /etc/puppetlabs/puppet/environments/$environment/hiera.yaml | |
[root@master environments]# puppet apply --environment=dev dev/modules/testmod/tests/init.pp | |
Warning: Config file /etc/puppetlabs/puppet/environments/hiera.yaml not found, using Hiera defaults | |
Notice: Compiled catalog for master.puppetlabs.vm in environment dev in 0.10 seconds | |
Notice: My param in PE 3.2 is | |
Notice: /Stage[main]/Testmod/Notify[My param in PE 3.2 is ]/message: defined 'message' as 'My param in PE 3.2 is ' | |
Notice: Finished catalog run in 0.18 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment