aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp13
1 files changed, 5 insertions, 8 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 75029b8..e5b5aae 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -15,19 +15,16 @@ 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 ? {
debian: => 'openssh-server',