> 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.
> you can't use if statements this way. use a selector instead. So
> something like:
>
> file {"/path/to/file":
> noop => $skip_file ? {
> true => true,
> default => false
> },
> owner => root,
Thanks Peter, that's what I needed.
Keith
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---