aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-02 00:23:09 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-02-02 00:23:09 +0000
commitdc7d6d01207df6a7479d11633ba5658413444850 (patch)
treed8c73346cfdc0fea750cd59d1d2bc0b404297a02 /manifests/init.pp
parent563aa80f8b3976274ebe8115aa4aac4439d702e9 (diff)
downloadpuppet-sshd-dc7d6d01207df6a7479d11633ba5658413444850.tar.gz
puppet-sshd-dc7d6d01207df6a7479d11633ba5658413444850.tar.bz2
fixed language problem
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@731 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests/init.pp')
-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',
+ }
+ }
+ }
}
}
}