Puppet Class: profile::sretest

Defined in:
modules/profile/manifests/sretest.pp

Overview



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
# File 'modules/profile/manifests/sretest.pp', line 1

class profile::sretest {
    if debian::codename::eq('buster') {
        include profile::docker::firewall
        include profile::base::cuminunpriv
    }

    profile::contact { $title:
        contacts => ['jbond', 'jmm']
    }
    $cache_nodes = lookup('cache::nodes')  # lint:ignore:wmf_styleguide
    file {'/var/tmp/testing':
        ensure => directory,
    }
    file {'/var/tmp/testing/cache.nodes.eqsin.pdb':
        ensure  => file,
        content => wmflib::role_hosts('cache::upload', 'eqsin').to_yaml,
    }
    file {'/var/tmp/testing/cache.nodes.eqsin.hiera':
        ensure  => file,
        content => $cache_nodes['upload']['eqsin'].to_yaml
    }
    file {'/var/tmp/testing/cache.nodes.eq.pdb':
        ensure  => file,
        content => wmflib::role_hosts('cache::upload', ['eqsin', 'eqiad']).to_yaml,
    }
    file {'/var/tmp/testing/cache.nodes.eq.hiera':
        ensure  => file,
        content => ($cache_nodes['upload']['eqsin'] + $cache_nodes['upload']['eqiad']).to_yaml
    }
    file {'/var/tmp/testing/cache.nodes.pdb':
        ensure  => file,
        content => wmflib::role_hosts('cache::upload').to_yaml,
    }
    file {'/var/tmp/testing/cache.nodes.hiera':
        ensure  => file,
        content => $cache_nodes['upload'].to_yaml
    }
}