[Puppet Users] Re: how to define variables in "module" scope ?

2008-10-03 Thread David Lutterkort
On Thu, 2008-10-02 at 11:31 -0500, Luke Kanies wrote: > In the meantime, though, scoped variables should get you pretty close: > > #manifests/init.pp > class mymod { >$foo = "important stuff > } > > #manifests/other.pp > class mymod::other { >$other = "even more ${foo}" > } Isn't that m

[Puppet Users] Re: how to define variables in "module" scope ?

2008-10-03 Thread Luke Kanies
On Oct 3, 2008, at 1:04 PM, David Lutterkort wrote: > > On Thu, 2008-10-02 at 11:31 -0500, Luke Kanies wrote: >> In the meantime, though, scoped variables should get you pretty >> close: >> >> #manifests/init.pp >> class mymod { >> $foo = "important stuff >> } >> >> #manifests/other.pp >> cla

[Puppet Users] Re: how to define variables in "module" scope ?

2008-10-02 Thread Luke Kanies
On Sep 29, 2008, at 12:45 PM, Felix Schäfer wrote: > > Hello, > > Am 29.09.2008 um 18:40 schrieb Marc Fournier: > >> I have a bunch of variables that are used in several classes and >> definitions, all part of the same module. >> >> As these variables are defined automatically based on system fac

[Puppet Users] Re: how to define variables in "module" scope ?

2008-10-02 Thread Marc Fournier
Hello, > > I have a bunch of variables that are used in several classes and > > definitions, all part of the same module. > > > > As these variables are defined automatically based on system facts, > > I would like to avoid having to declare them in each node that uses > > classes or definitions

[Puppet Users] Re: how to define variables in "module" scope ?

2008-09-29 Thread Felix Schäfer
Hello, Am 29.09.2008 um 18:40 schrieb Marc Fournier: > I have a bunch of variables that are used in several classes and > definitions, all part of the same module. > > As these variables are defined automatically based on system facts, I > would like to avoid having to declare them in each node