Puppet Class: mediawiki::web::sites

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

Overview

Parameters:

  • domain_suffix (String) (defaults to: 'org')


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/mediawiki/manifests/web/sites.pp', line 1

class mediawiki::web::sites (
    String $domain_suffix = 'org',
) {
    tag 'mediawiki', 'mw-apache-config'

    #common code snippets that were included in the virtualhosts. They now need to be removed from disk
    file { ['/etc/apache2/sites-enabled/wikimedia-common.incl', '/etc/apache2/sites-enabled/wikimedia-legacy.incl',
            '/etc/apache2/sites-enabled/api-rewrites.incl', '/etc/apache2/sites-enabled/public-wiki-rewrites.incl']:
        ensure  => absent,
    }

    file { '/etc/apache2/sites-enabled/wikidata-uris.incl':
        ensure => present,
        source => 'puppet:///modules/mediawiki/apache/sites/wikidata-uris.incl',
        before => Service['apache2'],
    }

    ::httpd::site { 'nonexistent':
        source   => 'puppet:///modules/mediawiki/apache/sites/nonexistent.conf',
        priority => 0,
    }

    ::httpd::site { 'wwwportals':
        content  => template('mediawiki/apache/sites/wwwportals.conf.erb'),
        priority => 1,
    }
}