aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-02 00:36:44 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-02 00:36:44 +0000
commit904bdd65ed7eb338bfdd63d0466a646397a0af89 (patch)
treec3a90b11400aa371562e99976ac916021d8cff03
parentdc7d6d01207df6a7479d11633ba5658413444850 (diff)
downloadpuppet-sshd-904bdd65ed7eb338bfdd63d0466a646397a0af89.tar.gz
puppet-sshd-904bdd65ed7eb338bfdd63d0466a646397a0af89.tar.bz2
fixed language problem
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@735 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
-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',
- }
- }
- }
}
}
}