Skip to content

Instantly share code, notes, and snippets.

@ferventcoder
Created April 10, 2014 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferventcoder/10391626 to your computer and use it in GitHub Desktop.
Save ferventcoder/10391626 to your computer and use it in GitHub Desktop.
Puppet ACL Deny
file { ['c:/bob'
,'c:/bob/somedir'
,'c:/bob/somedir/grandchild']:
ensure => directory,
}
file { ['c:/bob/file.txt'
,'c:/bob/somedir/filetoo.txt'
,'c:/bob/somedir/grandchild/anotherfile.txt']:
ensure => file,
content => 'yup',
}
acl { 'c:/bob':
permissions => [
{ identity => 'SYSTEM', rights => ['read'], type=> 'deny'}, #, affects => 'self_and_direct_children_only'
{ identity => 'Administrators', rights=> ['full'] }
],
inherit_parent_permissions => false,
purge => true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment