Skip to content

Instantly share code, notes, and snippets.

@timmow
Created October 3, 2013 16:17
Show Gist options
  • Select an option

  • Save timmow/6812570 to your computer and use it in GitHub Desktop.

Select an option

Save timmow/6812570 to your computer and use it in GitHub Desktop.
> 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'
> 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 ~
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