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

Oracle Linux: Warning about multiple default providers #88

Closed
housemasterkrause opened this issue Jun 17, 2021 · 3 comments · Fixed by #89
Closed

Oracle Linux: Warning about multiple default providers #88

housemasterkrause opened this issue Jun 17, 2021 · 3 comments · Fixed by #89

Comments

@housemasterkrause
Copy link

We are using the posix_acl module on some Oracle Linux 7 Servers.
Oracle Linux is binary compatible to RedHat Enterprise Linux or CentOS.

When i start puppet, i get the following warning message from posix_acl module:
Info: Using configured environment 'XXXX' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Warning: Found multiple default providers for posix_acl: genericacl, posixacl; using genericacl Info: Caching catalog for XXXX Info: Applying configuration version '1623935894' Notice: Applied catalog in 19.77 seconds

I also set the correct provider in the puppet code where i wanna use posix_acl:
posix_acl { 'XXX': provider => posixacl, action => set, permission => [ "XXX" ], require => [ User['XXX'], ], recursive => true, }

How can i resolve this warning about the multiple default providers and force the module to use posic_acl?

Or can this warning be ignored cause i set the correct provider within the puppet code?

Maybe also a bug with using posix_acl on a Oracle Linux Machine.

Thanks in advance!

@ekohl
Copy link
Member

ekohl commented Jun 17, 2021

It doesn't select the correct default because the OS is not listed here:

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

Perhaps it should move to OS families instead.

@housemasterkrause
Copy link
Author

Is there a possibillity to fix this problem with a newer version of the script?
Than we can use it on Oracle Linux without warnings.

Thanks!

@ekohl
Copy link
Member

ekohl commented Jun 17, 2021

You can submit a patch that changes it to defaultfor osfamily: [:debian, :redhat, :suse, gentoo] which I think would make it work for all RedHat-derived OSes.

@ekohl ekohl linked a pull request Jun 17, 2021 that will close this issue
@ekohl ekohl closed this as completed in #89 Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants