Skip to content
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 Gentoo support #66

Merged
merged 1 commit into from
Oct 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions lib/puppet/provider/posix_acl/posixacl.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
Puppet::Type.type(:posix_acl).provide(:posixacl, parent: Puppet::Provider) do
desc 'Provide posix 1e acl functions using posix getfacl/setfacl commands'

commands setfacl: '/usr/bin/setfacl'
commands getfacl: '/usr/bin/getfacl'
if Facter.value(:operatingsystem) == 'Gentoo'
commands setfacl: '/bin/setfacl'
commands getfacl: '/bin/getfacl'
else
commands setfacl: '/usr/bin/setfacl'
commands getfacl: '/usr/bin/getfacl'
end

confine feature: :posix
defaultfor operatingsystem: [:debian, :ubuntu, :redhat, :centos, :fedora, :sles]
defaultfor operatingsystem: [:debian, :ubuntu, :redhat, :centos, :fedora, :sles, :gentoo]

def exists?
permission
Expand Down
3 changes: 3 additions & 0 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "Gentoo"
}
],
"requirements": [
Expand Down