Skip to content

lonnix/ivy-ami-bakery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ivy ami-bakery

Bakes tasty AMIs, just for you!

Packer + Ansible = <3

How to create an Ivy environment

Go here

Structure

  • providers - cloud providers and their image sets

    • images - sets of Ansible roles that can be ran against an instance to create a machine image for the given provider
      An image will translate into an ami or the provider-specific version of a machine image.
  • roles - ansible roles applied against a given image
    Plain Jane Ansible roles.

How do I use this?

This requires:

  • packer
  • docker (on the host)
  • IAM role
Bake AMI from Ansible roles using Packer

 Usage: build.sh -p PROVIDER -i IMAGE -r REGIONS -m MULTI-ACCOUNT_PROFILE [-v 'var1_name=value1,var2_name=value2'] [-d]

 Options:
   -v    variables and their values to pass to packer, key value pairs separated by commas
   -p    provider to use (amazon|google|nocloud|...)
   -r    regions to copy this image to (comma separated values)
   -m    awscli profile that can assume role to list all accounts in this org
   -i    image to provision
   -d    enable debug mode

Examples:

AWS_PROFILE=your-profile ./build.sh -p amazon -i ivy-base -v 'datadog_api_key=your-datadog-api-key'
AWS_PROFILE=your-profile ./build.sh -p amazon -i ivy-mesos

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 96.2%
  • Smarty 3.0%
  • HCL 0.8%