Puppet Class: profile::microsites::static_codereview

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

Overview

static HTML archive of Extension:CodeReview



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
28
# File 'modules/profile/manifests/microsites/static_codereview.pp', line 2

class profile::microsites::static_codereview {

    backup::set { 'static-codereview' : }

    monitoring::service { 'static-codereview-http':
        description   => 'Static CodeReview archive HTTP',
        check_command => 'check_http_url!static-codereview.wikimedia.org!/MediaWiki/1.html',
        notes_url     => 'https://wikitech.wikimedia.org/wiki/Static-codereview.wikimedia.org',
    }

    ensure_resource('file', '/srv/org', {'ensure' => 'directory' })
    ensure_resource('file', '/srv/org/wikimedia', {'ensure' => 'directory' })
    ensure_resource('file', '/srv/org/wikimedia/static-codereview', {'ensure' => 'directory' })

    file { '/srv/org/wikimedia/static-codereview/index.html':
        ensure => present,
        owner  => 'www-data',
        group  => 'www-data',
        mode   => '0400',
        source => 'puppet:///modules/profile/microsites/static-codereview-index.html';
    }

    httpd::site { 'static-codereview.wikimedia.org':
        content  => template('profile/microsites/static-codereview.wikimedia.org.erb'),
        priority => 20,
    }
}