From 904bdd65ed7eb338bfdd63d0466a646397a0af89 Mon Sep 17 00:00:00 2001 From: mh Date: Sat, 2 Feb 2008 00:36:44 +0000 Subject: fixed language problem git-svn-id: https://svn/ipuppet/trunk/modules/sshd@735 d66ca3ae-40d7-4aa7-90d4-87d79ca94279 --- manifests/init.pp | 14 +++++++------- 1 file 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', - } - } - } } } } -- cgit v1.2.3