Created
February 23, 2016 16:25
-
-
Save crayfishx/e28634b9238b929d64c0 to your computer and use it in GitHub Desktop.
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
## foo.pp | |
$bar=undef | |
$foo=undef | |
$content=template('/tmp/foo.erb') | |
notify { "content is ${content}": } | |
## foo.erb | |
bar: <%= scope["bar"].class %> | |
foo: <%= @foo.class %> | |
Notice: Compiled catalog for puppet.localdomain in environment production in 0.01 seconds | |
Notice: content is | |
bar: Symbol | |
foo: NilClass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment