aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp14
1 files changed, 7 insertions, 7 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 3ab03df..75029b8 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -29,6 +29,13 @@ class sshd {
}
package{openssh:
+ name => $operatingsystem ? {
+ debian: => 'openssh-server',
+ ubuntu: => 'openssh-server',
+ redhat: => 'openssh-server',
+ centos: => 'openssh-server',
+ default: => 'openssh',
+ },
category => $operatingsystem ? {
gentoo => 'net-misc',
default => '',
@@ -36,13 +43,6 @@ class sshd {
ensure => present,
}
- case $operatingsystem {
- centos,redhat,debian,ubuntu: {
- package{openssh:
- name => 'openssh-server',
- }
- }
- }
}
}
}