Skip to content

Instantly share code, notes, and snippets.

@nanliu
Created November 15, 2011 22:05
Show Gist options
  • Save nanliu/1368531 to your computer and use it in GitHub Desktop.
Save nanliu/1368531 to your computer and use it in GitHub Desktop.
Puppet future
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
$ 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