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

The cookbooks fails on Amazon Linux. #180

Closed
jonasduarte opened this issue Aug 15, 2017 · 3 comments
Closed

The cookbooks fails on Amazon Linux. #180

jonasduarte opened this issue Aug 15, 2017 · 3 comments

Comments

@jonasduarte
Copy link

Guys,

Since ohai v13.0.0, the attribute "platform_family" for Amazon Linux retrieves "amazon", instead of "rhel", therefore the cookbook is failing.

To get it fixed, I add the value "amazon" to the code block below, on the default attribute file.

############################################################

Define the service name for sshd

case node['platform_family']
when 'rhel', 'fedora', 'suse', 'freebsd', 'gentoo', 'amazon'
default['jd_ssh_hardening']['sshserver']['service_name'] = 'sshd'
else
default['jd_ssh_hardening']['sshserver']['service_name'] = 'ssh'
end

############################################################

Best regards,

@chris-rock
Copy link
Member

@jonasduarte Do you like to open a PR to add this feature?

@jonasduarte
Copy link
Author

@chris-rock just did. I hope it helps.

Best,

artem-sidorenko added a commit that referenced this issue Aug 16, 2017
Fix to Issue #180. Cookbook fails on Amazon Linux
@artem-sidorenko
Copy link
Member

Resolved via #181

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

No branches or pull requests

3 participants