Working with Builders
In previous chapters, we showed you the basics of troubleshooting logs and output from our simple base template. Here, we will explore adding more builders to our options and also explore a feature Packer adopted from Terraform to help you look up complex attributes you might need for your build. Data sources help you look up dynamic attributes such as base image IDs or other things that may change in your builder. Rather than manually look up the AMI ID for the RHEL base, wouldn’t it be much easier to search for it by name during the build? Here, we’ll add builders for the major cloud service providers while focusing on some tips and tricks for each one along the way. The goal here is to prepare your image as much as possible for rapid deployment with Terraform using minimal runtime provisioners.
In this chapter, we’ll cover the following topics to build on our sample template:
- Adding applications deployable from vSphere
- Adding...