[Puppet Users] Re: Using variables in virtual resources

2009-10-02 Thread Michael Gliwinski
On Friday 02 October 2009 13:41:44 Michael Gliwinski wrote: > On Friday 02 October 2009 07:35:57 Erling wrote: > > On 28 Sep, 19:44, Eric Gerlach wrote: > > > You might be able to do something like: > > > > > > realize User[kenneth] > > > > > > User[kenneth] { > > >         groups => $server_type

[Puppet Users] Re: Using variables in virtual resources

2009-10-02 Thread Michael Gliwinski
On Friday 02 October 2009 07:35:57 Erling wrote: > On 28 Sep, 19:44, Eric Gerlach wrote: > > You might be able to do something like: > > > > realize User[kenneth] > > > > User[kenneth] { > >         groups => $server_type ? { > >                 typeA => "wheel", > >                 default => un

[Puppet Users] Re: Using variables in virtual resources

2009-10-01 Thread Erling
On 28 Sep, 19:44, Eric Gerlach wrote: > You might be able to do something like: > > realize User[kenneth] > > User[kenneth] { >         groups => $server_type ? { >                 typeA => "wheel", >                 default => undef, >         } > > } > > to realize it the way you want.  Haven't

[Puppet Users] Re: Using variables in virtual resources

2009-09-29 Thread Bjørn Dyre Dyresen
Hi, there Im looking into the same thing. Did you come up with a decent solution? Regards Bjørn Dyresen 2009/9/28 Eric Gerlach > > On Fri, Sep 18, 2009 at 09:08:37AM +0200, Kenneth Holter wrote: > > Hi. > > > > > > I've defined a virtual user "kenneth", and depending on a variable in the > > n

[Puppet Users] Re: Using variables in virtual resources

2009-09-28 Thread Eric Gerlach
On Fri, Sep 18, 2009 at 09:08:37AM +0200, Kenneth Holter wrote: > Hi. > > > I've defined a virtual user "kenneth", and depending on a variable in the > node definiton I'd like to add the users to different groups. Consider this > example: > > ## Code start > > node "server.example.com" {