Puppet Class: profile::swift::swiftrepl

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

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

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


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

class profile::swift::swiftrepl(
    $ensure = lookup('profile::swift::swiftrepl::ensure', { 'default_value' => 'present' }),
){

    $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,
    }
}