Docker Inspect

Docker inspect command is very useful to provide detailed information about any container. It provides all information related to image, volume etc. without login into container.You can find out each details you needed. # docker inspect container (Put container’s actual name or ID of the container you want to inspect) # docker inspect ubuntu:latest (To […]

Python Script to install multiple rpm packages

To install packages in Linux using python, you need to use “subprocess” module. Below is a script to install multiple packages. import subprocess def rpm_install(package_list): for package in package_list: try: subprocess.run([‘sudo’, ‘yum’, ‘install’, ‘-y’, package], check=True) # For DNF, use the following line instead: # subprocess.run([‘sudo’, ‘dnf’, ‘install’, ‘-y’, package], check=True) print(f"Package {package} installed successfully.") […]

Introduction to YAML

YAML stands for “YAML Ain’t Markup Language” or sometimes “YAML Ain’t a Markup Language”. It is simple, text-based and human readable format. It is very easy to understand.It is a data serialization language. It is vastly used in DevOps. It also works in promgramming language like python, Go, etc. If you see DevOps tools, it […]

Docker Images

Docker is a platform for developing, shipping and running applications inside a containers. Docker images are those templates which can be used by you to run applications.You can use below link for installing docker on ubuntu system. Install Docker on Ubuntu OS Now we will go through docker commands. This page will show you about […]

How to update puppet certificate on puppet client?

You can use below command to update puppet client certificate using below commands. Go to your puppet master and clean client certificate: # puppetserver ca clean <hostname> Now login to client and run below commands: # systemctl stop puppet # rm -r /var/lib/puppet/ssl # systemctl start puppet On Server go and register if needed: # […]

Git

Git is a distributed version control system (DVCS) that is widely used for tracking changes in source code during software development. Git was initially designed and developed by Linus Torvalds for Linux kernel development. It is a free software distributed under the terms of the GNU General Public License version 2. Git is distributed version-control […]

Install Docker on Ubuntu OS

Docker is a community and open source container technology. Docker is platform for developing, running and shipping applications in containers. Containers are very light weight, isolated operating system or environment. It runs for development as well as production. It is widely used due to its portability and scalability character. If you talk about docker architecture, […]

Create a partition using Ansible playbook and extend the same

Below is the playbook which will create a LVM partition. Here, It will create PV, VG and then LVM which will be mounted on /dir. ## To create pv, vg:vg_test, lv:lv_test, filesystem, and mount it on /dir – hosts: server remote_user: ansible become: yes become_method: sudo connection: ssh gather_facts: yes tasks: – name: To create […]

Ansible Tower Installation on CentOS

Ansible tower is web based automation tool which is used to manage your infrastructure. It is based on Ansible’s capabilities and provide some more enhanced features for managing the tasks. You can do whatever can be done by Ansible. Below are the steps to install Ansible Tower on CentOS.Let’s update the OS first and then […]

Puppet Installation and Configure its Agent

Puppet is a powerful tool for automating and managing the configuration of infrastructure and applications. It helps in consistency, reliability, and scalability in their IT environments.For installation of puppetserver and agent. We need to follow below steps. Puppet tool uses a agent to work which will be installed on all clients you want to register. […]