aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp25
1 files changed, 16 insertions, 9 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 375168a..3ab03df 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,27 +15,34 @@ class sshd {
}
default: {
service{'sshd':
- name => $operatingsystem ? {
- debian => 'ssh',
- ubuntu => 'ssh',
- default => 'sshd',
- },
enable => true,
ensure => running,
require => Package[openssh],
}
+
+ case $operatingsystem {
+ debian,ubuntu: {
+ service{sshd:
+ name => 'ssh',
+ }
+ }
+ }
package{openssh:
- name => $operatingsystem ? {
- centos,debian,ubuntu => openssh-server,
- default => openssh,
- },
category => $operatingsystem ? {
gentoo => 'net-misc',
default => '',
},
ensure => present,
}
+
+ case $operatingsystem {
+ centos,redhat,debian,ubuntu: {
+ package{openssh:
+ name => 'openssh-server',
+ }
+ }
+ }
}
}
}