Class lighttpd::lighttpd
In: /modules/lighttpd/manifests/init.pp
Parent:

lighttpd server module.

Sample Usage :

    none

Resources

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"]

Main configuration file

File["/etc/lighttpd/modules.conf"]
   content => template("lighttpd/modules.conf.erb")
   notify => Service["lighttpd"]

Modules configuration file

Package["lighttpd"]
   ensure => installed

Main package and service

Service["lighttpd"]
   ensure => running
   enable => true
   restart => "/sbin/service lighttpd restart"

[Validate]