Created
June 13, 2012 19:03
-
-
Save jedi4ever/2925812 to your computer and use it in GitHub Desktop.
Puppet - hash - inline template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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