Puppet Class: classroom_legacy::proxy

Defined in:
manifests/proxy.pp

Overview



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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'manifests/proxy.pp', line 1

class classroom_legacy::proxy {
  assert_private('This class should not be called directly')

  include '::haproxy'
  include classroom_legacy::agent::time

  haproxy::listen { 'puppet00':
    ipaddress => $::ipaddress,
    ports     => '8140',
    options   => {
      'mode'  => 'tcp',
    },
  }

  haproxy::listen { 'web00':
    ipaddress => $::ipaddress,
    ports     => '80',
    options   => {
      'mode'  => 'http',
    },
  }

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

  Host <<| tag == 'classroom'  |>>
  Host <<| tag == 'puppetlabs' |>>

  @@host { $::fqdn:
    ensure       => present,
    host_aliases => [$::hostname],
    ip           => $::ipaddress,
    tag          => 'puppetlabs',
  }
}