Install and configure haproxy
This cookbook is only tested with Ubuntu 12.04. This also looks for a databag called haproxy.
| Key | Type | Description | Default |
|---|---|---|---|
| ['haproxy']['global']['log'] | Hash | Log location and facility | {"localhost" => "syslog"} |
| ['haproxy']['global']['user'] | String | User to run Haproxy as | haproxy |
| ['haproxy']['global']['group'] | String | Group to run Haproxy as | haproxy |
| ['haproxy']['global']['group'] | String | Group to run Haproxy as | haproxy |
| ['haproxy']['global']['maxconn'] | String | Maximum connections | 256 |
| ['haproxy']['default']['mode'] | String | Haproxy mode | http |
| ['haproxy']['default']['timeout_connect'] | String | Default connection timeout | 5s |
| ['haproxy']['default']['timeout_client'] | String | Default client timeout | 5s |
| ['haproxy']['default']['timeout_server'] | String | Default sever timeout | 5s |
TODO: Write usage instructions for each cookbook.
e.g.
Just include haproxy in your node's run_list:
{
"name":"my_node",
"run_list": [
"recipe[haproxy]"
]
}- Fork the repository on Github
- Create a named feature branch (like
add_component_x) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Jim Rosser
License: MIT