Puppet Class: profile::aptrepo::wikimedia

Defined in:
modules/profile/manifests/aptrepo/wikimedia.pp

Overview

Parameters:

  • primary_server (Any) (defaults to: hiera('install_server'))
  • secondary_server (Any) (defaults to: hiera('install_server_failover'))


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
# File 'modules/profile/manifests/aptrepo/wikimedia.pp', line 2

class profile::aptrepo::wikimedia (
    $primary_server = hiera('install_server'),
    $secondary_server = hiera('install_server_failover'),
){
    $basedir = '/srv/wikimedia'

    class { '::aptrepo':
        basedir       => $basedir,
        incomingconf  => 'incoming-wikimedia',
        incominguser  => 'root',
        # Allow wikidev users to upload to /srv/wikimedia/incoming
        incominggroup => 'wikidev',
    }

    file { "${basedir}/conf/distributions":
        ensure => present,
        mode   => '0444',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/aptrepo/distributions-wikimedia',
    }

    include ::profile::backup::host
    backup::set { 'srv-wikimedia': }

    class { 'aptrepo::rsync':
        primary_server   => $primary_server,
        secondary_server => $secondary_server,
    }
}