ARTH TASK 12

I have Configured Master Node as Controller node of Ansible, created ansible configuration file in the ansible workspace and specified my inventory path

๐Ÿ”นInventory: A database containing the list of worker nodes or system upon which configuration has to be performed

๐Ÿ”นCheck the connectivity to all the nodes using command

ansible all -m ping → this command goes to all the node and perform ping operation

let’s begin with configuring the target nodes as web servers:

Here, I have created a single playbook where I have created two different plays. One play is for configuring the target nodes as webservers and the second play is for configuring the localhost as the Haproxy server.

๐Ÿ”นplaybook for configuring the target nodes as webservers:

๐Ÿ”นThis playbook will :

  1. attach mount my RHEL8 dvd containing different software with the node
  2. 2.create BaseOS & AppStream Yum Repo
  3. Installs httpd package from the yum repo that we created
  4. copy the content inside root directory of apache-webserver (/var/www/html/)
  5. Start httpd services

๐Ÿ”นThis playbook will :

  1. Installs the HAproxy package, used for load balancing purpose
  2. I have a pre-created configuration template in which I have used some of the Jinja2 programs in order to dynamically identify the IP of the backend servers, so this step will copy this template to the destination folder.

๐Ÿ”นGiven is the image of the configuration file that i have copied to slave nodes using template module.

๐Ÿ”นLet’s run the playbook

๐Ÿ”นThe load balancer has been configured successfully:

 

Comments

Popular posts from this blog

ARTH TASK 23 [๐Ÿ“Œ Automate Kubernetes Cluster Using Ansible ๐Ÿ”… Launch ec2-instances on AWS Cloud eg. for master and slave. ๐Ÿ”… Create roles that will configure master node and slave node seperately. ๐Ÿ”… Launch a wordpress and mysql database connected to it in the respectine slaves. ๐Ÿ”… Expose the wordpress pod and client able hit the wordpress ip with its respective port. ]

Arth Task6 "Create High Availability Architecture with AWS CLI" #awscloud #awscli #aws #vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeudcation #awsbylw #arthbylw

RH294 real used cases workshop #RedHat #vimaldaga #righteducation #educationredefine #rightmentor #linuxworld #makingindiafutureready #righeducation #arthbylw #ansiblebylw #ansible #expertsession #sreejith #arun #practicalimplementation #rh294