summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>
+