Packer

Packer follows a "configuration->deployment" model or "deployment->configuration"?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

A configuration->deployment which has some advantages like:

  1. Deployment Speed - you configure once prior to deployment instead of configuring every time you deploy. This allows you to start instances/services much quicker.
  2. More immutable infrastructure - with configuration->deployment it's not likely to have very different deployments since most of the configuration is done prior to the deployment. Issues like dependencies errors are handled/discovered prior to deployment in this model.