Sign in

Routing Table:

A routing table is a set of rules that is used to determine where data packets travelling over an Internet Protocol (IP) network will be directed. It consists of the network range, gateway and Netmasks.

Network Range

The Range of IPs to which a system can connect is known as network range.

Gateway

A gateway is a device that helps to connect two different networks.

Netmasks and Subnets

The process of dividing a network into smaller network sections is called subnetting. This can be useful for many different purposes and helps isolate groups of hosts together and deal with them easily. Genmask or Netmask help us…


Description:

Creating an Ansible playbook to Configure Reverse Proxy i.e. Haproxy and update it’s configuration file automatically each time a new Managed node (Configured With Apache Webserver) join the inventory.

Ansible:

Ansible is a software tool that provides simple but powerful automation for cross-platform computer support. It is primarily intended for IT professionals, who use it for application deployment, updates on workstations and servers, cloud provisioning, configuration management, intra-service orchestration, and nearly anything a systems administrator does on a weekly or daily basis.

Ansible playbooks:

While modules provide the means of accomplishing a task, the way you use them is through an Ansible playbook


Description

🔅Create an Ansible role myapache to configure Httpd WebServer.

🔅Create another ansible role myloadbalancer to configure HAProxy LB.

🔅We need to combine both of these roles controlling web server versions
and solving challenges for host ip’s addition dynamically over each Managed
Node in HAProxy.cfg file.

Ansible:

Ansible is a software tool that provides simple but powerful automation for cross-platform computer support. It is primarily intended for IT professionals, who use it for application deployment, updates on workstations and servers, cloud provisioning, configuration management, intra-service orchestration, and nearly anything a systems administrator does on a weekly or daily basis.

Ansible Role:

An Ansible role…


Artificial intelligence and machine learning are among the most significant technological developments in recent history. Artificial intelligence is moving forward, and whether we like it or not, machine learning will play an essential role in our technological future. The largest and best companies in the world already know this, and they are investing heavily in AI.

Not only is Amazon in the artificial intelligence game with its digital voice assistant, Alexa, but artificial intelligence is also part of many aspects of its business. Another innovative way Amazon uses artificial intelligence is to ship things to you before you even think…


What is ansible?

Ansible is an open-source software provisioning, configuration management, and application-deployment tool enabling infrastructure as code

Ansible is the IT automation engine that helps you end repetitive tasks, speed productivity and scale your efforts.

How Ansible works

In Ansible, there are two categories of computers: the control node and managed nodes. The control node is a computer that runs Ansible. There must be at least one control node, although a backup control node may also exist. A managed node is any device being managed by the control node.

Ansible works by connecting to nodes (clients, servers, or whatever you’re configuring) on a network, and…


Problem Statement:

Restarting httpd Service is not idempotence in nature and also consume more resources.

What is idempotent?

An operation is idempotent if the result of performing it once is exactly the same as the result of performing it repeatedly without any intervening actions.

In ansible-playbook, the operation which is idempotence run only when the result is different or there is some change in the result w.r.t to the previous one.

This saves our time and resources to configure the operating system.

To solve the problem of the non-idempotence nature of restart service, We can use handlers in ansible PlayBook.

Handlers in Ansible PlayBook

Handlers are just like normal…


In this article, I demonstrated how to create playbook to launch hadoop cluster.

I used virtual machines in local system to demonstrate this practical, you can also use cloud instances.

Steps to follow during this practical

  1. Update Inventory In Controller Node
  2. Create PlayBook
  3. Running PlayBook in Controller Node

Step 1: Update Inventory In Controller Node


Attaching Virtual hard disk on Virtual OS

1. Creating a Virtual Hard Disk On Virtual machine


This article is about Integrating LVM with Hadoop and providing Elasticity to DataNode Storage.

I am using Rhel8 on an oracle virtual machine and I have attached two secondary harddisks to it already.

Go to the section Attaching Virtual hard disk on Virtual OS to know how to create virtual hard disk


launching an Apache webserver and running Python interpreter on a docker container

In this article, we will launch a docker container on RedHat VM and run a python interpreter on it.

So we are going to follow the following steps:

  1. Installing and Setting up Docker
  2. Running a Docker Container and Exposed is with 8080 port
  3. Setting up httpd server on Docker container
  4. Setting up Python Interpreter on Docker container

Step 1: Installing and Setting up Docker

Configuring yum

Run the following command to configure yum.

echo "
[docker]
baseurl=https://download.docker.com/linux/centos/7/x86_64/stable/
gpgcheck=0
" > /etc/yum.repos.d/docker.repo

Install Docker

yum install docker-ce --nobest --skip-broken -y

you can check whether Docker is installed or not as shown.

Monil Goyal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store