Posts

Showing posts with the label Automation

Configuring HAProxy using Ansible playbook

Image
Configuration Management  is the most important task, mostly task belonging to configuring different types of web servers with a different use-case and mostly in the industry, we have normally millions of webservers running behind the scene and manually configuring every webserver is practically not possible so the only key is automation. In this article, we would be configuring 1 system as Haproxy and 2 systems as a webserver using Ansible automation. So what is HaProxy? HAProxy is software that provides 2 services in a single packet, which stands for High Availability Proxy, It acts as a load balancer that helps in balancing the load between web servers and it also acts as a Reverse Proxy which improves the security of the webservers. So let's start with updating the Inventory file I  h ave created my inventory on the “ /root/ip.txt”  location of the Controller Node, and it will mainly consist of few details about  Target Node. vim /root/ip.txt Here I have created ...

Let’s make Apache webserver services idempotence using Ansible handlers

Image
The title seems ambiguous. Арасhe httрd is а serviсe whiсh helps in deploying web server on the system. The next eye-саtсher is Idemроtenсe. In this article, I would be achieving Apache webserver restart service with the ability of idempotence using ansible handlers So what is Idempotence? The main reason for using ansible is Idempotence as by the ability os idempot e nce ansible save a lot of CPU time which can be get wasted, think of the situation of where we have to scale our server and we have run the same playbook where all the server are added so is the ansible will run the task on the system which are already configured?. The answer is no as it has the intelligence of Idempotence which will guide it whether the task is already been run on that system or not leads to saving so much the resources of the company. But there is some situation where ansible can’t able act Idempotence, For example, while restarting the httpd service it does not follow idempotence. So for such a task, w...

A session with Ansible Industry Experts

Image
Yesterday I got an opportunity of having an exciting session on Industry Use cases on Automation using Ansible. All thanks to  Mr Sreejith Anijan (Principal Instructor in Redhat), Mr Arun Eapen  (Director, APAC Service Delivery, GLS RedHat Asia Pacific)   for imparting us a wonderful session for real use cases of Ansible. Got to learn many new things, the first point of a t traction was the welcome note from  Mr Arun Eapen  on the subject of why industries need to automate their trivial works from manual to digital and from digital to automated and due to pandemic situation this has speeded up and wanted all the possible works to be automated The session was all about  Ansible and Ansible Tower . As we all know automation is one of the most important parts of today’s for any organisation, all of them want to be fast and Ansible is a tool that is meant to be fast because it is simple, powerful and can be integrated with almost any technology. Ansible Tower ...

How to configure Hadoop cluster using Ansible playbook

Image
  Automation is the new future of today's industry now most of the industry is heading towards automation as it reduces human efforts and errors which can be performed by humans also will be reduced. Nowadays companies have to configure a large number of servers daily and doing manually every server is not practically possible and time-consuming as well and today's era we don't have time to waste for this so we have to need some automation tool which performs all the task in every server in a single click and one of the automation tool is Ansible. First, let's talk about what is Hadoop Apa c he Hadoop is open-source software that provides us with the facility to build our own distributed storage cluster and computing cluster by Hdfs and Mapreducers programming methods. So what is the Hadoop cluster? Hadoop cluster is a very great program which allows us to join many storages of the data node and give as single storage to the client creating an illusion that the client h...