Puppet Class: profile::mariadb::ferm_wmcs

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

Overview

Parameters:

  • eqiad1_openstack_controllers (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::eqiad1::openstack_controllers'))
  • designate_hosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::eqiad1::designate_hosts'))
  • labweb_hosts (Array[Stdlib::Fqdn]) (defaults to: lookup('profile::openstack::eqiad1::labweb_hosts'))


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

class profile::mariadb::ferm_wmcs(
    Array[Stdlib::Fqdn] $eqiad1_openstack_controllers = lookup('profile::openstack::eqiad1::openstack_controllers'),
    Array[Stdlib::Fqdn] $designate_hosts = lookup('profile::openstack::eqiad1::designate_hosts'),
    Array[Stdlib::Fqdn] $labweb_hosts = lookup('profile::openstack::eqiad1::labweb_hosts'),
    ) {
    $port = '3306'

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

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

    $labweb_ips = inline_template("@resolve((<%= @labweb_hosts.join(' ') %>))")
    ferm::service{ 'labweb':
        proto   => 'tcp',
        port    => $port,
        notrack => true,
        srange  => $labweb_ips,
    }
}