summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-11-01 13:58:09 +0000
committermh <mh@immerda.ch>2008-11-01 13:58:09 +0000
commit70127d1200afb6903dac64b4ac3ebf51712bbb3d (patch)
tree578c00ca126ed21d3e7c2c08106665d01d4d8d68 /manifests/init.pp
parent7a0ddd2fd2b3c4f32bbe418818f4e6ad948d2b95 (diff)
enabled apache for openbsd
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp15
1 files changed, 15 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index db77b14..2fccd4d 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -165,4 +165,19 @@ class apache::openbsd inherits apache::base {
File[default_apache_index] {
path => '/var/www/htdocs/index.html',
}
+
+ file{'/opt/bin/restart_apache.sh':
+ source => "puppet://$server/apache/openbsd/bin/restart_apache.sh",
+ require => File['/opt/bin'],
+ owner => root, group => 0, mode => 0700;
+ }
+
+ Service['apache']{
+ hasstatus => true,
+ hasrestart => true,
+ restart => '/opt/bin/restart_apache.sh',
+ status => 'apachectl status',
+ start => 'apachectl start',
+ stop => 'apachectl stop',
+ }
}