We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
############################################################
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,
The text was updated successfully, but these errors were encountered:
@jonasduarte Do you like to open a PR to add this feature?
Sorry, something went wrong.
@chris-rock just did. I hope it helps.
Best,
Merge pull request #181 from jonasduarte/master
9112944
Fix to Issue #180. Cookbook fails on Amazon Linux
Resolved via #181
No branches or pull requests
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,
The text was updated successfully, but these errors were encountered: