Created
February 22, 2016 11:49
-
-
Save MeenachiSundaram/b85ff995d0391b81331a to your computer and use it in GitHub Desktop.
site.pp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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