Last active
August 29, 2015 14:01
-
-
Save zipkid/8846494faa13043686f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
[root@poison ~]# cd /etc/puppet/modules/ | |
[root@poison modules]# mkdir -p broken/manifests | |
[root@poison modules]# cd broken/manifests/ | |
[root@poison manifests]# vi init.pp | |
[root@poison manifests]# cat init.pp | |
class broken ( | |
$param1="default1", $param2='default2', $param3='default3' | |
) { | |
notify { "class broken, param1=${param1} param2=${param2} param3=${param3}": } | |
} | |
[root@poison manifests]# puppet apply -e 'include broken' | |
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults | |
Notice: Compiled catalog for poison.home.zipkid.com in environment production in 0.61 seconds | |
Notice: class broken, param1=default1 param2=default2 param3=default3 | |
Notice: /Stage[main]/Broken/Notify[class broken, param1=default1 param2=default2 param3=default3]/message: defined 'message' as 'class broken, param1=default1 param2=default2 param3=default3' | |
Notice: Finished catalog run in 0.24 seconds | |
[root@poison manifests]# | |
[root@poison manifests]# puppet --version | |
3.6.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment