Skip to content

Instantly share code, notes, and snippets.

@MeenachiSundaram
Created February 22, 2016 11:49
Show Gist options
  • Select an option

  • Save MeenachiSundaram/b85ff995d0391b81331a to your computer and use it in GitHub Desktop.

Select an option

Save MeenachiSundaram/b85ff995d0391b81331a to your computer and use it in GitHub Desktop.
site.pp
node 'lb' {
include ::haproxy
haproxy::listen { 'wordpress00':
collect_exported => false,
ipaddress => '0.0.0.0',
ports => '80',
options => {
'option' => [
'tcplog',
],
'balance' => 'roundrobin',
},
}
haproxy::balancermember { 'web01':
listening_service => 'wordpress00',
server_names => 'web01.example.com',
ipaddresses => '192.168.5.12',
ports => '80',
options => 'check',
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment