-
-
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
Add recursemode parameter to chose to apply ACL's recursivel #12
Conversation
@@ -0,0 +1,20 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roidelapluie Shouldn't this file be in a separate PR? This is part of the Travis support for test running, not part of the recursive ACL changes, right?
@roidelapluie Sorry for being so slow to merge these. This looks good, except all the test support stuff - nodesets, I should have reviewed this before I merged in #11, since that would have been the right place for most of these files. Oh well. :) |
Also, maybe update |
EDIT: Actually, I found this problem:
The deep recursion code should cache permissions lists with and Default ACLs are an important tool for policy enforcement in some A test should be written to validate this use case. Here's how I was able to reproduce the error. I used a Vagrant # cat <<EOF > ~/test.pp
file { "/tmp/testfile":
ensure => directory,
owner => vagrant,
group => vagrant,
}
file { [ "/tmp/testfile/a", "/tmp/testfile/b" ]:
ensure => file,
owner => vagrant,
group => vagrant,
}
acl { "/tmp/testfile/b":
action => set,
permission => [
"user::rw-",
"group::rw-",
"mask::r-x",
"other::---",
"group:vagrant:rw-",
],
provider => posixacl,
}
acl { "/tmp/testfile":
action => set,
permission => [
"user::rwx",
"group::---",
"mask::r-x",
"other::---",
"group:vagrant:r-x",
"default:user::rw-",
"default:group::---",
"default:mask::rwx",
"default:other::---",
"default:group:vagrant:rw-",
],
provider => posixacl,
recursive => true,
recursemode => deep,
}
EOF
# sed -i -e 's/vagrant/YOUR_USER/g' test.pp
# puppet apply --verbose --debug --modulepath=. ./test.pp This is the error captured from the output:
|
7a3b01b
to
49f664a
Compare
rebased and noted your comment. Should we silently disable default ACL's for files? |
That's what |
49f664a
to
3687f36
Compare
This commit adds a Recursemode parameter to generate additional resources for children files when recurse is set to true. Depends on voxpupuli#11.
3687f36
to
f0ea9c1
Compare
Changes from this PR pulled in with additional fixes by #13 |
This commit adds a Recursemode parameter to generate additional
resources for children files when recurse is set to true.
Depends on #11.