From the course: Learning HashiCorp Packer
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create a manifest profile - Packer Tutorial
From the course: Learning HashiCorp Packer
Create a manifest profile
- [Instructor] We're going to add a post processor step to our Jenkins Packer template. This post processor will create a manifest file. The manifest file contains details about the image Packer has built, including the AMI ID. So let's start this in here. It's a top level element, just like the provisioners and the builder. And there can be multiple post processors, so they are also in an array. So that's post processors, a new array. And this is an object. Now, this is gonna be of the type manifest. We'll give it a name, and the name will be in an output property. We'll keep it simple and call it manifest.json, as the json files. And we're gonna add this extra property in here called strip_path, because all we care about is the filename itself. We don't need it to put the whole path in there. So that's true. Now let's run this. And we'll see our manifest being built. Okay, so the build has finished and we now have a manifest.json, here. And as you can see, it includes a lot of…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.