diff options
-rw-r--r-- | manifests/init.pp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 15b4720..40ffd1b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -5,27 +5,27 @@ modules_dir { "sshd": } class sshd { - - - - service{'sshd': - enable => true, + service{'sshd': + enable => true, ensure => running, - require => Package[openssh], + require => $operatingsystem ? { + openbsd => '', + default => Package[openssh], + } } - package{openssh: - name => $operatingsystem ? { - centos => openssh-server, - default => openssh, - }, - alias => 'openssh', + package{openssh: + name => $operatingsystem ? { + centos => openssh-server, + default => openssh, + }, + alias => 'openssh', category => $operatingsystem ? { gentoo => 'net-misc', - default => '', - }, - ensure => present, - } + default => '', + }, + ensure => present, + } } define sshd::sshd_config ( |