Sha256: 718a06ff3c171b0cb69bd12f44f592b83000360373b840e42baab2c709794d3c

Contents?: true

Size: 859 Bytes

Versions: 2

Compression:

Stored size: 859 Bytes

Contents

# == Class: profile::haproxy
#
# Hosts stats at :9090 puppet:puppet
#
# @param listening_pools A hash of listening pools
class profile::haproxy (
  Hash $listening_pools = {}
) {
  include ::haproxy

  # Disbale firewall for load balancers
  service { 'firewalld':
    ensure => 'stopped',
    enable => false,
  }

  $listening_pools.each |$name, $params| {
    haproxy::listen { $name:
      ipaddress => '0.0.0.0',
      *         => $params,
    }
  }

  ini_setting { 'runinterval':
    ensure  => present,
    path    => '/etc/puppetlabs/puppet/puppet.conf',
    section => 'agent',
    setting => 'runinterval',
    value   => '60',
  }

  haproxy::listen { 'stats':
    ipaddress => '0.0.0.0',
    ports     => '9090',
    options   => {
      'mode'  => 'http',
      'stats' => [
        'uri /',
        'auth puppet:puppet',
      ],
    },
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onceover-4.0.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/haproxy.pp
onceover-3.22.0 spec/fixtures/controlrepos/puppet_controlrepo/site-modules/profile/manifests/haproxy.pp