Skip to content

Instantly share code, notes, and snippets.

@sweetcheeks24
Created September 5, 2013 13:51
Show Gist options
  • Save sweetcheeks24/6450363 to your computer and use it in GitHub Desktop.
Save sweetcheeks24/6450363 to your computer and use it in GitHub Desktop.
Puppet-Windows config issues
Local file permissions on the directory:
stat -f "%OLp" files/test2/
775
stat -f "%OLp" files/test2/Programs
775
Puppet config:
file { "C:/test2":
ensure => directory,
owner => "Administrator",
group => "Administrators",
mode => 0775
} ->
# Program used by the powershell
file { "C:/test2/Programs":
ensure => directory,
owner => "Administrator",
group => "Administrators",
source => 'puppet:///modules/testworker/test2/Programs',
recurse => true,
require => File["C:/test2"],
mode => 0775
} ->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment