4 Baking machine images with Packer

This chapter covers

  • Overview of immutable infrastructure
  • Baking Jenkins machine images with Packer
  • Discovering Jenkins essentials plugins
  • Executing Jenkins Groovy scripts
  • Using Packer provisioners to automate Jenkins settings

In the previous chapter, you learned how Jenkins distributed mode architecture works. In this one, we will get our hands dirty and deploy a Jenkins cluster on AWS. As a quick reminder, you learned that the Jenkins cluster is divided into two main components: master and worker. Before diving into the implementation of the distributed builds architecture, we will deploy the standalone mode, shown in figure 4.1, to cover some basics.

To deploy this architecture, we need to provision a ...

Get Pipeline as Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.