Variable
Describes a variable to use in a template. One of the powerful hidden features behind puppet is that you can use templating for your templatesUsage
1 has_variable(:name => '...') do 2 # More options. 3 # This block is optional 4 end
Options
To use these variables, in your Erb template, reference them like so
1 name: <%= variablename %>
Examples
1 has_variable(:name => "name", :value => "#{cloud.name}")
