Hi,
On 04/04/2013 05:08 PM, jcbollinger wrote:
> if I define a file resource without specifying an ensure parameter,
> it seems to behave like ensure => present was specified.
>
>
>
> Yes, that's the default.
Uhm, are you sure? I would expect the following to be a noop, which
seems to be the case:
$ puppet apply -e 'file { "/tmp/wth": mode => 640 }'
notice: Finished catalog run in 0.05 seconds
Puppet *will* change the file mode, if it's not 640, but will not mess
with the resource's existence.
A different behavior would be confusing, to me at least.
Cheers,
Felix