Puppet Class: profile::microsites::research

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

Overview

Parameters:

  • server_name (Any) (defaults to: hiera('profile::microsites::research::server_name'))
  • server_admin (Any) (defaults to: hiera('profile::microsites::research::server_admin'))


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

class profile::microsites::research(
  $server_name = hiera('profile::microsites::research::server_name'),
  $server_admin = hiera('profile::microsites::research::server_admin'),
) {

    httpd::site { 'research.wikimedia.org':
        content => template('profile/research/apache-research.wikimedia.org.erb'),
    }

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

    git::clone { 'research/landing-page':
        ensure    => 'latest',
        source    => 'gerrit',
        directory => '/srv/org/wikimedia/research',
        branch    => 'master',
    }

}