ReleaseEngineering/PuppetAgain/Modules/httpd: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
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 three available classes:
It has two available classes:


== httpd::config ==
== httpd::config ==
Given a file name and it's template contents, add it to /etc/apache2/other/The default httpd.conf includes files in /etc/apache2/other/*.conf
Given a file name and it's template contents, add it to the Apache config.  This is best for vhost configsFor 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 ==


== http::settings ==
To restart httpd, e.g., when a config for an httpd module changes, use
settings common to the httpd module
    notify => Service['httpd']

Latest revision as of 16:56, 6 August 2013

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