aboutsummaryrefslogtreecommitdiff
path: root/manifests/debian.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/debian.pp')
-rw-r--r--manifests/debian.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp
new file mode 100644
index 0000000..849d9f4
--- /dev/null
+++ b/manifests/debian.pp
@@ -0,0 +1,25 @@
+class sshd::debian inherits sshd::linux {
+
+ # the templates for Debian need lsbdistcodename
+ include lsb
+ File['sshd_config']{
+ require +> Package['lsb']
+ }
+
+ Package[openssh]{
+ name => 'openssh-server',
+ }
+
+ $sshd_restartandstatus = $lsbdistcodename ? {
+ etch => false,
+ lenny => true,
+ default => false
+ }
+
+ Service[sshd]{
+ name => 'ssh',
+ pattern => 'sshd',
+ hasstatus => $sshd_restartandstatus,
+ hasrestart => $sshd_restartandstatus,
+ }
+}