summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-01-08 23:19:37 +0000
committermh <mh@immerda.ch>2009-01-08 23:19:37 +0000
commita164d760689a466c45db4c1aecc62e8de0510ab6 (patch)
tree0194fe6300c813c8801778c4d86c642d751d2d5b
parent1f1c7cc1d5ea9041505ad6824781955a5c80b2e5 (diff)
downloadpuppet-lighttpd-a164d760689a466c45db4c1aecc62e8de0510ab6.tar.gz
puppet-lighttpd-a164d760689a466c45db4c1aecc62e8de0510ab6.tar.bz2
added config file
-rw-r--r--manifests/init.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9874f99..cc6351c 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,8 +17,16 @@ class lighttpd::base {
service{lighttpd:
ensure => running,
enable => true,
- #hasstatus => true, #fixme!
+ hasstatus => true,
require => Package[lighttpd],
}
+ file{'/etc/lighttpd/lighttpd.conf':
+ source => [ "puppet://$server/files/lighttpd/${fqdn}/lighttpd.conf",
+ "puppet://$server/files/lighttpd/lighttpd.conf",
+ "puppet://$server/lighttpd/lighttpd.conf" ],
+ require => Package['lighttpd'],
+ notify => Service['lighttpd'],
+ owner => root, group => 0, mode => 0644;
+ }
}