DEV Community

Rishabh Lakhanpal
Rishabh Lakhanpal

Posted on

πŸš€ Week 2 Recap: DevOps + Python Automation Progress | Multi-VM Lab, Scripting, Log Analysis

This week was all about building real-world DevOps setups from scratch, writing clean automation scripts, and preparing for bigger automation + QA challenges ahead.


πŸ”§ 1. Rebuilding the DevOps Multi-VM Lab from Scratch

  • Cleaned up and restructured my Vagrant-based multi-VM setup
  • Provisioned 2–3 Ubuntu machines using a single Vagrantfile
  • Installed and configured Apache, static site hosting, and SSH access
  • Started adding Bash provisioning scripts for reproducibility
  • Preparing this for full GitHub upload with README and instructions

πŸ–₯️ Stack Used:

Vagrant | VirtualBox | Ubuntu | Bash | SSH | Apache


🐍 2. Python Scripting Practice (Real World)

  • Practiced os, sys, argparse, subprocess, and logging modules
  • Wrote and patched scripts using diff, patch, and chmod +x
  • Used sys.argv and exception handling for CLI tools
  • Learned to automate tasks like file renaming, CPU checks, and more

πŸ”§ Tools Practiced:

chmod | wc | sys.argv | try/except | os.listdir() | Git patches


πŸ“ˆ 3. Python Log Analyzer Project (In Progress)

  • Started building a script to analyze /var/log/httpd/access_log
  • Extracts top IPs, most requested endpoints, status codes
  • Will output a clean report or CSV
  • Prepping this as a full GitHub project with CLI options

πŸ‘¨β€πŸ’» Technologies:

Python | Regex | argparse | collections.Counter | CSV writing

πŸ› οΈ 4. Git + GitHub Mastery

  • Daily commits to GitHub with clean folder structures
  • Worked with:
    • .gitignore
    • git diff -u, patch, revert, reset
    • git log, amend, and rebase basics

🧠 Key Concepts Practiced This Week

  • shebangs (#!/usr/bin/env python3)
  • File permissions (chmod +x, 755)
  • Linux utilities (wc, cat, ps, etc.)
  • Debugging via try/except, bash -x, set -e

If you're on a DevOps or QA automation journey, follow along!

Let’s keep building, learning, and sharing. πŸš€

πŸ“Œ Follow me on GitHub: github.com/Rishabh-lakhanpal

Top comments (0)