On 2011/02/14, at 11:12, Felix Frank wrote:

> On 02/10/2011 08:47 PM, Matthew Pounsett wrote:
>> 
>> The docs are vague on how the two interact.. but it seems to me that 
>> 'creates' will override 'onlyif' in an exec clause.  i.e. if the file named 
>> by 'creates' exists, then 'onlyif' is ignored.  Is someone able to confirm 
>> that?
> 
> I cannot positively confirm, but the opposite wouldn't make a bit of
> sense to me.

Sometimes files exist already but need to be updated.  With 'creates' and 
'onlyif' both set, I'd expect an OR behaviour: write the file if the file 
referenced by 'creates' doesn't exist, OR if 'onlyif' evaluates to true.


-- 
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.

Reply via email to