Puppet Class: profile::microsites::static_codereview

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

Overview

SPDX-License-Identifier: Apache-2.0 static HTML archive of Extension:CodeReview



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/profile/manifests/microsites/static_codereview.pp', line 3

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',
    }

    wmflib::dir::mkdir_p('/srv/org/wikimedia/static-codereview')

    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,
    }
}