Skip to content

Instantly share code, notes, and snippets.

@domcleal
Created January 21, 2012 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domcleal/1653197 to your computer and use it in GitHub Desktop.
Save domcleal/1653197 to your computer and use it in GitHub Desktop.
#include b # works
include c # 'broken', shows warning
define a($x) {
exec { "A-$x":
command => "/bin/echo $x",
}
if $require {
Exec["A-$x"] { require +> $require }
}
}
class b {
a { "define_something":
x => "foo",
# no require specified here
}
}
class d {
notify { "d": }
}
class c {
class { "d": }
class { "b":
require => Class["d"],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment