Puppet Class: bugzilla_static

Defined in:
modules/bugzilla_static/manifests/init.pp

Overview

sets up a static HTML version of the old Bugzilla install T85140



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

class bugzilla_static {

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

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

    httpd::site { 'static-bugzilla.wikimedia.org':
        content  => template('bugzilla_static/apache/static-bugzilla.wikimedia.org.erb'),
        priority => 20,
    }

}