Every project has a story, and in the world of software development, that story is often told through commit logs.
IaC stands for Infrastructure as Code.
How ansible.cfg, inventory settings, and environment variables fit together in a manageable project.
In today’s data-driven world, the ability to process information in real-time is crucial.
The /etc/profile.d directory, though seemingly simple, plays a vital role in the smooth operation of your Linux system.
Previously I gave a high level flow for how a process of simple file write looks like in a Linux environment here. In this blog, I will add more tech-details.
Writing to a file on a device in Linux involves a fascinating journey through different layers of the system.
On my Centos8 I was facing issue when I was trying to run Molecule on a centos machine which is running podman as a non root user.
A gentle introduction to Ansible inventory, ad-hoc commands, and the first repeatable playbook.
Here’s a comprehensive guide on using Python 3 with SQLite3.
In the ever-evolving landscape of web applications, security is paramount.
At a raw level Keystore and truststore are both used for managing digital certificates and keys in the context of SSL/TLS (Secure Sockets Layer/Transport Layer Security) and other security protocols.
Consul is an open-source software tool developed by HashiCorp, designed to provide a distributed system for configuration management, service discovery, and health checking of services in a modern…
Artificial Intelligence (AI) has revolutionized many aspects of our lives, from virtual assistants like Siri and Alexa to self-driving cars and personalized content recommendations.
SNMP (Simple Network Management Protocol) is a widely used protocol for managing and monitoring network devices, such as routers, switches, servers, and printers.
The Linux Kernel stands as the backbone of the Linux operating system, serving as a critical component that enables the system to interact with hardware and manage system resources efficiently.
Photos from a whale-watching trip: whales surfacing and blowing spouts in the open sea.
In the world of computer networks, communication between devices is crucial. To facilitate this communication, various protocols are used at different layers of the networking stack.
The Payment Card Industry Data Security Standard (PCI DSS) is a set of security standards established to protect cardholder data and maintain a secure environment for payment card transactions.
DAST stands for Dynamic Application Security Testing. It is a type of security testing that assesses the security of an application while it is running.
XML entity attack, also known as Billion Laughs Attack, is a type of security vulnerability that exploits the way XML parsers handle entity expansion.
X.509 certificates have become a fundamental component of secure communication on the internet. They provide authentication, encryption, and integrity for various applications and protocols.
Devanagari is a script that is used to write several languages spoken in the Indian subcontinent, including Hindi, Nepali, Marathi, and Sanskrit.
SSH tunneling is a powerful technique that allows you to securely tunnel network traffic between two endpoints.
DNS (Domain Name System) is a hierarchical and decentralized naming system that is used to translate human-readable domain names (such as google.com) into IP addresses that can be understood by…
CURL is a command-line tool that allows developers to transfer data between servers and clients using various protocols, including HTTP and HTTPS.
Ansible is a powerful automation tool that can be used to manage the configuration and deployment of a large number of systems. It has a rich library of modules that can be used to perform a variety of tasks, from managing files and packages to deploying applications and configuring network devices.
Recently during our discussion with a client a problem was raised how to show progress for a long running Ansible playbook task & this blog is just an outcome of the things I tried and delivered.
A scenario in Molecule is a configuration that defines how a role should be tested. It consists of a set of instructions and parameters that determine how a role is provisioned, converged, and verified. The purpose of scenarios is to allow for flexibility in testing a role by allowing multiple testing configurations to be defined and executed. You can have as many scenarios as you like and Molecule will run one after the other.
Variables are a crucial part of Ansible and are used to store values that can be used across playbooks, roles, and tasks.
Podman Machine is a tool that allows you to manage multiple Linux containers on your local system or on remote servers.
Buildah is a command-line tool used for building and managing OCI-compliant images. It is an alternative to Docker Build that provides greater flexibility and control over the image building process.
Continuing from the blog, Virtual environments are isolated Python environments that allow you to manage dependencies separately for each project, providing a controlled and reproducible environment…
Ansible’s lookup plugin allows you to access data from a variety of sources, including files, templates, and external programs.
Ansible and Molecule are popular tools for configuration management and testing in the world of DevOps.
Using Git Personal Access Tokens (PATs) is a secure and convenient way to authenticate with Git service providers.
The file can be placed in various locations, such as the current directory, user’s home directory, /etc/ansible/, and /etc/ansible/conf.d/.
In Apache Kafka, trust store and keystore are essential components for ensuring secure communication between brokers, clients, and other services.
Secure Socket Layer and its successor TLS (Transport Layer Security) are cryptographic protocols that provide encryption, integrity, and authentication for network communication.
The SSL/TLS handshake is the initial communication between the client and server in a SSL/TLS connection.
Testinfra is a Python-based framework for infrastructure testing. It allows you to write tests for your infrastructure and verify that everything is working as expected.
Ansible Variables are used to store values that can be reused throughout an Ansible playbook.
Templates in Ansible are a type of file that contain configuration information or scripts written in a Jinja2 templating language.
To set up SSH access for inventory hosts in Ansible, follow these steps:
An Ansible inventory is a file that defines the hosts and groups of hosts that Ansible will manage. Inventory files are used to define the nodes (hosts) that will be managed by Ansible.
Ansible is an open-source software platform for automating and managing IT infrastructure.
Building a simple hello world using Flask. (The code is available here)
The structure of an Ansible playbook includes the following elements:
Python is a versatile and widely-used programming language, but there are certain scenarios when it may not be the best choice. Here are some examples of when not to use Python:
Polymorphism is a key feature of Object Oriented Programming that allows objects of different classes to be treated as objects of a common class.
The argparse module is a powerful tool for parsing command line arguments in Python.
Python and bash are both programming languages, but they have different purposes and use cases.
Ansible is an open-source software platform for automating and configuring computer systems.
Python is a high-level programming language that is widely used for web development, machine learning, scientific computing and more.
In Python, there are no explicit pointers like in some other programming languages. In python everything is an object and references to objects are stored in variables.
In Python, you can define a function with a variable number of arguments using the and syntax in the function definition.
n Python, unlike some other programming languages, there is no explicit syntax for defining interfaces.
Inheritance is a mechanism in object-oriented programming (OOP) that allows you to create new classes that are derived from existing classes.
Let’s learn about decorators @iamdecorator
Learning to write Python code? A Python class is a blueprint for creating objects.
Apache Karaf - I had only heard of it and never had practical exposure to this technology. Main questions in my mind were - What purpose does it serves? and Who uses it?
awk is an interpreted language.
The basic function of awk is to search files for lines that contains certain patterns. When the input line matches the pattern(s), awk performs specified actions on that line.
PKI is the core of security for most organizations, and at its heart is a couple of keys that together allows the encryption/decryption of the traffic exchanged.
A decent developer trick is to ensure your maven points to the right JAVA version, and if you have freshly installed maven it will be pointing to the default available.
I was struggling with the mTLS configuration for zookeeper configuration and somehow no matter what I do I kept getting an error as below
“HashiCorp Vault is an identity-based secrets and encryption management system.”
Continuing from where I left in the blog before. If you are using looking to configure a static IP for your machines (may be your use case is similar to mine) this blog might be useful for you.
In this blog let’s try and look at some of the commands I used to build an RockyLinux machine on a MacPro M1.
In the previous blog, I was left with the error that had little information for me to debug. I realized since I migrated most of the files from my previous laptop it might be causing an issue.
Having just bought an M1 – MacBook Pro the issue are mounting. The premier challenge was to get my Vagrant boxes configured with provider virtualbox to run.
Open source build automation tool FLEXIBLE and builds any type of software Run on JVM and must have a JDK installed to use it. Gradle models its buils as DAGs pf tasks. Build is graph of tasks Tasks consists of Actions Inputs Outputs Lifecycle Tasks Clean Check Assemble Build Build Configuration Clean Task Gradle evaluates and executes build scripts in three phases Initialization Configuration Execution
Creating a Topic in a kafka-cluster is easy and well documented for the kafka-topics.sh or even the official API documentation.
If you are like me and getting errors while trying to compile your go lang code without having a go.mod in v1.18
Life is bringing it own challenges as I have moved to the United States of America. One of the immediate tech challenge has been using the loaner windows box and still be productive.
To enable and configure monitoring of Java VM for any java-application using the ready-to-use JMX agent, you must set certain system properties when you start the Java VM.
I never thought the process could be this simple in the year 2022. Thanks to Mr. Gadkari for taking the initiative that the states (some) have already implemented.
Control node Managed nodes Inventory Modules Tasks Playbooks
Bash is different world. Powerful, simple, elegant and complex all at the same time.
– The SSH protocol uses public key cryptography for authenticating hosts and users.
💬 What is SSH protocol?
💬 It is also referred to as Secure Shell, is a method for secure remote login from one computer to another. It is an alternative to telnet and rlogin
Personal notes on Bash: arithmetic, = versus ==, single versus double brackets, and the bc calculator.
If you have seen errors like these when deploying using a serviceAccount
Looking the official diagram from devspace which shows the benefits in detail
So there are many things I have been simultaneously trying to learn & one of those is to learn how you can configure a pipeline
While I continue to learn more about architecture and design of kafka, a quickstart to deploy & test kafka is a must.
Step 1: Add Chart Repo # In my local system it is already present which was confirmed by the listing
A common use-case for cert-manager is requesting TLS signed certificates to secure your ingress resources.
IaC tools like Terraform allows one to manage infrastructure with configuration files rather than through a graphical user interface.
I have written a series of blogs to capture how you can deploy spinnaker on a Kubernetes cluster & manage a helm chart deployment via pipeline.
In this blog let’s try add a helm account and enable for use in the pipelines
You will need a valid docker registry before you add any trigger in the pipeline in Spinnaker
Deploying Jenkins on K8S cluster is as simple as
Spinnaker is an open-source continuous delivery platform which provides two core set of features
Application Management Application deployment Applications , clusters , and server groups are the key concepts Spinnaker uses to describe your services. Key Concepts # Some of the key concepts in the spinnaker universe are covered as under
While reading Apache Kafka it was interesting analogy that they described
Event streaming is the digital equivalent of the human body’s central nervous system. — Apache Kafka It draws a great parallel between how the central nervous system allows for real time event generations and consumption in terms of reflex actions. The examples are well explained and captured here.

In this blog, I will try add a new node to the already running cluster.
My Cluster # root@master>k get nodes NAME STATUS ROLES AGE VERSION mydevmachine001830.samarthya.me Ready <none> 22h v1.23.1 mydevmachine002687.samarthya.me Ready <none> 41d v1.23.1 mydevmachine003277.samarthya.me Ready <none> 131d v1.23.1 mydevmachine003278.samarthya.me Ready <none> 131d v1.23.1 mydevmachine003417.samarthya.me Ready <none> 4m55s v1.23.1 mydevmachine003968.samarthya.me Ready <none> 131d v1.23.1 mydevmachine003969.samarthya.me Ready control-plane,master 131d v1.23.1 mydevmachine003970.samarthya.me Ready <none> 131d v1.23.1 mydevmachine003979.samarthya.me Ready <none> 29m v1.23.1 Steps to follow # Install docker Install kubeadm, kubectl & kubelet Join the cluster using the token Check the node has joined the cluster Step 1: Install docker # sudo yum install -y yum-utils sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo When adding repo make sure the repo has been added successfully to the machine
India is a complex country, the diversity is ever present and ever growing. What got me going in my deep meditative thinking is having a discussion with my Dad. We have evolved from the just enough generation to over the edge generation. Things that were uncommon during my growing up years and now the basic necessity of this generation.
In this blog I will talk about how you can upgrade a node and the kubernetes cluster version to a specific version.
I have a 6 node local Kubernetes cluster like below
Documentation is a huge part of writing any software. In java you have JavaDoc, which most of the developers adhere to. It is healthy and rich way of exposing the source documentation.
So to delete there was one hard hack way of cleaning it all
What? # Role Based Access Control(s) is a way of regulating access to entities like storage, network etc. RBAC authorization uses rbac.authorization.k8s.io API group. API Objects # There are 4 kind of kubernetes object
Having used SCM plugins for quite sometime, I thought - WHY I have never used them to clone a repository and while I employ the personal access token (NOW)- The weapon of choice, I have never tried it myself.