AT&T Interactive R&D

 
 

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 templates

Usage

   1  has_variable(:name => '...') do
   2  	# More options. 
   3  	# This block is optional
   4  end

Options

name
The name of the variable to use in the template
value
The value of the variable in the template

To use these variables, in your Erb template, reference them like so

   1  name: <%= variablename %>

Examples

   1  has_variable(:name => "name", :value => "#{cloud.name}")