On Tue, Jul 28, 2015 at 9:02 AM, jmp242 <[email protected]> wrote:

> I'm using basic file permissions with puppet 3.8.1 on Windows 7 x64. I've
> got a resource:
> file { 'chocolatey.config':
>         path    => "C:/ProgramData/chocolatey/config/chocolatey.config",
>         content => template('yum/chocolatey.config.erb'),
>         owner   => 'SYSTEM',
>         group   => 'Administrators',
>         mode    => '0775',
>         ensure  => present,
>         require => Exec['chocolatelyinstall'],
>       }
>
> For a limited set of computers, I'm getting
>
> change from {md5}eedc18d21cf625bb6c04902e8a9dd409 to
>> {md5}4efbb2600ee773122152faec7ae80934 failed: Failed to set group to
>> 'S-1-5-32-544': Failed to initialize ACL: The parameter is incorrect.
>
>
> This seems pretty strange to me - doing the above has always worked
> before, and works on most computers. How might I go about debugging or
> fixing this?
>

We recommend using the acl[1] resource for managing permissions on Windows.
For debugging what you currently have, the best thing to do is start with
the Puppet source[2] starting at the 3.8.1 tag and writing a test that
recreates the above scenario and your expected output. Then use pry in
places to determine what it is doing.

You can also research any known bugs with mode and Windows in the 3.x
series that were either resolved in 4.x or still exist. HTH

[1] https://forge.puppetlabs.com/puppetlabs/acl
[2] https://github.com/puppetlabs/puppet


>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/85556532-7790-48ba-830b-32a0b7d96e85%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/85556532-7790-48ba-830b-32a0b7d96e85%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Rob Reynolds
Developer, Puppet Labs

*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Early Bird discount
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyBird>
*
*—**save $249!*

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK7N-fh3bnW6vS-d8EcWs%3DfVcVRft7AUu5KRPb7OvZRWKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to