Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
Created June 13, 2012 19:03
Show Gist options
  • Save jedi4ever/2925812 to your computer and use it in GitHub Desktop.
Save jedi4ever/2925812 to your computer and use it in GitHub Desktop.
Puppet - hash - inline template
# This works
#$snippet = { 'index' => { 'configDir' => 'haha'}}
# This not..
# snippet is not an hash or array when accessing it with index
$snippet = inline_template("<%= { 'index' => { 'configDir' => 'haha'}} %>")
notice("${snippet['index']['configDir']}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment