Issue #1033 has been updated by Lance A.

Another workaround, assuming the file's parent directory has the correct 
permissions and a recent version of Windows, is simply to reset the file(s) 
permissions. Yes, it's still exec, but it solves the simple use case. Note that 
icacls properly orders file permissions, an important consideration that any 
solution should guarantee.
For example:

<pre>
                # Copy the file
                file { "C:\\Temp\\dest.txt":
                        source  => "C:\\Temp\\source.txt",
                        ensure  => present,
                }
                # Reset the ACLs on the file since Puppet mangles them
                exec { "icacls-reset-dest":
                        path            => "${::systemroot}\\system32",
                        command         => "icacls C:\\Temp\\dest.txt /reset",
                        subscribe       => File["C:\\Temp\\dest.txt"],
                        refreshonly     => true,
                }
</pre>
----------------------------------------
Feature #1033: support for file system acls on the file type
https://projects.puppetlabs.com/issues/1033

Author: Chris MacLeod
Status: Accepted
Priority: Normal
Assignee: 
Category: file
Target version: 
Affected Puppet version: 0.24.4
Keywords: 
Branch: 


being able to set file system acls (setfacl et all) on a file type would be 
very useful.
More of a further extension of the existing file type I would think.

something perhaps along the line of:
<pre>
file { "/tmp/foo":
   mode => 0644,
   owner => foo,
   group => bar,
   acl   => u:rxw:g:foo:rxw,
   ...
}
</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.

Reply via email to