Puppet Class: profile::openstack::base::haproxy

Defined in:
modules/profile/manifests/openstack/base/haproxy.pp

Overview

Parameters:

  • logging (Boolean) (defaults to: lookup('profile::openstack::base::haproxy::logging'))


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

class profile::openstack::base::haproxy(
    Boolean $logging = lookup('profile::openstack::base::haproxy::logging'),
) {

    class { 'haproxy':
        logging  => $logging,
        template => 'profile/openstack/base/haproxy/haproxy.cfg.erb',
    }

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

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