From c9c389010b40f1768f039200539cf27a032d0348 Mon Sep 17 00:00:00 2001 From: David Schmitt Date: Mon, 8 Sep 2008 20:12:12 +0200 Subject: add apache site --- manifests/host.pp | 9 +++++++++ templates/site.conf | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 templates/site.conf 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 @@ + + ServerName <%= name %> + DocumentRoot /var/www/munin/ + + order allow,deny + Allow from all + + + -- cgit v1.2.3