Puppet Class: profile::mariadb::ferm_wmcs_on_port_3325

Defined in:
modules/profile/manifests/mariadb/ferm_wmcs_on_port_3325.pp

Overview

Parameters:

  • nova_controller (Any) (defaults to: hiera('profile::openstack::eqiad1::nova_controller'))
  • nova_controller_standby (Any) (defaults to: hiera('profile::openstack::eqiad1::nova_controller_standby'))
  • designate_host (Any) (defaults to: hiera('profile::openstack::eqiad1::designate_host'))
  • designate_host_standby (Any) (defaults to: hiera('profile::openstack::eqiad1::designate_host_standby'))
  • labweb_hosts (Any) (defaults to: hiera('profile::openstack::eqiad1::labweb_hosts'))
  • cloudweb_dev_hosts (Any) (defaults to: hiera('profile::openstack::codfw1dev::labweb_hosts'))
  • osm_host (Any) (defaults to: hiera('profile::openstack::eqiad1::osm_host'))


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
53
54
55
56
57
58
59
# File 'modules/profile/manifests/mariadb/ferm_wmcs_on_port_3325.pp', line 5

class profile::mariadb::ferm_wmcs_on_port_3325(
    $nova_controller = hiera('profile::openstack::eqiad1::nova_controller'),
    $nova_controller_standby = hiera('profile::openstack::eqiad1::nova_controller_standby'),
    $designate_host = hiera('profile::openstack::eqiad1::designate_host'),
    $designate_host_standby = hiera('profile::openstack::eqiad1::designate_host_standby'),
    $labweb_hosts = hiera('profile::openstack::eqiad1::labweb_hosts'),
    $cloudweb_dev_hosts = hiera('profile::openstack::codfw1dev::labweb_hosts'),
    $osm_host = hiera('profile::openstack::eqiad1::osm_host'),
    ) {
    $port = '3325'

    ferm::service{ 'nova_controller':
        proto   => 'tcp',
        port    => $port,
        notrack => true,
        srange  => "(@resolve(${nova_controller}) @resolve(${nova_controller_standby}))",
    }

    ferm::service{ 'designate':
        proto   => 'tcp',
        port    => $port,
        notrack => true,
        srange  => "(@resolve(${designate_host}) @resolve(${designate_host_standby}))",
    }

    ferm::service{ 'wmcs_puppetmasters':
        proto   => 'tcp',
        port    => $port,
        notrack => true,
        srange  => '(@resolve(labpuppetmaster1001.wikimedia.org) @resolve(labpuppetmaster1002.wikimedia.org))',
    }

    ferm::service{ 'wikitech':
        proto   => 'tcp',
        port    => $port,
        notrack => true,
        srange  => "@resolve(${osm_host})",
    }

    # Soon, 'labweb' will replace horizon, striker, and wikitech
    $labweb_ips = inline_template("@resolve((<%= @labweb_hosts.join(' ') %>))")
    ferm::service{ 'labweb':
        proto   => 'tcp',
        port    => $port,
        notrack => true,
        srange  => $labweb_ips,
    }
    $cloudweb_dev_ips = inline_template("@resolve((<%= @cloudweb_dev_hosts.join(' ') %>))")
    ferm::service{ 'cloudweb_dev':
        proto   => 'tcp',
        port    => $port,
        notrack => true,
        srange  => $cloudweb_dev_ips,
    }
}