diff options
author | David Schmitt <david@schmitt.edv-bus.at> | 2008-09-08 20:12:12 +0200 |
---|---|---|
committer | David Schmitt <david@schmitt.edv-bus.at> | 2008-09-08 20:12:12 +0200 |
commit | c9c389010b40f1768f039200539cf27a032d0348 (patch) | |
tree | e24e317f5798428000033bc3e0fb696e0ed2e8f3 | |
parent | 82d90e5f3d3dc8cf0daeb58e8fe597eef7738ae8 (diff) |
add apache site
-rw-r--r-- | manifests/host.pp | 9 | ||||
-rw-r--r-- | templates/site.conf | 9 |
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> + |