Puppet Class: profile::toolforge::k8s::apilb

Defined in:
modules/profile/manifests/toolforge/k8s/apilb.pp

Overview

Parameters:

  • servers (Any) (defaults to: hiera('profile::toolforge::k8s::api_servers'))


1
2
3
4
5
6
7
8
9
10
11
12
13
14
# File 'modules/profile/manifests/toolforge/k8s/apilb.pp', line 1

class profile::toolforge::k8s::apilb (
        $servers = hiera('profile::toolforge::k8s::api_servers'),
    ) {

    class { 'haproxy':
        template => 'profile/toolforge/k8s/apilb/haproxy.cfg.erb',
    }

    nrpe::monitor_service { 'haproxy_failover':
        description  => 'haproxy failover',
        nrpe_command => '/usr/lib/nagios/plugins/check_haproxy --check=failover',
        notes_url    => 'https://phabricator.wikimedia.org/tag/toolforge/',
    }
}