Resources
File["/etc/lighttpd"]
ensure => directory
require => Package["lighttpd"]
Puppet auto-requires parent directories, so use that feature instead of
requiring the package for each configuration file.
File["/etc/lighttpd/conf.d/dirlisting.conf"]
content => template("lighttpd/conf.d/dirlisting.conf.erb")
notify => Service["lighttpd"]
Per-module configuration file
File["/etc/lighttpd/lighttpd.conf"]
content => template("lighttpd/lighttpd.conf.erb")
notify => Service["lighttpd"]
File["/etc/lighttpd/modules.conf"]
content => template("lighttpd/modules.conf.erb")
notify => Service["lighttpd"]
Modules configuration file
Package["lighttpd"]
ensure => installed
Service["lighttpd"]
ensure => running
enable => true
restart => "/sbin/service lighttpd restart"