Skip to content

Instantly share code, notes, and snippets.

@kbarber
Created May 8, 2012 12:44
Show Gist options
  • Select an option

  • Save kbarber/2634645 to your computer and use it in GitHub Desktop.

Select an option

Save kbarber/2634645 to your computer and use it in GitHub Desktop.
Resource defaults
# 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