Building with Infrastructure as Code | Terraform, Ansible, and Jenkins Hands-On Guide
In this video, @LearnLinuxTV talks through the process of using some of the most used infrastructure as code tools. For this demo, we’ll be using Jenkins, Terraform, and Ansible to build and configure a Linode instance.
Chapters:
0:00 Introduction
1:05 Deploy Jenkins via Linode Marketplace
3:35 SSH into Linode
3:55 Check Jenkins Availability
5:00 Access Jenkins via the Web
6:05 Create Admin User
7:30 Prep to Install Terraform
7:50 Add GPG Key to Stores
8:00 Add Repo to List
8:35 Grab Updates
8:50 Install Terraform Packages
9:05 Install Ansible
9:35 Create SSH Key for Jenkins User
11:50 Use Terraform to Build Instance
12:25 Create Linode API Token
15:30 Create Directory for Terraform Files
15:57 Grant jenkins User Access to Directory
16:30 Create Linode_Build Directory
17:05 Create Terraform File
24:53 Create Variables File
29:00 Create Apache.yml
31:20 Create Ansible.cfg
32:30 Run Terraform Init
33:20 Run Terraform Plan
34:20 Run Terraform Apply
35:00 Test Apache on the New Instance
35:50 Add Build to Jenkins
39:00 Run the Job
39:25 Resolve Build Error
40:05 Run the Job Again
41:00 Test Apache on the New Instance
41:22 Conclusion
New to Linode? Get started here with a $100 credit!
Read the doc for a written introduction to IaC.
Watch this video on IaC.
Subscribe to get notified of new episodes as they come out.
#IaC #Terraform #Ansible #Jenkins
Product: Infrastructure as Code, Terraform, Ansible; @LearnLinuxTV