Issue #5351 has been updated by Zach Leslie.
I am trying to reproduce the following in puppet:
<pre>
find /blag -type f -exec chmod 644 {} \;
find /blag -type d -exec chmod 755 {} \;
chown -R root:root /blag
</pre>
with the following puppet code:
<pre>
file { "/blag": ensure => directory, recurse => true, owner => root, group =>
root, mode => 644; }
</pre>
I now know that the checksum => none will solve the issue of puppet taking
forever, so for now my issue is solved, so thank you. So the question becomes,
does it make sense to checksum anything if there is no source specified? Would
it be possible to make the default value for checksum 'none' if there is no
source. The default currently of md5 makes sense when a source is available to
compare with, but not when the source is absent.
----------------------------------------
Bug #5351: Puppet checksums file resources when no source specified
https://projects.puppetlabs.com/issues/5351
Author: Zach Leslie
Status: Needs more information
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 0.25.5
Keywords:
Branch:
When using a manifest like the following:
<pre>
file { $dirs: ensure => directory, recurse => true, owner => root, group =>
root, mode => 755; }
</pre>
puppet checksums every file in the directory, even though there is no source
specified to compare the resulting checksums to. This seems like bad behavior,
as when trying to only set permission on a large directory structure, this can
take a very long time doing nothing useful.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.