Last active
August 29, 2015 14:21
-
-
Save reidmv/cfb60a371bc0bbc98526 to your computer and use it in GitHub Desktop.
Contained Noop
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
# 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