-----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 of the fact that I can't use if/else in a resource, but I may > have just missed it. >
"Puppet currently supports two types of conditionals: in-statement and around statements. Selectors ''''''''' We call the in-statement conditionals ``selectors``, as they are essentially a select-style operator, which support the use of ``default`` to specify a default value::" But I concur - that's not overly clear if you don't know what in-statement means. Regards James Turnbull - -- Author of: * Pulling Strings with Puppet (http://www.amazon.com/gp/product/1590599780/) * Pro Nagios 2.0 (http://www.amazon.com/gp/product/1590596099/) * Hardening Linux (http://www.amazon.com/gp/product/1590594444/) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJx3rw9hTGvAxC30ARAtFdAKCjXPs/UQDfddwSDc3SWW5PqU5rTgCcDbld FDGOxU1Y1n3oM13gMh8dRCg= =ma3w -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
