O'Reilly logo

The Packer Book by James Turnbull

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4 Provisioning with Packer

In the last chapter, we created an Amazon AMI from a stock Ubuntu 17.04 base image. It was a pretty boring image though—essentially a clone of that stock image, renamed. To customize our image a bit we’re going to take advantage of a Packer component called a provisioner.

Provisioners execute actions on the image being built. These actions, depending on the provisioner, can run scripts or system commands, and execute third-party tools like configuration management. Provisioners come in a variety of types. You can use one or more types of provisioners during a build—for example, you could use one provisioner to configure and install the requirements for another provisioner.

In this chapter we’ll explore several provisioners, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required