This cookbook install and configure a reverse proxy http without mod_SSL
apache2
hostsfile
Just include chef-reverseproxy
in your node's run_list
:
{
"name":"my_node",
"run_list": [
"recipe[chef-reverseproxy]"
]
}
Create a data bag named reverseproxies:
knife data bag create reverseproxies
Create also a data bag item named with the fqdn node ("node_example_com") with underscores in place of dot.
knife data bag from file reverseproxies node_example_com.json
With node_example_com.json :
{
"id": "node_example_com",
"members": "test.gov.pf , test2.gov.pf , test3.gov.pf",
"test.gov.pf": {
"server_name": "test.gov.pf",
"server_name_proxy": "test.srv.gov.pf",
"server_ip_proxy": "192.168.0.210"
},
"test2.gov.pf": {
"server_name": "test2.gov.pf",
"server_name_proxy": "test2.srv.gov.pf",
"server_ip_proxy": "192.168.0.212"
},
"test3.gov.pf": {
"server_name": "test3.gov.pf",
"server_name_proxy": "test3.srv.gov.pf",
"server_ip_proxy": "192.168.0.213"
}
}
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Stéphane LII