Skip to content

Commit 18971d9

Browse files
author
Jonas Duarte
committed
Since ohai v13.0.0, the attribute "platform_family" for Amazon Linux retrieves "amazon" instead of "rhel", causing the cookbook to fail. (Issue #180)
To get it fixed, it was added the value "amazon" to the case block on the default attribute file, where it is defined the service name for sshd.
1 parent 04838c9 commit 18971d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

attributes/default.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
# Define the service name for sshd
4343
case node['platform_family']
44-
when 'rhel', 'fedora', 'suse', 'freebsd', 'gentoo'
44+
when 'rhel', 'fedora', 'suse', 'freebsd', 'gentoo', 'amazon'
4545
default['ssh-hardening']['sshserver']['service_name'] = 'sshd'
4646
else
4747
default['ssh-hardening']['sshserver']['service_name'] = 'ssh'

0 commit comments

Comments
 (0)