Re: [Puppet Users] variables with no value

2010-12-19 Thread Arnau Bria
On Sun, 19 Dec 2010 16:57:06 +0100 Stefan Schulte wrote: > On Fri, Dec 10, 2010 at 11:31:18AM +0100, Arnau Bria wrote: > > Hi all, Hi, > > When I run the client in nodeb, and add a notify of root_password, > > I see that nodeb's root_password has a value and it's serviceA!?!? > > This can happen

Re: [Puppet Users] variables with no value

2010-12-19 Thread Stefan Schulte
On Fri, Dec 10, 2010 at 11:31:18AM +0100, Arnau Bria wrote: > Hi all, > > We'd like to share a class, and do something like: > > class common_defaults { > [...] > user { 'root': >ensure => present, >password=> $root_password ? { > 'servi

Re: [Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
On Fri, 10 Dec 2010 12:33:39 +0100 Felix Frank wrote: > > > We could simply as my previously example. > > is the selctor correct? > > > >password=> $root_password ? { > > 'serviceA'=> 'passwdA', > > default => 'passwdB', > > }, > > > >

Re: [Puppet Users] variables with no value

2010-12-10 Thread Felix Frank
> We could simply as my previously example. > is the selctor correct? > >password=> $root_password ? { > 'serviceA'=> 'passwdA', > default => 'passwdB', > }, > > I mean, the default has any sense? if not default but ''? > because if tha

Re: [Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
On Fri, 10 Dec 2010 11:43:59 +0100 Felix Frank wrote: > > nodes.pp > > nodea { > > $root_passwd=serviceA > > include common_defaults > > } > > > > nodeb { > > include common_defaults > > } > > Hi, Hi, > could you be a little less cryptic about the node definitions? (I > understand

Re: [Puppet Users] variables with no value

2010-12-10 Thread Felix Frank
> nodes.pp > nodea { > $root_passwd=serviceA > include common_defaults > } > > nodeb { > include common_defaults > } Hi, could you be a little less cryptic about the node definitions? (I understand there may be privacy issues, but the above is censored too drastically.) Is it

[Puppet Users] variables with no value

2010-12-10 Thread Arnau Bria
Hi all, We'd like to share a class, and do something like: class common_defaults { [...] user { 'root': ensure => present, password=> $root_password ? { 'serviceA'=> 'passwdA', default => 'passwdB', }, [...] } $ro