2013-06-21 14:46:38 -04:00
|
|
|
---
|
2015-07-22 22:31:00 -04:00
|
|
|
layout: intro
|
2017-03-25 18:13:52 -04:00
|
|
|
page_title: Why Packer - Introduction
|
2020-04-02 19:39:47 -04:00
|
|
|
sidebar_title: Why Use Packer?
|
2017-03-25 18:13:52 -04:00
|
|
|
description: |-
|
|
|
|
Pre-baked machine images have a lot of advantages, but most have been unable
|
|
|
|
to benefit from them because images have been too tedious to create and
|
|
|
|
manage. There were either no existing tools to automate the creation of
|
|
|
|
machine images or they had too high of a learning curve. The result is that,
|
|
|
|
prior to Packer, creating machine images threatened the agility of operations
|
|
|
|
teams, and therefore aren't used, despite the massive benefits.
|
|
|
|
---
|
2013-06-21 14:46:38 -04:00
|
|
|
|
|
|
|
# Why Use Packer?
|
|
|
|
|
2015-07-22 22:31:00 -04:00
|
|
|
Pre-baked machine images have a lot of advantages, but most have been unable to
|
|
|
|
benefit from them because images have been too tedious to create and manage.
|
|
|
|
There were either no existing tools to automate the creation of machine images
|
|
|
|
or they had too high of a learning curve. The result is that, prior to Packer,
|
|
|
|
creating machine images threatened the agility of operations teams, and
|
|
|
|
therefore aren't used, despite the massive benefits.
|
2013-06-21 14:46:38 -04:00
|
|
|
|
2020-06-09 12:47:53 -04:00
|
|
|
Packer changes all of this. Packer automates the creation of
|
2015-07-22 22:31:00 -04:00
|
|
|
any type of machine image. It embraces modern configuration management by
|
2013-06-21 14:46:38 -04:00
|
|
|
encouraging you to use a framework such as Chef or Puppet to install and
|
|
|
|
configure the software within your Packer-made images.
|
|
|
|
|
|
|
|
In other words: Packer brings pre-baked images into the modern age, unlocking
|
|
|
|
untapped potential and opening new opportunities.
|
|
|
|
|
|
|
|
## Advantages of Using Packer
|
|
|
|
|
2020-03-18 18:46:47 -04:00
|
|
|
**_Super fast infrastructure deployment_**. Packer images allow you to launch
|
2015-07-22 22:31:00 -04:00
|
|
|
completely provisioned and configured machines in seconds, rather than several
|
|
|
|
minutes or hours. This benefits not only production, but development as well,
|
|
|
|
since development virtual machines can also be launched in seconds, without
|
|
|
|
waiting for a typically much longer provisioning time.
|
2013-06-21 14:46:38 -04:00
|
|
|
|
2020-03-18 18:46:47 -04:00
|
|
|
**_Multi-provider portability_**. Because Packer creates identical images for
|
2015-07-22 22:31:00 -04:00
|
|
|
multiple platforms, you can run production in AWS, staging/QA in a private cloud
|
|
|
|
like OpenStack, and development in desktop virtualization solutions such as
|
|
|
|
VMware or VirtualBox. Each environment is running an identical machine image,
|
|
|
|
giving ultimate portability.
|
2013-06-21 14:46:38 -04:00
|
|
|
|
2020-03-18 18:46:47 -04:00
|
|
|
**_Improved stability_**. Packer installs and configures all the software for a
|
2015-07-22 22:31:00 -04:00
|
|
|
machine at the time the image is built. If there are bugs in these scripts,
|
|
|
|
they'll be caught early, rather than several minutes after a machine is
|
|
|
|
launched.
|
2013-06-21 14:46:38 -04:00
|
|
|
|
2020-03-18 18:46:47 -04:00
|
|
|
**_Greater testability_**. After a machine image is built, that machine image
|
2013-06-21 14:46:38 -04:00
|
|
|
can be quickly launched and smoke tested to verify that things appear to be
|
2015-07-22 22:31:00 -04:00
|
|
|
working. If they are, you can be confident that any other machines launched from
|
|
|
|
that image will function properly.
|
2013-06-21 14:46:38 -04:00
|
|
|
|
|
|
|
Packer makes it extremely easy to take advantage of all these benefits.
|
|
|
|
|
|
|
|
What are you waiting for? Let's get started!
|