Puppet Class: profile::wmcs::cloudlb::haproxy

Defined in:
modules/profile/manifests/wmcs/cloudlb/haproxy.pp

Overview

Parameters:

  • cloudlb_haproxy_config (CloudLB::HAProxy::Config) (defaults to: lookup('profile::wmcs::cloudlb::haproxy::config'))
  • acme_chief_cert_name (String[1]) (defaults to: lookup('profile::wmcs::cloudlb::haproxy::acme_chief_cert_name'))


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
# File 'modules/profile/manifests/wmcs/cloudlb/haproxy.pp', line 3

class profile::wmcs::cloudlb::haproxy (
    CloudLB::HAProxy::Config $cloudlb_haproxy_config = lookup('profile::wmcs::cloudlb::haproxy::config'),
    String[1]                $acme_chief_cert_name   = lookup('profile::wmcs::cloudlb::haproxy::acme_chief_cert_name'),
) {
    acme_chief::cert { $acme_chief_cert_name:
        puppet_svc => 'haproxy',
    }

    class { 'haproxy':
        template => 'cloudlb/haproxy/haproxy.cfg.erb',
    }

    file { '/etc/haproxy/ipblocklist.txt':
        ensure => 'present',
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
        source => 'puppet:///modules/cloudlb/haproxy/ipblocklist.txt',
    }

    file { '/etc/haproxy/agentblocklist.txt':
        ensure => 'present',
        owner  => 'root',
        group  => 'root',
        mode   => '0444',
        source => 'puppet:///modules/cloudlb/haproxy/agentblocklist.txt',
    }

    include network::constants
    class { 'cloudlb::haproxy::load_all_config':
        cloudlb_haproxy_config => $cloudlb_haproxy_config,
    }
}