Giter VIP home page Giter VIP logo

packer-hashistack's Introduction

packer-hashistack - HashiCorp Packer image for provisioning the HashiStack

This Packer configuration builds on top of the Ubuntu 22.04 (Jammy) image from Canonical and includes the following HashiCorp software.

It also includes:

The resulting image provides the foundation for you to run one or some of these tools.

Prequisites

This Packer configuration is written in HCL and has been tested on Packer 1.8.2.

Environment variables

Set your AWS access credentials (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variables). These credentials should have the ability to create machine images.

Files

variables.pkr.hcl contains the variables needed for our Packer run. Each has a sane default with the exception of owner. You can override the default by passing it via the -var command line argument or via a .pkrvars.hcl file. Please see the Packer documentation on Input Variables for more information.

amazon-ebs.pkr.hcl contains the code for building an Amazon Machine Image (AMI) on AWS. This is the only machine image that this repository currently builds.

builders.pkr.hcl contains the builds and provisioner definitions. If you wanted to use the Open Source Vault and Consul binaries, or add or remove any resources from the image build, you could do so by modifying this file.

How to use

Adjust tags in amazon-ebs.pkr.hcl to suit your organization. The tags relate to variables defined in variables-tags.pkr.hcl. You may remove or modify that file if the tags and corresponding variables defined do not apply to your organization.

To create a machine image, run packer from the top level directory of this repository:

packer build -var-file 'owner="<packer variables file>"' .

For example:

packer build -var-file=yash.pkrvars.hcl .

packer-hashistack's People

Contributors

ykhemani avatar agudem-oteemo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.