Posts

Showing posts from December, 2020

Expert practical Demo Session on ANSIBLE and it's Industrial usecase.

Image
Before getting into industry, for sailing smoothly from academic to industry, it's very important have some knowledge about industry, how things works in industry, industrial use case. Just because of Mr. Vimal Daga sir and Mrs. Preeti Daga ma'am, I got this opportunity. On 28 Dec 2020  , they  arranged Industry Expert Practical Demo Session on Ansible. Two of the best expert Redhatters of the industry Sreejith Anujan  and Arun  Eapen CISSP, RHCA, RHCSS, RHCDS, RHCVA  they taught and showed use cases and industrial need. Lets know two of the best experts of the industry -> Mr. Sreejith Anujan & Mr. Arun Eapen .👨‍💻 ➡️ "Sreejith Anujan" ,  The Principal Instructor at Red Hat  ▪️ Primarily responsible for empowering Red Hat customers with tailor-made enablement services.  ▪️Also heading the designing and delivering high-quality content on integrated solutions and trusted partners across APAC, ANZ, and APJ. ▪️Connected with RedHat for around 12+ years.  ▪️He wa

NETWORK TOPOLOGY

Image
In this blog I'm going to create a  network Topology Setup in such a way that System A can  ping to two Systems System B and System C but both these systems should not be pinging each other without using any security rule e.g firewall etc . Every body thinks that in a network topology, if System A can ping to B and System B can ping to C, then it's obvious that system C can ping system A. But NO, Not Always... So in this blog, I'm going to show you how to create such topology. And believe me, doing this is so simple. It's just a game of netmask and routing table. Let's jump to the practical : System A : 1. Change the ip and netmask of system A to 192.168.1.20/16 2. Then add network range in the routing table .      Here I've selected the range such that it can ping to both of my other system. 3. By using route -n command, you can check the routing table  of System. 4. Using ifconfig enp0s3 command, you can check the ip of the system . System B : 1. Chane

NETWORKING : Create a setup so that you can ping GOOGLE but not able to ping FACEBOOK from same system

Image
In this blog I'm going to show you how to create a setup that can ping some specific websites. Here I'm creating a setup that can ping GOOGLE but not able to ping FACEBOOK from same system. Believe me it's so simple, it's just a game of networking and routing table. What is routing table? A table is maintained by the internal router called as  Routing table . It helps the internal router to decide on which interface the data packet should be forwarded.   Routing table consists of the following three fields - IP Address of the destination subnet Subnet mask of the subnet Interface Let's see how to create such setup: 1. Check the ip address and netmask of the system. 2. Here you can see I'm able to ping Google and Facebook . 3. Check the ip of google.     Here i've used nslookup command to check the ip. 4. Delete the Internet Gatewaty for all Ip. 5. Then add rule in routing table according to google's ip so that google's ip will come in that range

ANSIBLE : Handlers

Image
 PROBLEM :   We all know that ansible is famous for it's  idempotency .  But if we configure some service and if we change anything in it's configuration file, then we need to restart that service.  The problem is : if configuration file is unchanged, then? Then also our ansible task will run and restart service unnecessarily. In this case, ansible is not working as idempotent. Our service will restart every time we run the playbook, even if configuration file is not updated. SOLUTION : HANDLERS We can use Handlers in Ansible to tackle this problem.  Handlers are just like a normal task. Handlers will perform an action when listens for a notify event. If nothing notifies a handler, it will not run. Regardless of how many tasks notify a handler, it will run only once, after all of the tasks completed in a particular play. To know more about ansible and it's playbook, check my this blog :  ANSIBLE : How Industries are solving Challenges using Ansible ANSIBLE PLAYBOOK USING

ANSIBLE : Configuration of Haproxy

Image
  ANSIBLE Ansible  automates and simplifies repetitive, complex, and tedious operations . Everybody likes it because it brings  huge time savings  when we install packages or configure large numbers of servers. Its architecture is simple and effective. It works by connecting to your nodes and pushing small programs to them. These programs make the system comply with a desired state, and, when they have finished their tasks, they are deleted. To know more about ansible, check my this blog :    ANSIBLE : How Industries are solving Challenges using Ansible HAPROXY HAProxy is an open source, free, very fast and reliable solution offering high availability, load balancing and proxying for TCP and HTTP-based applications.  It is particularly suited for web sites crawling under very high loads while needing persistence or Layer7 processing. It distributes a workload across a set of servers to maximize performance and optimize resource usage. HAProxy can be used for Web applications (HTTP/ HTT