Y

YouLibs

Remove Touch Overlay

Terraform Hack: Shared Config Snippets with Sub-Templates

Duration: 10:32Views: 3.3KLikes: 81Date Created: Feb, 2021

Channel: tutoriaLinux

Category: Science & Technology

Tags: system administrationclicomputerhow-tocommand-linelinuxtutorialsysadmin

Description: I was doing a Terraform setup for infrastructure that includes consul, nomad, and a few other types of nodes in AWS. Because I'm passing the instance-configuration code (setup scripts) in as cloud-init scripts, there is a TON of duplication across nodes. I did NOT want a more heavyweight/opinionated devops pipeline, so I'm leaving the node config code as bash scripts instead of baking images with Packer (as you would do in your production infrastructure). The solution I came with was a multi-tiered templating thing, where a series of templates using/interpolating shared code snippets is built up into a master template that is then actually executed on instances via cloud-init. 0:00 Introduction 0:22 Problem Statement 1:28 Ideas for Solutions 2:27 Approach vs Terraform Philosophy 2:45 High-Level solution plan 3:18 Snippet overview 4:50 Implementation with Explanation 6:52 "This feels right." 7:08 Demonstration and Explanation Code for this video: github.com/groovemonkey/tutorialinux-hashistack Step-by-step project-based Linux course for beginners: udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D Free Linux Sysadmin Course Playlist: youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK DigitalOcean referral link: m.do.co/c/0380a1db56a6 Patreon: patreon.com/tutorialinux Official Site & e-mail list: tutorialinux.com Twitter: twitter.com/tutorialinux Facebook: facebook.com/tutorialinux Podcast: kernelpanicpodcast.com

Swipe Gestures On Overlay