Puppet Class: profile::microsites::static_rt

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

Overview

static HTML archive of old RT tickets (T180641)

Parameters:

  • ldap_config (Hash) (defaults to: lookup('ldap', Hash, hash, {}))


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
29
30
31
32
33
34
35
# File 'modules/profile/manifests/microsites/static_rt.pp', line 2

class profile::microsites::static_rt(
    Hash $ldap_config = lookup('ldap', Hash, hash, {}),
){

    backup::set { 'rt-static' : }
    ensure_resource('file', '/srv/org', {'ensure' => 'directory' })
    ensure_resource('file', '/srv/org/wikimedia', {'ensure' => 'directory' })
    ensure_resource('file', '/srv/org/wikimedia/static-rt', {'ensure' => 'directory' })

    include ::passwords::ldap::production

    $ldap_url = "ldaps://${ldap_config[ro-server]} ${ldap_config[ro-server-fallback]}/ou=people,dc=wikimedia,dc=org?cn"
    $ldap_pass = $passwords::ldap::production::proxypass
    $ldap_group = 'cn=ops,ou=groups,dc=wikimedia,dc=org'

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

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

    #monitoring::service { 'static-rt-https':
    #    description   => 'Static RT HTTPS',
    #    check_command => 'check_https_url!static-rt.wikimedia.org!/',
    #    notes_url     => 'https://wikitech.wikimedia.org/wiki/RT',
    #}
}