Python 2

In this blog, we are going to create a chat server based on UDP protocol in Python.

Here’s the problem statement:

🔅 Create your own Chat Servers, and establish a network to transfer data using Socket Programing by creating both Server and Client machines as Sender and Receiver both. Do this program using UDP data transfer protocol.

🔅 Use multi-threading concept to get and receive data parallelly from both the Server Sides. Observe the challenges that you face to achieve this using UDP.

Before jump into code, let’s understand

What is UDP?

In computer networking, the User Datagram Protocol is one of the…


Ansible 10

Problem Statement:

Create an Ansible Playbook which will dynamically load the variable file named the same as OS_name and just by using the variable names we can Configure our target node.
(Note: No need to use when keyword here.)

Let’s understand the use case of this problem. There will be many cases when some of the package names are different Linux OS distributions. Also, there will be cases that they are different file formats only such as deb or rpm.

To solve this problem, Ansible offers us one module named “include_vars” which loads variables from files dynamically within the task. …


ANSIBLE-9

Launch and Deploy python flask app on docker container using ansible

Even this is a very rare use case where we need to configure the container using ansible. Enabling ssh inside the container is not a good practice, but in some cases, we might need to do this.

  • My use case was to set up an ansible practical lab where I can use multiple hosts of different Linux instantly without wasting more resources. This gives me the power to launch each time fresh container and test my playbooks on multiple os distributions with diff versions.
  • One more use case will be, you have one server in development and you are deploying…


ANSIBLE-8

Ansible role for setting up load balancer using HAProxy and webserver using Apache software.

Introduction 🤓

In this article, we will write a simple role for configuring HAPorxy software for load balancing which will dynamically add backend servers.

I have also covered what is a load balancer and how to write the playbook for configuring a load balancer on AWS using a playbook.
You can refer to the blog to know more about load balancer and configuration.

In this blog, we will focus more on writing and using the ansible role. This is the continuation of the below blog which configures web servers. …


ANSIBLE-7

Write Ansible role to configure apache webserver on Redhat and Ubuntu.

What is ansible?

Ansible is an open-source IT Configuration Management, Deployment, and Orchestration tool. Ansible helps us to gain large productivity in a variety of automation challenges. This tool is very simple to use and also powerful enough to automate complex multi-tier IT application environments.

Ansible offers a simple architecture that doesn’t require special software to be installed on nodes. It also provides a robust set of features and built-in modules which facilitate writing automation scripts.

In this article, we are going to write an Ansible role to configure the Apache webserver. The Apache HTTP server is the most widely-used web server in…


Kubernetes-1

Introduction to Kubernetes. Why we need Kubernetes? Use cases of Kubernetes.

Introduction 🤓

When you talk to IT guys about containers, I am sure the next topic of conversion will be on container management and orchestration.

Hey, but what is a container?


ANSIBLE-6

let’s discover the automation with ansible tower use cases

Before understanding what is ansible tower, let's understand what is automation and how an ansible and ansible tower helps us to achieve that.

What is automation?

Automation happens when one person meets a problem they never want to solve again.

I would like to define it in simpler words…
when someone doesn't want to repeat the same task again and again then That's where automation happens.


ANSIBLE-5

Configure Haproxy dynamically when a new webserver gets added using ansible.

Before starting how to configure the load balancer and web server let’s understand what is load balancer and webservers.

Load Balancer

The load balancer is software by which we can distribute some tasks to a set of resources to achieve more efficiency in the overall processing.

Why we need a load balancer?

Suppose you have a single server and it has standard hardware and software... and as you grow or suddenly traffic for your app increases. Now each server has some limitations for serving requests at a time, it can be hardware as well as software. Now you decided to add one more server and it comes with…


ANSIBLE-4

Configure Apache server using ansible-playbook

Introduction

Redhat Ansible

Ansible is an open-source automation tool by which we can automate all cloud provisioning, configuration management, application deployment,intra-service orchestration, and many more IT needs.

Ansible is an open-source community project sponsored by Red Hat, it’s the simplest way to automate IT. Ansible is the only automation language that can be used across entire IT teams from systems and network administrators to developers and managers.
You can read more about ansible in the below article and how it helps in DevOps.

Apache Webserver

Apache is an open-source and free web server software that powers around 40% of websites around the world. The official…


How to configure Hadoop Cluster using Ansible?

Ansible -3

In this article, we will configure the Hadoop name node and data node using ansible. — Shubham Rasal

Introduction

We are going to write playbooks for installing Hadoop and configuring both the name node and data nodes.

I am assuming you have installed ansible and set the inventory file path.

In this article, I have given high-level details about what is Hadoop and why it is used? Check it if you want to know more about Hadoop.

so without delay start writing our playbooks.

Action

Action mode 🔥

We will use ssh public key authentication to configure managed/target nodes. The motivation to use public-key authentication…

Shubham Rasal

DevOps Engineer at Mindbowser Inc| www.shubhamrasal.me

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