Really? That just seems like a horrible feature.Actually I think it's the right thing to do. There's apparently no way at present to tell Puppet how to handle files and directories differently whenrecurse is true, so there needs to be a reasonable default. Yes, it is possibleto want a directory to be readable but not executable, but by far the more common case is to want either both or neither.So I hope that Puppet's rule is: "when recurse is true, anywhere the read (4)bit is on in the mode setting, add the execute (1) bit to directories." Whatever the rule is, it needs to be documented under file.mode.
there have been some discussion about that on the list recently, as well there should be a feature request to give the possiblility to let act file without all that magic to be able to set a directory to read-only but not executable.
cheers pete
pgpM9CHaWSJmJ.pgp
Description: PGP Digital Signature