[Puppet Users] Re: 'if' syntax

2009-03-24 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith Edmunds wrote: >> Please let me know if this update makes more sense: > > It does, and thank you for updating the page. > > I think it would be further improved by defining what an "in-statement" > and an "around statement" are - the latter,

[Puppet Users] Re: 'if' syntax

2009-03-23 Thread Keith Edmunds
> Please let me know if this update makes more sense: It does, and thank you for updating the page. I think it would be further improved by defining what an "in-statement" and an "around statement" are - the latter, particularly, sounds somewhat nebulous. Perhaps, for now, a little emphasis t

[Puppet Users] Re: 'if' syntax

2009-03-23 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith Edmunds wrote: > I had actually read that page, and I've just read it again. I can't see > any mention of the fact that I can't use if/else in a resource, but I may > have just missed it. > Please let me know if this update makes more sense:

[Puppet Users] Re: 'if' syntax

2009-03-23 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith Edmunds wrote: >> You can't use if/else in a resource. >> >> Have a read of: >> >> http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals > > I had actually read that page, and I've just read it again. I can't see > any mention

[Puppet Users] Re: 'if' syntax

2009-03-23 Thread Keith Edmunds
> You can't use if/else in a resource. > > Have a read of: > > http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#conditionals I had actually read that page, and I've just read it again. I can't see any mention of the fact that I can't use if/else in a resource, but I may have just miss

[Puppet Users] Re: 'if' syntax

2009-03-23 Thread Peter Meier
Hi > node "x.example.com" inherits basenode { > $skip_file = true > } > > In the module's init.pp I have: > > file {"/path/to/file": > if $skip_file { > noop => true > } > owner => root, > . > . > > I get an error: > > err: Could not retrieve catalog: Could

[Puppet Users] Re: 'if' syntax

2009-03-23 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith Edmunds wrote: > I'm trying to exclude uploading a file to certain hosts. In nodes.pp I > have: > > node "x.example.com" inherits basenode { > $skip_file = true > } > > In the module's init.pp I have: > > file {"/path/to/file": >