Skip to content

Instantly share code, notes, and snippets.

@bodepd
Created September 2, 2014 10:15
Show Gist options
  • Select an option

  • Save bodepd/96daf31c92f340bebb20 to your computer and use it in GitHub Desktop.

Select an option

Save bodepd/96daf31c92f340bebb20 to your computer and use it in GitHub Desktop.
class foo {
$bar = 'one'
}
node /foo/ {
$bar = 'two'
include foo
notice("${::foo::bar}")
}
@bodepd

bodepd commented Sep 3, 2014

Copy link
Copy Markdown
Author

@ahpook

# puppet apply --certname foo123 -e '
> class foo {
>   $bar = 'one'
> }
> 
> node /foo/ {
>   $bar = 'two'
>   include foo
>   notice("${::foo::bar}")
> }
> '
Notice: Scope(Node[foo]): two
Notice: Compiled catalog for foo123 in environment production in 0.02 seconds
Notice: Finished catalog run in 0.03 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment