Defined Type: mediawiki::web::site

Defined in:
modules/mediawiki/manifests/web/site.pp

Overview

define mediawiki::web::site

Defines a simple file that can be included in the mediawiki apache configuration. This will allow us to convert our sites to using mediawiki::vhost one by one if needed (while allowing us to see a diff in the puppet compiler).

This define is transitional and should NOT be used outside of the mediawiki::web hierarchy

Parameters:

  • template_name (String) (defaults to: $title)
  • fcgi_proxy (String) (defaults to: 'fcgi://127.0.0.1:8000')


8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'modules/mediawiki/manifests/web/site.pp', line 8

define mediawiki::web::site(
    String $template_name = $title,
    String $fcgi_proxy = 'fcgi://127.0.0.1:8000',
) {
    file { "/etc/apache2/sites-available/${title}.conf":
        content => template("mediawiki/apache/sites/included/${template_name}.conf.erb"),
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        notify  => Service['apache2'],
        require => Package['apache2'],
    }
}