aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-27 14:01:55 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-27 14:01:55 -0200
commitbbc03d2c1069d42ea96101c54186e034b3a06f9b (patch)
treefee67845af82dae744d3526c404b1aa6f5fd5fac
parentea1a34bd79bbd3e7842c2ea9e66fbd86d43016b4 (diff)
downloadpuppet-sshd-bbc03d2c1069d42ea96101c54186e034b3a06f9b.tar.gz
puppet-sshd-bbc03d2c1069d42ea96101c54186e034b3a06f9b.tar.bz2
PrintMotd using default OpenSSH setting
-rw-r--r--manifests/init.pp3
-rw-r--r--templates/sshd_config/Debian_etch.erb4
-rw-r--r--templates/sshd_config/Debian_lenny.erb2
3 files changed, 8 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index ead475d..ba48b8c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -211,6 +211,9 @@ class sshd {
case $sshd_ensure_version {
'': { $sshd_ensure_version = "present" }
}
+ case $sshd_print_motd {
+ '': { $sshd_print_motd = "yes" }
+ }
include sshd::client
diff --git a/templates/sshd_config/Debian_etch.erb b/templates/sshd_config/Debian_etch.erb
index 746a447..7a38cc4 100644
--- a/templates/sshd_config/Debian_etch.erb
+++ b/templates/sshd_config/Debian_etch.erb
@@ -176,7 +176,9 @@ AllowUsers <%= sshd_allowed_users -%>
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
-PrintMotd no
+<%- if sshd_print_motd.to_s == 'no' then -%>
+ PrintMotd no
+<%- end -%>
<%- unless sshd_tail_additional_options.to_s.empty? then %>
<%= sshd_tail_additional_options %>
diff --git a/templates/sshd_config/Debian_lenny.erb b/templates/sshd_config/Debian_lenny.erb
index 18f3e4d..5f7afb4 100644
--- a/templates/sshd_config/Debian_lenny.erb
+++ b/templates/sshd_config/Debian_lenny.erb
@@ -182,7 +182,9 @@ AllowUsers <%= sshd_allowed_users -%>
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
+<%- if sshd_print_motd.to_s == 'no' then -%>
PrintMotd no
+<%- end -%>
<%- unless sshd_tail_additional_options.to_s.empty? then %>
<%= sshd_tail_additional_options %>