ReleaseEngineering/PuppetAgain/Modules/httpd: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
m (Created page with "This module enables a httpd server on Darwin slaves It has three available classes: == define httpd::config ($file = $title, $contents = '') { == Given a file name and it's tem...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This module enables a httpd server on Darwin slaves
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:


== define httpd::config ($file = $title, $contents = '') { ==
== 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']