canmove, Confirmed users
1,394
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
This module enables a httpd server, and allows simple httpd configurations to be added using a config directory. | This module enables a httpd server, and allows simple httpd configurations to be added using a config directory. | ||
It has | It has two available classes: | ||
== httpd::config == | == httpd::config == | ||
Given a file name and it's template contents, add it to | Given a file name and it's template contents, add it to the Apache config. This is best for vhost configs. For example: | ||
httpd::config { | |||
"myapp_httpd.conf" : | |||
content => template("myapp/myapp_httpd_conf.erb"); | |||
} | |||
== httpd == | == httpd == | ||
Enable httpd as a running service. | Enable httpd as a running service. This is included automatically by httpd::config. | ||
== restarting == | |||
= | To restart httpd, e.g., when a config for an httpd module changes, use | ||
notify => Service['httpd'] |