Last active
August 29, 2015 13:58
-
-
Save hlindberg/9975348 to your computer and use it in GitHub Desktop.
ducks in a row - puppet
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 duck($name) { | |
notice "duck $name" | |
include c | |
} | |
class c { | |
notice 'in c' | |
duck { 'duck0': name => 'mc scrooge' } | |
} | |
class a { | |
notice 'in a' | |
duck {'duck1': name => 'donald' } | |
include b | |
duck {'duck2': name => 'daisy' } | |
} | |
class b { | |
notice 'in b' | |
duck {'duck3': name => 'huey' } | |
duck {'duck4': name => 'dewey' } | |
duck {'duck5': name => 'louie' } | |
} | |
include a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"the creation of their duck resources is evaluated as soon as it evaluates the include statements". To clarify, it is the creation of the resources that is done immediately, but not the evaluation of their bodies.