summaryrefslogtreecommitdiff
path: root/manifests/vhosts.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-07-06 00:06:32 +0200
committermh <mh@immerda.ch>2010-07-06 00:08:56 +0200
commit29deff66d7dfad609e429a14ad6917b79de5de50 (patch)
treea1b8a526c5e07e95be8ff6451216a5269b606f66 /manifests/vhosts.pp
parent9ff20635fbb0945195f2b562f46efca8f5d13850 (diff)
downloadpuppet-lighttpd-29deff66d7dfad609e429a14ad6917b79de5de50.tar.gz
puppet-lighttpd-29deff66d7dfad609e429a14ad6917b79de5de50.tar.bz2
improve vhosts / ssl stuff
- facter out ssl things in a seperate file - introduce 1 vhost per file config
Diffstat (limited to 'manifests/vhosts.pp')
-rw-r--r--manifests/vhosts.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/vhosts.pp b/manifests/vhosts.pp
new file mode 100644
index 0000000..9e02661
--- /dev/null
+++ b/manifests/vhosts.pp
@@ -0,0 +1,11 @@
+class lighttpd::vhosts {
+ file{'/etc/lighttpd/vhosts.d':
+ source => "puppet://$server/modules/common/empty",
+ ensure => directory,
+ purge => true,
+ recurse => true,
+ require => Package['lighttpd'],
+ notify => Service['lighttpd'],
+ owner => root, group => 0, mode => 0644;
+ }
+}