Puppet Class: profile::microsites::static_tendril

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

Overview

Provisions static site as graveyard of tendril hosted at <tendril.wikimedia.org> and <dbtree.wikimedia.org>.



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

class profile::microsites::static_tendril {

    $docroot = '/srv/org/wikimedia/static-tendril'

    wmflib::dir::mkdir_p($docroot)

    file { "${docroot}/index.html":
        source => 'puppet:///modules/profile/microsites/static-tendril-index.html',
        mode   => '0444',
        owner  => 'root',
        group  => 'root',
    }


    # tendril.wikimedia.org and dbtree.wikimedia.org as alias
    httpd::site { 'static-tendril.wikimedia.org':
        content => template('profile/microsites/static-tendril.wikimedia.org.erb'),
    }
}