Created
May 8, 2012 12:44
-
-
Save kbarber/2634645 to your computer and use it in GitHub Desktop.
Resource defaults
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
| # cat foobar2.pp | |
| Notify { | |
| message => "asdf" | |
| } | |
| class foo { | |
| notify { 'foo': } | |
| Notify { | |
| message => 'inside class foo', | |
| } | |
| include foo::bar | |
| } | |
| class foo::bar { | |
| notify { 'foo::bar': } | |
| } | |
| include foo | |
| # puppet apply foobar2.pp | |
| notice: inside class foo | |
| notice: /Stage[main]/Foo/Notify[foo]/message: defined 'message' as 'inside class foo' | |
| notice: inside class foo | |
| notice: /Stage[main]/Foo::Bar/Notify[foo::bar]/message: defined 'message' as 'inside class foo' | |
| notice: Finished catalog run in 0.03 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment