Created
November 15, 2011 22:05
-
-
Save nanliu/1368531 to your computer and use it in GitHub Desktop.
Puppet future
This file contains 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
class a { | |
$var = '' | |
} | |
class c { | |
include a | |
notice ($a::var) | |
} | |
class b { | |
include a | |
$a::var += 'future is now' | |
notice($a::var) | |
} | |
include b | |
include c | |
This file contains 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
$ puppet apply future.pp | |
notice: Scope(Class[B]): future is now | |
notice: Scope(Class[C]): future is now | |
notice: Finished catalog run in 0.07 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment