On Dec 2, 2011, at 8:46 AM, Sans wrote:

> How can I globally declare a variable, so that it can be used across
> the manifests and templates? I tried putting all my variables:
> 
> ---------------------------------
>    $my_var1 = 'my 1st variable'
>    $my_var2 = 'my 2nd variable"
> ---------------------------------
> 
> in a file, e.g. called "settings.pp" and then try to accessing them
> from another manifests after importing settings.pp, but that's
> absolutely not working. I'm writing a costume module for our and group
> and I want individual user only to edit the "settings.pp" to put their
> own value to make this module work for them. How can I make that
> happen? Cheers!!
----
presuming that you aren't using an ENC, you would probably want to simply put 
the variable in the node definition itself.

Craig

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to