The webserver module manages the following files and directories, recursively:
/etc/httpd/conf/httpd.conf
This file is the configuration file used when the webserver starts. It imports all files in /etc/httpd/modules-enabled/
, as well as all files in /etc/httpd/sites-enabled/
. Additionally, it imports all files in /etc/httpd/conf.d/
, which holds some of the default configuration you might normally find in /etc/httpd/conf/httpd.conf
, but that can be shared amongst different hosts in your environment.
/etc/httpd/sites-enabled/
This directory holds all VirtualHosts configured for this webserver (by using webserver::virtualhost
), by ServerName.
/etc/httpd/modules-enabled/
This directory holds all the modules configured for this webserver (by using webserver::module
), and uses the package name to both install the required packages, as well as source and place the configuration file for that module.
/etc/httpd/conf.d/
Some modules (like, all of them), place their default configuration files inside this directory. The webserver
purges these.
To this end, the webserver module exposes the following resources:
webserver::module
Installs the required packages for the module requested (if available from the repositories).
Sources the appropriate default module file to /etc/httpd/modules-enabled/module_package_name.conf
, where module_package_name
is the name of the package providing the module.
Notifies the httpd service to be reloaded after the puppet run completes.
webserver::virtualhost
Sources the appropriate default configuration file to /etc/httpd/sites-enabled/virtualhost_servername.conf
, where virtualhost_servername
is actually the
name
of the resource when you make the call to webserver::virtualhost
.
Notifies the httpd service to be reloaded after the puppet run completes.
webserver::webapplication
This is a resource that offers you to completely configure a webapplication bofh-like style.