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.
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.