Giter VIP home page Giter VIP logo

habitat_workstation's Introduction

Habitat Workstation

Cookbooks and Packer config to create a workstation for use during Habitat workshops.

Current Amazon Machine Image IDs

AMIs are currently only available in us-east region. Make sure you have a keypair setup in that region. NOTE: Ensure your ~/.aws/config region is set to us-east-1 pending region abstraction.

An ~/.aws/config file might look like:

[default]
region=us-east-1
aws_access_key_id = MYKEYID
aws_secret_access_key = MYACCESSKEY
Platform Hab 0.34.1 none
CentOS 7 ami-cbe01ab1 ami-9ec2d188
Ubuntu 16.04 ami-91e218eb ami-b9f1e2af
Ubuntu 16.10 ami-77e71d0d ami-8ef6e598
Ubuntu 17.04 ami-18ec1662 ami-c7fae9d1

Pre-requisites

# The name of the AWS KeyPair to use for deployment
export $AWS_KEYPAIR_NAME='your_aws_keypair_name'

Build the Amazon Machine Images (AMIs)

This rake task updates the vendored cookbooks before building the AMIs.

$ rake cookbook:vendor

To create AMIs with Habitat installed

$ rake "ami:build[ubuntu-1604,0.24.1]"

The latest version of Habitat will be installed, The version is for display purposes unless set to none

To create AMIs without Habitat installed

$ rake "ami:build[centos-7,none]"

List available templates

$ rake list:templates
centos-7
rhel-7
ubuntu-1404
ubuntu-1604

Share the AMIs with other Amazon accounts

$ export AMI_ID=the_ami_id_generated_by_packer
$ rake ami:share

Deploy the CloudFormation stack

This deploys a CloudFormation stack with the number of hosts and TTL (days). A template will be created in stacks/ with the arguments above using values from config.yml. An example, config.example.yml, is included

# rake deploy[name,num_hosts,ttl]

$ export AMI_ID=the AMI_ID #(generated by the rake task "ami:build above)
$ rake "deploy[habihacks-stack,10,3]"
$ cat config.example.yml
---
contact: Human Chef
dept: Community Engineering
project: Habihacks
region: us-east-1
sg: sg-a1c3b1db
subnet: subnet-46b55431
type: t2.medium

List Workstation IPs for a CloudFormation stack

$ rake "list:ips[habihacks-stack]"
workstation1: 54.172.141.159
workstation2: 54.87.195.76
workstation3: 54.91.122.177
workstation4: 54.86.46.187
workstation5: 54.227.190.60

habitat_workstation's People

Contributors

nathenharvey avatar ubergeekgirl avatar

Watchers

James Cloos avatar Pablo Villaronga 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.