Skip to content

Instantly share code, notes, and snippets.

@vjanelle
Created March 25, 2013 08:30
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 vjanelle/5235679 to your computer and use it in GitHub Desktop.
Save vjanelle/5235679 to your computer and use it in GitHub Desktop.
define foo::test (
$var = 1,
$var_x = "test_${$var}",
) {
notice($var_x)
}
foo::test { 'test': }
foo::test { 'test2':
var => 2,
}
puppet apply x.pp
Notice: Scope(Foo::Test[test]): test_
Notice: Scope(Foo::Test[test2]): test_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment