Re: [Puppet Users] Re: chicken and the egg.. pushing custom facter plugins for use within puppet..

2011-05-10 Thread Nan Liu
On Tue, May 10, 2011 at 3:16 PM, Disconnect wrote: > Couple quick examples. In the dpkg/apt module: > if ($lsbdistcodename == '') { >     err("LsbDistCodename not set on $fqdn. Not configuring apt!") > } else { > > Or use '': in a case statement, eg: > case $foo { >   '1': { foo } >   '': { un

Re: [Puppet Users] Re: chicken and the egg.. pushing custom facter plugins for use within puppet..

2011-05-10 Thread Disconnect
Couple quick examples. In the dpkg/apt module: if ($lsbdistcodename == '') { err("LsbDistCodename not set on $fqdn. Not configuring apt!") } else { Or use '': in a case statement, eg: case $foo { '1': { foo } '': { undefined } default: { other } } I'm having trouble finding specific

[Puppet Users] Re: chicken and the egg.. pushing custom facter plugins for use within puppet..

2011-05-04 Thread Michael Dodwell
> We work around it by checking the existence of the fact/value before using it Is this done in the template file or somewhere else? Can you please supply dummy code as an example? Thanks On May 5, 12:01 am, Disconnect wrote: > Although good advice (pluginsync is win) that still doesn't solve