-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix defaults: behaviour #19
Fix defaults: behaviour #19
Conversation
This commit matches the default behaviour with what setfacl does
@roidelapluie I think this will be a better solution than #18. I'll review and merge later this morning. |
Both could be merged |
Using this puppet file: # ./test2.pp
file { "/tmp/testdir":
ensure => directory,
}
file { [ "/tmp/testdir/a",
]:
ensure => file,
}
acl { "/tmp/testdir":
action => set,
permission => [
"user::rwx",
"group::---",
"mask::r-x",
"other::---",
"default:user::rwx",
"default:group::r-x",
"default:mask::rwx",
"default:other::---",
],
provider => posixacl,
recursive => true,
recursemode => deep,
} The defaults set by
It takes 2 puppet runs for the files to be created and have the final calculated ACLs applied:
The result for
I still wish it didn't take 2 runs for this to take effect, but this result is preferred to the "unique" calculated ACLs the current version produces. 👍 |
This commit matches the default behaviour with what setfacl does