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.
The Packer workflow and components - Packer Tutorial
From the course: Learning HashiCorp Packer
The Packer workflow and components
- [Instructor] One of Packer's main use cases is to create images for Cloud based services. As such, Packer doesn't start from installing an operating system. It starts from an existing image. One which is, as though, the operating system has just been freshly installed. If using AWS, this could be an image supplied by Amazon, themselves, via the marketplace, or by, say for example, Canonical. Packer will take that base image you specified, launch it on to an instant, and that will be our blank slate ready for customization. Packer will then customize this image with your scripts. This can be command linked tasks, or Packer can call in other tools, such as Ansible or Chef. Once the instance has finished being customized, Packer will shut it down and take an image of it. Returning the idea of this for you to use. And, this will be our custom image that we've built, using Packer. Packers templates consist of three main components, Builders, Provisioners, and optional Post-processors…
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.