Skip to content

bhourigan/packer-post-processor-consul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This packer post processing plugin will insert AMI IDs and other image data into a consul key for later retrieval by terraform or other software that consumes consul.

It's still alpha (pre alpha?), and needs some polishing. The plan is to integrate support for this directly into nubis-builder so no end user configuration other than the address and token will be required.

Here's how I am using it during development.

$ go get github.com/bhourigan/packer-post-processor-consul $ cd ~/gocode/src/github.com/bhourigan/packer-post-processor-consul && make bin

If you're using nubis-builder all you need to do is add consul_address into your secrets, and it will automatically load packer/post-processors/consul.json during run time (take a peek for the config parameters that get passed)

If you're using it outside of nubis-builder, you'll need to add this to your packer json file:

{
"post-processors": [
  {
    "type": "consul",
    "consul_address": "<consul hostname>:8500",
    "consul_token": "<secret>",
    "aws_access_key": "{{user `aws_access_key`}}",
    "aws_secret_key": "{{user `aws_secret_key`}}",
    "project_name": "{{user `project_name`}}",
    "project_version": "{{user `project_version`}}"
  }
]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published