Created
October 3, 2013 16:17
-
-
Save timmow/6812570 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
| > puppet apply test.pp | |
| notice: test main | |
| notice: /Stage[main]//Test[blah]/Notify[test main]/message: defined 'message' as 'test main' | |
| notice: test2 blah | |
| notice: /Stage[main]//Test[blah]/Test2[bleh]/Notify[test2 blah]/message: defined 'message' as 'test2 blah' |
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
| > puppet apply test.pp | |
| notice: test blah | |
| notice: /Stage[main]//Test[blah]/Notify[test blah]/message: defined 'message' as 'test blah' | |
| notice: test2 bleh | |
| notice: /Stage[main]//Test[blah]/Test2[bleh]/Notify[test2 bleh]/message: defined 'message' as 'test2 bleh' | |
| notice: Finished catalog run in 0.04 seconds | |
| ☃ tmower-dev-02 ~ |
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
| define test($url = $title) { | |
| notify {"test $url":} | |
| #notify {$name:} | |
| test2{'bleh':} | |
| } | |
| define test2($url = $title) { | |
| notify {"test2 $url":} | |
| } | |
| test{'blah':} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment