From 147507f159795f3943146248d97a83287b8d8874 Mon Sep 17 00:00:00 2001 From: mh Date: Wed, 2 Jan 2008 20:02:15 +0000 Subject: changed the install behaviour for openbsd git-svn-id: https://svn/ipuppet/trunk/modules/sshd@348 d66ca3ae-40d7-4aa7-90d4-87d79ca94279 --- manifests/init.pp | 48 +++++++++++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 19 deletions(-) (limited to 'manifests') diff --git a/manifests/init.pp b/manifests/init.pp index 40ffd1b..221a95e 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -5,27 +5,37 @@ modules_dir { "sshd": } class sshd { - service{'sshd': - enable => true, - ensure => running, - require => $operatingsystem ? { - openbsd => '', - default => Package[openssh], - } - } - package{openssh: - name => $operatingsystem ? { - centos => openssh-server, - default => openssh, - }, - alias => 'openssh', - category => $operatingsystem ? { - gentoo => 'net-misc', - default => '', - }, - ensure => present, + case $operatingsystem { + OpenBSD: { + service{'sshd': + enable => true, + ensure => running, + } + }, + default: { + service{'sshd': + enable => true, + ensure => running, + require => Package[openssh], + } + + package{openssh: + name => $operatingsystem ? { + centos => openssh-server, + default => openssh, + }, + alias => 'openssh', + category => $operatingsystem ? { + gentoo => 'net-misc', + default => '', + }, + ensure => present, + } + } } + + } define sshd::sshd_config ( -- cgit v1.2.3