Getting Started with Puppet Automation - A Comprehensive Guide

The art of automating infrastructure configuration through puppet

Introduction

Puppet is a powerful configuration management tool that helps system administrators automate the provisioning and management of servers. This guide will walk you through setting up Puppet on Debian Bookworm (Debian 12) and explain how to use it effectively for infrastructure automation.

Prerequisites

  • Debian 12 (Bookworm) servers
  • Root or sudo access
  • Static IP addresses for all servers
  • Properly configured hostname and DNS settings
  • Minimum system requirements:
    • 2GB RAM
    • 2 CPU cores
    • 20GB disk space

Architecture Overview

Puppet follows a client-server architecture:

[Read More]

Kubernetes Setup

Learning about Kubernetes basics

Kubernetes is orchestraton layer of various Docker and/or containerization manager. Let see in this artcile how to setup a Kubernetes cluster or in short K8s cluster.

Steps involed in setting up Kubernetes Cluster

  1. Create VMs which are part of K8s cluster (master and worker nodes).
  2. Disable SELinux and SWAP on all nodes.
  3. Install kubeadm, kubelet, kubectl and docker in all nodes.
    • start and enable docker and kubelet in all nodes.
  4. Initialize the master node.
  5. Configure Pod network in master node.
  6. Join all worker nodes in cluster.
  7. Verify the congigurations

Create VMs

In this example I show four VMs (1 Master and 3 Worker nodes) created in Google Cloud Platform.

[Read More]

Learn git and Git commands

Learning about Git basics

Introduction of git

Git is version control system for tracking changes in computer files and coordinating work on those files among multiple people.

Git is free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Git is easy to learn and has a tiny footprint with lightning fast performance. It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows.

[Read More]