ReleaseEngineering/PuppetAgain/Modules/httpd

From MozillaWiki
Jump to: navigation, search

This module enables a httpd server, and allows simple httpd configurations to be added using a config directory.

It has two available classes:

httpd::config

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

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