Skip to content

Instantly share code, notes, and snippets.

@reidmv
Last active August 29, 2015 14:21
Show Gist options
  • Save reidmv/cfb60a371bc0bbc98526 to your computer and use it in GitHub Desktop.
Save reidmv/cfb60a371bc0bbc98526 to your computer and use it in GitHub Desktop.
Contained Noop
# Requires:
# - puppetlabs/stdlib
# - trlinkin/noop
class first {
$noop_value = getparam(Class['first'], 'noop')
notice("first noop is $noop_value")
if $noop_value == true { noop() }
notify { 'first': }
contain second
}
class second {
$noop_value = getparam(Class['second'], 'noop')
notice("second noop is $noop_value")
notify { 'second': }
}
class { 'first':
noop => true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment