Skip to content

Instantly share code, notes, and snippets.

@azizshamim
Created May 1, 2013 21:39
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 azizshamim/5498595 to your computer and use it in GitHub Desktop.
Save azizshamim/5498595 to your computer and use it in GitHub Desktop.
undef parameters in puppet
class foo (
$param1 = 'Hello World!'
) {
notice("${param1}")
}
class bar (
$param1 = 'Hello World!'
) {
notice("${param1}")
}
class {'foo':
param1 => 'Goodbye world'
}
class {'bar':
param1 => undef,
}
$ puppet apply default.pp
Notice: Scope(Class[Foo]): Goodbye world
Notice: Scope(Class[Bar]): Hello World!
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