summaryrefslogtreecommitdiff
path: root/puppet/modules/site_haproxy/manifests/init.pp
blob: 7cb10ab242bcd633624f58ff0ea1abd2301b393b (plain)
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
class site_haproxy {

    class { 'haproxy':
    enable           => true,
    manage_service   => true,
    global_options   => {
      'log'     => '127.0.0.1 local0',
      'maxconn' => '4096',
      'stats'   => 'socket /var/run/haproxy.sock user haproxy group haproxy',
      'chroot'  => '/usr/share/haproxy',
      'user'    => 'haproxy',
      'group'   => 'haproxy',
      'daemon'  => ''
    },
    defaults_options => {
      'log'        => 'global',
      'retries'    => '3',
      'option'     => 'redispatch',
      'contimeout' => '5000',
      'clitimeout' => '50000',
      'srvtimeout' => '50000'
    }
  }

}