Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

CentOS support #84

Closed
michaelwittig opened this issue Aug 25, 2017 · 4 comments
Closed

CentOS support #84

michaelwittig opened this issue Aug 25, 2017 · 4 comments

Comments

@michaelwittig
Copy link
Contributor

from @nicholascowan

#83 breaks functionality on CENTOS7 because it's checking for init.d scripts and doesn't take into account systemd, the restart method should be systemctl restart sshd.

This causes script to throw an error since ssh.service is not found, and would break in any cloudformation scripts.

@KusabiSensei
Copy link
Contributor

I'm working on a solution for this, since I'm looking to adopt this for our clusters at my workplace.

The deprecated service command on systems with systemd shouldn't be relied on to exist, as you note. Hopefully, I'll be able to support both systemd and upstart once I finish testing.

@KusabiSensei
Copy link
Contributor

KusabiSensei commented Dec 5, 2017

There are actually two things that need to be considered here for CentOS/RHEL support. One is the use of systemd. The other is SELinux being turned on with default policies.

It looks like there may be a way around that without needing the end user to disable SELinux or put SELinux into permissive mode. SELinux provides booleans that can tune the base policy from CentOS or Red Hat, and turning on the NIS boolean would allow for auth programs (like PAM or sshd) to make outbound calls to get user information.

I'm currently testing a patch in the installer script to allow this. Once that is done, it may be worth looking into making that change in the RPM itself.

@KusabiSensei
Copy link
Contributor

The systemd code that is in #99 and got updated in #107 should support CentOS, along with the SELinux portions of #99

We should be able to close out this issue. Perhaps now with the fix, we could add CentOS to the Showcase.

@michaelwittig
Copy link
Contributor Author

I prepare a test case to ensure that CentOS is always working...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants