Posts

Showing posts with the label Apache

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...

Automating Apache webserver Configuration on Docker Container using Ansible

Image
  Ansible is an open-source software used for configuration management, provisioning, of any OS. We can use YAML as a language to write the code for ansible, main thing about the ansible is that it is agentless which means it doesn't need any software installed in the target system to run the ansible commands. Controller node:  The node on which ansible is installed and the from where we run the playbook to manage the target node are known as a controller node Managed node:  The node on which the playbook implements or which is going to be configured is known as managed or target node. Playbook:  Playbook is a file that contains all the list of instructions or commands which we want to perform in the managed node, the playbook is written in the YAML language. Inventory:  This file contains the list of all managed node, it contains the detail like pass, username and IP address of the target node. In this article we will automate launch of a docker container using...

Configuring ApacheWebserver and Setting up Python Interpreter on Docker Container

Image
  So what is Docker? Docker is an open platform program that works as a container management tool for developing, shipping, and running applications in an isolated environment. Docker also helps to isolate our applications from infrastructure so that they can deliver quickly. So what challenges faced by the industry before docker? Using different Operating system for performing task increases   the security but everything comes with a cost let say if in a company they want to launch a new OS it requires at least 20–30 min and not the only time it also requires at least of 1 Gb RAM, so this a waste of time and resources which is very difficult for any company to bear this cost so here docker come in the play. So how docker become the saviour? Docker is a great tool that uses Containerization Technology, Docker can install our operating system in just 1 second that requires only 20–30 Mb of RAM space which helps the industry as their resources and time won’t get wasted. So In th...