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', - } - } - } } } }