Puppet Class: profile::releases::reprepro

Defined in:
modules/profile/manifests/releases/reprepro.pp

Overview

server hosting MediaWiki releases releases.wikimedia.org/mediawiki/

Parameters:

  • active_server (Stdlib::Fqdn) (defaults to: lookup('releases_server'))
  • passive_server (Stdlib::Fqdn) (defaults to: lookup('releases_server_failover'))


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'modules/profile/manifests/releases/reprepro.pp', line 3

class profile::releases::reprepro(
    Stdlib::Fqdn $active_server = lookup('releases_server'),
    Stdlib::Fqdn $passive_server = lookup('releases_server_failover'),
){

  class { '::releases::reprepro': }

  # ssh-based uploads from deployment servers
  ferm::service { 'deployment_package_upload':
      ensure => present,
      proto  => 'tcp',
      port   => 'ssh',
      srange => '$DEPLOYMENT_HOSTS',
  }

    rsync::quickdatacopy { 'srv-org-wikimedia-reprepro':
      ensure      => present,
      auto_sync   => true,
      source_host => $active_server,
      dest_host   => $passive_server,
      module_path => '/srv/org/wikimedia/reprepro',
    }
}