HashiCorp Packer Terraform and Ansible to Set Up Jenkins

This video discusses #HashiCorp #Packer #Terraform and #Ansible to set up #Jenkins for CI/CD in Azure. This is the second video in a new video series called End-to-End Infrastructure and Application Deployment. The goal of this series is to learn best practices around the automation of infrastructure provisioning and application deployment. We cover the concepts of Infrastructure as Code, CI/CD, secrets management, dynamic secrets, the secret zero problem, service mesh, and more. Our cloud of choice is Azure for this series. Our focus for this video is on the second step and that is to set up our CI/CD pipeline with Jenkins. This is done by following the steps below: 1. Use Packer to build an Azure image that has Docker installed. 2. Create a Docker container that contains Jenkins, Vault, Terraform, and Ansible. 3. Use HashiCorp Vault to retrieve Azure credentials to use for Terraform 4. Run Terraform to build a Jenkins VM in Azure based on the Packer image. 5. Use Ansible to configure the Jenkins VM by running the Docker container. I've also written a blog post that goes with this video: Part 2: HashiCorp Packer, Terraform, and Ansible to Set Up Jenkins ► https://tekanaid.com/posts/hashicorp-... ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬ 00:00 - Introduction 01:50 - Agenda 02:44 - Overall Goal 04:17 - Topics To Learn 05:26 - Set Up Jenkins Diagram 07:38 - Folder Structure 09:08 - Packer Demo 18:44 - Terraform Demo 20:56 - Retrieve Azure Creds from Vault 24:13 - Terraform Code Walk-through 31:14 - Ansible Demo 34:23 - Ansible Code Walk-through 36:39 - Dockerfile Walk-through 42:39 - Check Jenkins Machine 43:15 - Recap ▬▬▬▬ Some tools used in this series ▬▬▬▬ HashiCorp Packer HashiCorp Terraform HashiCorp Vault HashiCorp Consul Jenkins Ansible Microsoft Azure ▬▬▬▬▬ Topics to Learn in this series ▬▬▬▬▬ 1. Vault Azure Secrets Engine 2. Packer Images in Azure 3. Terraform Building VMs in Azure based on Packer Images 4. Ansible to Configure an Azure VM 5. Vault Secure Introduction 6. Vault App Role 7. Vault Dynamic Database Secrets for MongoDB 8. Vault Transit Secrets Engine 9. Advanced CI/CD Pipeline Workflow using GitHub(VCS), Jenkins(CI/CD), Terraform(IaC), Ansible(Config Mgmt), Vault(Secrets Mgmt) 10. Consul Service Mesh ▬▬▬▬▬▬▬▬▬ Courses 🎓 ▬▬▬▬▬▬▬▬ TeKanAid Academy ► https://tekanaid.com/courses HashiCorp Vault 101 - Certified Vault Associate ► https://bit.ly/hc-vault-101 ▬▬▬▬▬▬▬▬ Useful Links 🛠 ▬▬▬▬▬▬▬ Get the code ► https://tekanaid.com/posts/hashicorp-... Blog Post Part 2: HashiCorp Packer, Terraform, and Ansible to Set Up Jenkins ► https://tekanaid.com/posts/hashicorp-... Vault Azure Secrets Engine Guide ► https://learn.hashicorp.com/tutorials... Ansible Docker Resource ► https://docs.ansible.com/ansible/2.5/... ▬▬▬▬ 🎓 FREE 7-Day Platform Engineering Crash Course ▬▬▬▬ One email a day for 7 days. Real tools, real CLI commands, hands-on labs. Day 1: What is Platform Engineering (the role, the market, why every large org is building a PE team) Day 2: Infrastructure as Code with Terraform Day 3: Containers and Kubernetes Day 4: Policy as Code (OPA + Sentinel) Day 5: CI/CD and GitOps (GitHub Actions + ArgoCD) Day 6: Observability and Security Day 7: Building Your Internal Developer Platform with Backstage + your 6-month career roadmap 👉 Sign up free: https://tekanaid.com/platform-enginee... ▬▬▬▬▬▬▬▬ 🛠️ Recommended Tools ▬▬▬▬▬▬▬▬ Cloud hosting, infra, and tooling I recommend for AI Platform Engineering. Includes affiliate links that help fund TeKanAid Academy at no cost to you. 👉 https://tekanaid.com/recommended-tools ▬▬▬▬▬▬▬▬ Connect 👋 ▬▬▬▬▬▬▬▬▬ Website ► https://tekanaid.com Facebook Page ►   / tekanaid   Don't forget to subscribe ► https://bit.ly/TeKanAid_YouTube_Subsc... MEDIUM ►   / sam-gabrail   TWITTER TeKanAid ► https://x.com/tekanaid TWITTER Sam ► https://x.com/Sam_Gabrail LINKEDIN TeKanAid ►   / tekanaid   LINKEDIN Sam ►   / samgabrail  

HashiCorp Packer VMware Windows Templates and Terraform for VMs | Infrastructure as Code
▶︎

HashiCorp Packer VMware Windows Templates and Terraform for VMs | Infrastructure as Code

Jenkins Vault Terraform Ansible and Consul End-to-End CI/CD Pipeline
▶︎

Jenkins Vault Terraform Ansible and Consul End-to-End CI/CD Pipeline

Terraform Tutorial for Beginners + Labs: Complete Step by Step Guide!
▶︎

Terraform Tutorial for Beginners + Labs: Complete Step by Step Guide!

Complete Terraform Course - From BEGINNER to PRO! (Learn Infrastructure as Code)
▶︎

Complete Terraform Course - From BEGINNER to PRO! (Learn Infrastructure as Code)

I am done with Golang
▶︎

I am done with Golang

HashiCorp Packer Tutorial: Building Custom Images for AWS, Azure, and Docker
▶︎

HashiCorp Packer Tutorial: Building Custom Images for AWS, Azure, and Docker

Terraform + Ansible on the Azure Terraform Community Call for 11/2023
▶︎

Terraform + Ansible on the Azure Terraform Community Call for 11/2023

Secret Zero Problem Solved for HashiCorp Vault
▶︎

Secret Zero Problem Solved for HashiCorp Vault

Terraform explained in 15 mins | Terraform Tutorial for Beginners
▶︎

Terraform explained in 15 mins | Terraform Tutorial for Beginners

Backstage Crash Course for Platform Teams | Full Course and Tutorial
▶︎

Backstage Crash Course for Platform Teams | Full Course and Tutorial

Using Terraform, Packer, and Ansible Together - Aaron Krauss: DevOps OKC
▶︎

Using Terraform, Packer, and Ansible Together - Aaron Krauss: DevOps OKC

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan
▶︎

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan

Automating Immutable Infrastructure With Packer & Terraform
▶︎

Automating Immutable Infrastructure With Packer & Terraform

8 Terraform Best Practices that will improve your TF workflow immediately
▶︎

8 Terraform Best Practices that will improve your TF workflow immediately

Modern Infrastructure Automation with Packer, Terraform, and Consul
▶︎

Modern Infrastructure Automation with Packer, Terraform, and Consul

HashiCorp Packer for VMware Ubuntu Templates and Terraform for building VMs | Infrastructure as Code
▶︎

HashiCorp Packer for VMware Ubuntu Templates and Terraform for building VMs | Infrastructure as Code

How to Build Reusable, Composable, Battle tested Terraform Modules
▶︎

How to Build Reusable, Composable, Battle tested Terraform Modules

Ansible and HashiCorp: Better Together
▶︎

Ansible and HashiCorp: Better Together

Introduction to Jenkins, CI/CD, and DevOps for Beginners
▶︎

Introduction to Jenkins, CI/CD, and DevOps for Beginners

Automation with Hashicorp Packer #1: Intro mutable vs Immutable infrastructure
▶︎

Automation with Hashicorp Packer #1: Intro mutable vs Immutable infrastructure