case $sshd_ensure_version {
'': { $sshd_ensure_version = "present" }
}
+ case $sshd_print_motd {
+ '': { $sshd_print_motd = "yes" }
+ }
+ case $sshd_shared_ip {
+ '': { $sshd_shared_ip = "no" }
+ }
+ case $sshd_use_strong_ciphers {
+ '': { $sshd_use_strong_ciphers = "no" }
+ }
- include sshd::client
+ include sshd::client
case $operatingsystem {
gentoo: { include sshd::gentoo }
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
-PrintMotd no
+<%- if sshd_print_motd.to_s == 'no' then -%>
+ PrintMotd no
+<%- end -%>
+ <%- if sshd_hardened_ssl.to_s == 'yes' then -%>
+ Ciphers aes256-ctr
+ MACs hmac-sha1
+ <%- end -%>
+
<%- unless sshd_tail_additional_options.to_s.empty? then %>
<%= sshd_tail_additional_options %>
<%- end %>
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
+<%- if sshd_print_motd.to_s == 'no' then -%>
PrintMotd no
+<%- end -%>
+ <%- if sshd_hardened_ssl.to_s == 'yes' then -%>
+ Ciphers aes256-ctr
+ MACs hmac-sha1
+ <%- end -%>
+
<%- unless sshd_tail_additional_options.to_s.empty? then %>
<%= sshd_tail_additional_options %>
<%- end %>