Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Created May 3, 2015 11:26
Show Gist options
  • Select an option

  • Save ripienaar/5e79eb6a4b2e34700864 to your computer and use it in GitHub Desktop.

Select an option

Save ripienaar/5e79eb6a4b2e34700864 to your computer and use it in GitHub Desktop.
class one {
notify{"one": }
}
class two {
notify{"two": }
Notify <| |> { message => "hello" }
}
notify{"outside": }
include one, two
% puppet apply test.pp
Notice: Compiled catalog for devco.net in environment production in 0.87 seconds
Notice: hello
Notice: /Stage[main]/Main/Notify[outside]/message: defined 'message' as 'hello'
Notice: hello
Notice: /Stage[main]/One/Notify[one]/message: defined 'message' as 'hello'
Notice: hello
Notice: /Stage[main]/Two/Notify[two]/message: defined 'message' as 'hello'
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