NSAKHAN / brix

Balanced infrastructure definitions and scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

balanced-infra

NOTE: Building images from this will break chef at the moment because it installs a newer version of ohai which does not work like the working version (6.20.0). Sorry for not fixing this, I don't have the heart since we're moving to ansible.

Balanced infrastructure definitions and tools.

Building a new AMI

The packer/ folder contains templates and scripts to build an AMI to use as our base image. To build the image you need the validation key (validation.pem) as well as the AWS certificate and key (balanced-aws.crt and balanced-aws.key, ask Noah for these). Put all three of those in packer/ folder and ensure your $AWS_ACCESS_KEY_ID and $AWS_SECRET_ACCESS_KEY environment variables are set.

To verify everything is all set:

$ packer validate balanced-client.json

To start the build:

$ packer build balanced-client.json

After the build completes it will display the three (one for each region) AMI IDs. Copy these into https://github.com/balanced/confucius/blob/master/stacks/mapper.py#L28.

About

Balanced infrastructure definitions and scripts

License:Apache License 2.0


Languages

Language:Python 65.8%Language:Shell 33.2%Language:Ruby 1.1%