sgnl05 / sgnl05-sssd

Puppet module for SSSD
https://forge.puppet.com/sgnl05/sssd
GNU General Public License v3.0
17 stars 76 forks source link

support amazon linux 2 #66

Closed eoly closed 6 years ago

eoly commented 6 years ago

This adds support for Amazon Linux 2.

Other than updating the checks for supported platforms I had to manually set the service provider to systemd for the oddjobd service when using Amazon Linux 2. Without this I'd receive these error messages during the puppet run:

Error: Could not enable oddjobd: Execution of '/sbin/chkconfig --add oddjobd' returned 1: error reading information on service oddjobd: No such file or directory Error: /Stage[main]/Sssd/Service[oddjobd]/ensure: change from 'stopped' to 'running' failed: Could not enable oddjobd: Execution of '/sbin/chkconfig --add oddjobd' returned 1: error reading information on service oddjobd: No such file or directory

Looks like there is an issue in puppet where it doesn't detect the provider as systemd for Amazon Linux 2 right now. See PUP-8248.

ghoneycutt commented 6 years ago

Thanks @eoly !!

I've slightly modified your PR and added a few things in PR #67