Generated by GPT-5-mini| Packer (software) | |
|---|---|
| Name | Packer |
| Developer | HashiCorp |
| Released | 2013 |
| Programming language | Go |
| Operating system | Cross-platform |
| License | Mozilla Public License 2.0 |
Packer (software) is an open-source tool for creating identical machine images for multiple platforms from a single source configuration. Developed by HashiCorp, it automates image creation workflows to produce artifacts consumable by cloud providers and virtualization platforms, enabling integration with provisioning tools and continuous delivery pipelines. Packer aims to simplify image creation for infrastructure teams working with hybrid and multi-cloud environments.
Packer was announced by HashiCorp alongside other tools in the infrastructure automation ecosystem and has been adopted by organizations using Amazon Web Services, Microsoft Azure, Google Cloud Platform, VMware, and other providers. The project is implemented in Go (programming language) and distributed under the Mozilla Public License 2.0. Packer's design focuses on immutable infrastructure patterns popularized alongside tools like Docker (software), Kubernetes, and Terraform (software), enabling reproducible images for programs such as Ansible, Chef, Puppet, and SaltStack.
Packer supports declarative templates and a plugin-oriented architecture that separates builders, provisioners, and post-processors. It provides parallel image building to create artifacts for Amazon EC2, Microsoft Azure, Google Compute Engine, VMware vSphere, VirtualBox, and Hyper-V simultaneously. Integration features include support for configuration management systems like Ansible, Chef, and Puppet, and orchestration with CI/CD systems including Jenkins (software), GitLab, and GitHub Actions. Packer templates allow variables, JSON or HCL2 templating, and artifact metadata useful in systems such as Consul (software) and Vault (software).
Packer's core separates building stages: builders create the base image, provisioners install and configure software, and post-processors produce final artifacts or uploads. Builders interact with provider APIs such as Amazon EC2, Microsoft Azure, and Google Cloud Platform to instantiate temporary instances; provisioners run scripts or tools like Shell (Unix shell), Ansible, or Chef to prepare the image; post-processors can compress, artifact-store to services like HashiCorp Vault or publish to registries. The workflow is commonly integrated into pipelines managed by Jenkins, CircleCI, or GitLab CI/CD and coordinated with infrastructure declarative tools like Terraform (software).
Packer includes first-party and community builders for cloud providers and virtualization platforms: Amazon Web Services AMIs, Microsoft Azure VM images, Google Cloud Platform images, VMware vSphere templates, VirtualBox OVA files, and Hyper-V VHDs. Community plugins extend support to container registries and orchestration platforms such as Docker (software), Kubernetes, and specialized image targets like OpenStack and DigitalOcean. Builders use provider SDKs and APIs maintained by vendors including Amazon (company), Microsoft, and Google (company), enabling compatibility with services like Amazon EC2 Auto Scaling and Azure Resource Manager.
Organizations use Packer to create immutable images for workloads managed with Kubernetes, Nomad (software), or VM-based fleets in Amazon Web Services and Microsoft Azure. Use cases include hardened base images for compliance regimes governed by standards like PCI DSS, golden images for fast scaling in Amazon EC2 Auto Scaling groups, and CI/CD artifact creation for services deployed via Terraform modules. Notable adoption occurs in enterprises and open-source projects that combine Packer with configuration management tools such as Ansible, Chef, Puppet, and SaltStack to bake configuration into images rather than applying at boot.
Packer is developed by HashiCorp with contributions from a community organized on platforms like GitHub and discussed in forums and conferences such as HashiConf. The project follows an open-source model with releases coordinated via semantic versioning and issue tracking in public repositories. Ecosystem contributions include community-built plugins, examples, and integrations with CI/CD providers like Jenkins (software), GitLab, and Travis CI. The community interacts through channels including the HashiCorp community forum, public issue trackers, and talks at events such as KubeCon and DevOpsDays.
Security-conscious teams leverage Packer to bake security updates, vulnerability patches, and baseline hardening into images prior to deployment, reducing the attack surface compared with mutable infrastructure. Packer templates can incorporate scanning tools and compliance checks from projects like OpenSCAP and vulnerability scanners used by vendors such as Qualys or Rapid7. Maintenance practices include automated rebuilding of images in response to patch releases, integration with secrets backends like Vault (software) for credential injection, and use of signing and artifact registries to ensure provenance. HashiCorp issues security advisories and coordinates fixes through standard disclosure processes used across open-source ecosystems.