]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
added new sshd service way
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Fri, 4 Jan 2008 14:16:20 +0000 (14:16 +0000)
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Fri, 4 Jan 2008 14:16:20 +0000 (14:16 +0000)
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@397 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/init.pp

index 98f2d6307587c43589c15366ec926bef9dc0e1a2..f1807f6e9fdba2659d3f781b69412453d7858db7 100644 (file)
@@ -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],
+               }
         }
 }