aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-04 14:16:20 +0000
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>2008-01-04 14:16:20 +0000
commit2a92cc0827879d49ac62d78926cc344ccaac2a49 (patch)
tree066518cd90a75abff58dfebadcb44d7ab7232a38 /manifests
parent6c229125f22e7e10fe0888b863b219f3d6eaca9c (diff)
downloadpuppet-sshd-2a92cc0827879d49ac62d78926cc344ccaac2a49.tar.gz
puppet-sshd-2a92cc0827879d49ac62d78926cc344ccaac2a49.tar.bz2
added new sshd service way
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@397 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp11
1 files 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],
+ }
}
}