Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-15 Thread Christian Kauhaus
Am 08.03.2011 23:37, schrieb Robin Bowes: > I'd really like puppet to blow-up at this stage and tell me that I've > used an variable without defining it first. Those familiar with perl > will recognise this as "use strict;". I would greatly appreciate such a feature. Is there already a ticket to

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-15 Thread Felix Frank
> I''d wonder where you change the option though. In the environment level > options on the master? Also, I'm thinking you'd also need a syntax that > reverses it for looking at facts that might not exist for something like this: > non_strict("cpuid") > to replace the expression: > $cpuid > if

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-15 Thread Dan Bode
This is a huge +1 from me On Mon, Mar 14, 2011 at 9:41 PM, Kevin Beckford wrote: > This certainly explains a lot. A very good idea, IMO. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-14 Thread Kevin Beckford
This certainly explains a lot. A very good idea, IMO. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-12 Thread Patrick
On Mar 11, 2011, at 6:29 AM, Felix Frank wrote: > On 03/08/2011 11:37 PM, Robin Bowes wrote: >> Nigel suggested I posted this here - he likes the idea. >> >> I'm constantly getting bitten by small typos in my manifests, eg. when I >> do something like: >> >> $var1 = extlookup('foo') >> $var2 =

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-11 Thread Felix Frank
On 03/08/2011 11:37 PM, Robin Bowes wrote: > Nigel suggested I posted this here - he likes the idea. > > I'm constantly getting bitten by small typos in my manifests, eg. when I > do something like: > > $var1 = extlookup('foo') > $var2 = extlookup('foo') > # set $var3 true if $var1 is same as $va

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-08 Thread John Warburton
On 9 March 2011 09:37, Robin Bowes wrote: > I'd really like puppet to blow-up at this stage and tell me that I've > used an variable without defining it first. Those familiar with perl > will recognise this as "use strict;". > Yes please! There are lots of places where puppet continues where IM

Re: [Puppet Users] Proposal: "strict" mode for manifests

2011-03-08 Thread Randall Hansen
On Mar 8, 2011, at 2:37 PM, Robin Bowes wrote: > I'd really like puppet to blow-up at this stage and tell me that I've > used an variable without defining it first. Those familiar with perl > will recognise this as "use strict;". ++ r -- Randall Hansen • Director of User Experience • rand...@pu

[Puppet Users] Proposal: "strict" mode for manifests

2011-03-08 Thread Robin Bowes
Nigel suggested I posted this here - he likes the idea. I'm constantly getting bitten by small typos in my manifests, eg. when I do something like: $var1 = extlookup('foo') $var2 = extlookup('foo') # set $var3 true if $var1 is same as $var2 $var3 = ($var1 == $var) puppet allows this, and sets $v