Skip to content

nerdlich/puppet-haproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

haproxy

This is the haproxy module.



Example:

    $haproxy_global_chroot = '/var/tmp/haproxy'
    include haproxy

    haproxy::listen {"webservers":
        ip => '0.0.0.0',
        mode => 'http',
        balance => 'roundrobin',
        options => ['httplog','httpclose','forwardfor','httpchk GET /check.txt'],
        stats => 'enable',
        stats_uri => '/admin?stats',
        stats_auth_user =>  'USERNAME',
        stats_auth_password => 'PASSWORD',
        cookie => 'enable',
        cookie_name => 'APPSERVER',
        cookie_options => 'insert',
        server_check => 'enable',
        check_inter => 1000,
        check_fall => 3,
        servers => [
        {
            'name' => 'webserver1',
            'ip' => '192.168.122.10',
            'port' => 82,
            'weight' => 10,
        },
        {
            'name' => 'webserver2',
            'ip' => '192.168.122.11',
            'port' => 82,
            'weight' => 20,
        }
        ],

    }

About

Puppet module for managing haproxy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Puppet 80.9%
  • Python 11.4%
  • Augeas 7.7%