[Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-13 Thread Alexandre
Hi, I am trying to manage the puppet.conf file, but both my classes 'puppet' and 'puppet::master' need to manage it. Basically, the class 'puppet::master' should be able to override the resource, which could be done by inheritance. My problem is that my class 'puppet' is a parameterized class:

Re: [Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-13 Thread Nan Liu
On Thu, Oct 13, 2011 at 3:16 AM, Alexandre wrote: > Hi, > > I am trying to manage the puppet.conf file, but both my classes > 'puppet' and 'puppet::master' need to manage it. Basically, the class > 'puppet::master' should be able to override the resource, which could > be done by inheritance. > My

Re: [Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-13 Thread Henrik Lindberg
Don't know if I am out on a limb here, but did you try setting class defaults? class puppet::master inherits puppet { class { 'puppet': puppetmaster_fqdn => "my wanted value" } # ... } - henrik On 10/13/11 12:16 PM, Alexandre wrote: Hi, I am trying to manage the puppet.conf file, but bot

Re: [Puppet Users] How to inherit a parameterized class ? What is the syntax ?

2011-10-18 Thread Alexandre Fouché
Hi, The 3rd option is interesting, i should try it to see. So far i had tried a similar way, with a "realize", but instead of overriding the content file, i had some conditional blocks with a variable in the puppet.conf.erb file. And it did not work, because it seems the variable was never known