Puppet Class: role::swift::swiftrepl

Defined in:
modules/role/manifests/swift/swiftrepl.pp

Overview

Parameters:

  • ensure (Any) (defaults to: lookup('role::swift::swiftrepl::ensure', { 'default_value' => 'present' }))


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

class role::swift::swiftrepl (
  $ensure = lookup('role::swift::swiftrepl::ensure', { 'default_value' => 'present' }), # lint:ignore:wmf_styleguide
) {
    include ::profile::standard

    $source_site = $::site
    case $source_site {
        'eqiad': {
            $destination_site = 'codfw'
        }
        'codfw': {
            $destination_site = 'eqiad'
        }
        default: { fail("Unsupported source site ${::site}") }
    }

    class { '::swift::swiftrepl':
        ensure           => $ensure,
        destination_site => $destination_site,
        source_site      => $source_site,
    }
}