Puppet Class: profile::pybal::testing

Defined in:
modules/profile/manifests/pybal/testing.pp

Overview

Class profile::pybal::testing

Class for a pybal test host

Parameters:

  • pybal_site (String) (defaults to: lookup(pybal::configuration::site, {default_value => 'eqiad'}))
  • pybal_config (String) (defaults to: lookup(pybal::configuration::config, {default_value => 'http'}))
  • pybal_config_host (String) (defaults to: lookup(pybal::configuration::config_host, {default_value => 'config-master.eqiad.wmnet'}))


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
# File 'modules/profile/manifests/pybal/testing.pp', line 5

class profile::pybal::testing(
    String $pybal_site = lookup(pybal::configuration::site, {default_value => 'eqiad'}),
    String $pybal_config = lookup(pybal::configuration::config, {default_value => 'http'}),
    String $pybal_config_host = lookup(pybal::configuration::config_host, {default_value => 'config-master.eqiad.wmnet'}),
){
    $opts = {
        'instrumentation' => 'yes',
        'bgp'             => 'no',
        'dry-run'         => 'yes',
    }
    # TODO: fix this.\
    $services = wmflib::service::get_services_for_lvs('secondary', $::site)

    $lvs_class_hosts_stub = {
        'high-traffic1' => [$::hostname],
        'high-traffic2' => [$::hostname],
        'low-traffic'   => [$::hostname],
    }
    class { 'pybal::configuration':
        global_options  => $opts,
        services        => $services,
        lvs_class_hosts => $lvs_class_hosts_stub,
        site            => $pybal_site,
        config          => $pybal_config,
        config_host     => $pybal_config_host,
    }
}