ARTH — Task 12
12.1 Use Ansible playbook to Configure Reverse Proxy i.e. Haproxy and update it’s configuration file automatically on each time new Managed node (Configured With Apache Webserver) join the inventory.
Intro to Haproxy
>>HAProxy is free, open source software that provides a high availability load balancer and proxy server for TCP and HTTP-based applications that spreads requests across multiple servers. It is written in C and has a reputation for being fast and efficient.
Step 1
Create two groups in inventory
- one for load balancer
- one for webserver
Step 2
Install ha proxy in controll node
cmd:-yum install haproxy
Step 3
Update the haproxy.cfg file in controller node
Step 4
create a playbook for configure haproxy
Step 5
Run the playbook
Step 6
goto loadbalncer configured node
Task completed