Skip to content

Instantly share code, notes, and snippets.

@hlindberg
Last active August 29, 2015 13:58
Show Gist options
  • Save hlindberg/9975348 to your computer and use it in GitHub Desktop.
Save hlindberg/9975348 to your computer and use it in GitHub Desktop.
ducks in a row - puppet
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
@zaphod42
Copy link

zaphod42 commented Apr 4, 2014

"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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment