Issue #11220 has been reported by Garrett Honeycutt.
----------------------------------------
Bug #11220: execute bits for directories are not being added
https://projects.puppetlabs.com/issues/11220
Author: Garrett Honeycutt
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.7.6
Keywords:
Branch:
This is shown using Puppet Enterprise 2.0 (2.7.6). The following code should
create /tmp/defaults as a directory with mode 0755 and two files
/tmp/defaults/[hello,goodbye] with mode 0644.
<pre>
File {
owner => 'root',
group => 'root',
mode => '0644',
}
file { '/tmp/defaults':
ensure => directory,
}
file { '/tmp/defaults/hello':
content => "hello\n",
}
file { '/tmp/defaults/goodbye':
content => "goodbye\n",
}
</pre>
Upon using PE 2.0 the following behavior is observed, which is incorrect.
Here are two puppet agent runs done back to back. Notice it takes two runs and
that on the first run /tmp/defaults has mode 0644.
<pre>
[root@puppet manifests]# puppet apply -v resource_defaults.pp
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
info: Applying configuration version '1323209170'
notice: /Stage[main]//File[/tmp/defaults]/ensure: created
notice: /Stage[main]//File[/tmp/defaults/hello]/ensure: defined content as
'{md5}b1946ac92492d2347c6235b4d2611184'
notice: /Stage[main]//File[/tmp/defaults/goodbye]/ensure: defined content as
'{md5}32d6c11747e03715521007d8c84b5aff'
notice: Finished catalog run in 0.06 seconds
[root@puppet manifests]# puppet apply -v resource_defaults.pp
info: Loading facts in facter_dot_d
info: Loading facts in facter_dot_d
info: Applying configuration version '1323209175'
notice: /Stage[main]//File[/tmp/defaults]/mode: mode changed '644' to '755'
</pre>
--
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.