Skip to content

Instantly share code, notes, and snippets.

@ferventcoder
Last active December 26, 2015 19:49
Show Gist options
  • Save ferventcoder/7204591 to your computer and use it in GitHub Desktop.
Save ferventcoder/7204591 to your computer and use it in GitHub Desktop.
PuppetACL
acl { 'c:/windows/temp/some_dir':
inherit => true,
purge => false,
}
ace {
ensure => present,
acl => ACL ['c:/windows/temp/some_dir'],
identity => 'bob',
rights => 'modify',
type => 'allow',
inherit => 'inherit_all',
propagate => 'propagate_all',
}
ace {
ensure => present,
acl => ACL ['c:/windows/temp/some_dir'],
identity => 'tim',
rights => 'read_execute',
}
acl { 'c:/windows/temp/some_dir':
inherit => true,
purge => false,
permissions => [
['bob','modify','allow','inherit_all','propagate_all],
['tim','read_execute']
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment