Puppet Class: profile::microsites::transparency

Defined in:
modules/profile/manifests/microsites/transparency.pp

Overview

Provisions the Wikimedia Transparency Report static site hosted at <transparency.wikimedia.org>.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'modules/profile/manifests/microsites/transparency.pp', line 4

class profile::microsites::transparency {

    $repo_dir = '/srv/org/wikimedia/TransparencyReport'
    $docroot  = "${repo_dir}/build"

    git::clone { 'wikimedia/TransparencyReport':
        ensure    => latest,
        directory => $repo_dir,
    }

    httpd::site { 'transparency.wikimedia.org':
        content => template('role/apache/sites/transparency.wikimedia.org.erb'),
    }

    httpd::site { 'transparency-archive.wikimedia.org':
        content => template('role/apache/sites/transparency-archive.wikimedia.org.erb'),
    }
}