Puppet Class: swift::ring

Defined in:
modules/swift/manifests/ring.pp

Overview

Parameters:

  • swift_cluster (String)
  • storage_policies (Boolean) (defaults to: true)


1
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'modules/swift/manifests/ring.pp', line 1

class swift::ring (
    String $swift_cluster,
    Boolean $storage_policies = true,
) {
    # lint:ignore:puppet_url_without_modules
    file { '/etc/swift/account.builder':
        ensure    => present,
        source    => "puppet:///volatile/swift/${swift_cluster}/account.builder",
        show_diff => false,
    }

    file { '/etc/swift/account.ring.gz':
        ensure => present,
        source => "puppet:///volatile/swift/${swift_cluster}/account.ring.gz",
    }

    file { '/etc/swift/container.builder':
        ensure    => present,
        source    => "puppet:///volatile/swift/${swift_cluster}/container.builder",
        show_diff => false,
    }

    file { '/etc/swift/container.ring.gz':
        ensure => present,
        source => "puppet:///volatile/swift/${swift_cluster}/container.ring.gz",
    }

    file { '/etc/swift/object.builder':
        ensure    => present,
        source    => "puppet:///volatile/swift/${swift_cluster}/object.builder",
        show_diff => false,
    }

    file { '/etc/swift/object.ring.gz':
        ensure => present,
        source => "puppet:///volatile/swift/${swift_cluster}/object.ring.gz",
    }

    if $storage_policies {
        file { '/etc/swift/object-1.builder':
            ensure    => present,
            source    => "puppet:///volatile/swift/${swift_cluster}/object-1.builder",
            show_diff => false,
        }

        file { '/etc/swift/object-1.ring.gz':
            ensure => present,
            source => "puppet:///volatile/swift/${swift_cluster}/object-1.ring.gz",
        }
    }
    # lint:endignore
}