summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schmitt <david@schmitt.edv-bus.at>2008-09-08 20:12:12 +0200
committerDavid Schmitt <david@schmitt.edv-bus.at>2008-09-08 20:12:12 +0200
commitc9c389010b40f1768f039200539cf27a032d0348 (patch)
treee24e317f5798428000033bc3e0fb696e0ed2e8f3
parent82d90e5f3d3dc8cf0daeb58e8fe597eef7738ae8 (diff)
add apache site
-rw-r--r--manifests/host.pp9
-rw-r--r--templates/site.conf9
2 files changed, 18 insertions, 0 deletions
diff --git a/manifests/host.pp b/manifests/host.pp
index f539c9e..af0f11b 100644
--- a/manifests/host.pp
+++ b/manifests/host.pp
@@ -37,3 +37,12 @@ class munin::snmp_collector
schedule => daily
}
}
+
+define munin::apache_site()
+{
+ apache::site {
+ $name:
+ ensure => present,
+ content => template("munin/site.conf")
+ }
+}
diff --git a/templates/site.conf b/templates/site.conf
new file mode 100644
index 0000000..549437c
--- /dev/null
+++ b/templates/site.conf
@@ -0,0 +1,9 @@
+<VirtualHost *>
+ ServerName <%= name %>
+ DocumentRoot /var/www/munin/
+ <Location />
+ order allow,deny
+ Allow from all
+ </Location>
+</VirtualHost>
+