'': { $sshd_ensure_version = "present" }
}
case $sshd_print_motd {
- '': { $sshd_print_motd = "yes" }
+ '': {
+ case $operatingsystem {
+ debian,ubuntu: { $sshd_print_motd = "no" }
+ default: { $sshd_print_motd = "yes" }
+ }
+ }
}
case $sshd_shared_ip {
'': { $sshd_shared_ip = "no" }
<%- end -%>
#X11DisplayOffset 10
#X11UseLocalhost yes
-#PrintMotd yes
+PrintMotd <%= sshd_print_motd %>
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
-<%- if sshd_print_motd.to_s == 'no' then -%>
- PrintMotd no
-<%- end -%>
+PrintMotd <%= sshd_print_motd %>
<%- if sshd_hardened_ssl.to_s == 'yes' then -%>
Ciphers aes256-ctr
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
-<%- if sshd_print_motd.to_s == 'no' then -%>
-PrintMotd no
-<%- end -%>
+PrintMotd <%= sshd_print_motd %>
<%- if sshd_hardened_ssl.to_s == 'yes' then -%>
Ciphers aes256-ctr
X11Forwarding no
<%- end -%>
X11DisplayOffset 10
-PrintMotd no
+PrintMotd <%= sshd_print_motd %>
PrintLastLog yes
TCPKeepAlive yes
X11Forwarding no
<%- end -%>
X11DisplayOffset 10
-PrintMotd no
+PrintMotd <%= sshd_print_motd %>
PrintLastLog yes
TCPKeepAlive yes
X11DisplayOffset 10
#X11UseLocalhost yes
-#PrintMotd yes
+PrintMotd <%= sshd_print_motd %>
#PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
<%- end %>
#X11DisplayOffset 10
#X11UseLocalhost yes
-#PrintMotd yes
+PrintMotd <%= sshd_print_motd %>
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
<%- end %>
#X11DisplayOffset 10
#X11UseLocalhost yes
-#PrintMotd yes
+PrintMotd <%= sshd_print_motd %>
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
-<%- if sshd_print_motd.to_s == 'no' then -%>
-PrintMotd no
-<%- end -%>
+PrintMotd <%= sshd_print_motd %>
<%- unless sshd_tail_additional_options.to_s.empty? then %>
<%= sshd_tail_additional_options %>