From 2a92cc0827879d49ac62d78926cc344ccaac2a49 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 4 Jan 2008 14:16:20 +0000 Subject: added new sshd service way git-svn-id: https://svn/ipuppet/trunk/modules/sshd@397 d66ca3ae-40d7-4aa7-90d4-87d79ca94279 --- manifests/init.pp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 98f2d63..f1807f6 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,9 +8,9 @@ class sshd { case $operatingsystem { OpenBSD: { - service{'sshd': - enable => true, - ensure => running, + exec{sshd_refresh: + command => "kill -HUP `cat /var/run/sshd.pid`", + refreshonly => true, } } default: { @@ -53,6 +53,9 @@ define sshd::sshd_config ( group => 0, mode => 600, content => template("sshd/sshd_config/${real_source}"), - notify => Service[sshd], + notify => $operatingsystem ? { + openbsd => Exec[sshd_refresh], + default => Service[sshd], + } } } -- cgit v1.2.3