Skip to content

pauldoran/cloud-comparison-ninja-provisioning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Provisioning API

Imstall

Create a fog credentials file in ~/.fog:

default:
  aws_access_key_id: some_value
  aws_secret_access_key: some_value
  public_key_path: '~/.ssh/ninja.pub'
  private_key_path: '~/.ssh/ninja'  

Install gems:

$ gem install bundler
$ bundle install

Run

ruby server.rb

Creating Instances

POST http://localhost:5555/compute Content-Type: application/json

{
  "compute": [
    {
      "provider": "aws",
      "region": "eu-west-1",
      "image_id": "ami-7aa8080d",
      "flavor_id": "m3.medium",
      "username": "ubuntu"
    },
    {
      "provider": "google",
      "google_project": "cloud-comparison-ninja",
      "zone_name": "europe-west1-a",
      "image_name": "debian-7-wheezy-v20140926",
      "machine_type": "n1-standard-1",
      "username": "ubuntu"
    }
  ]
}

Useful Links

Legacy Install

Install jruby 1.7.16. Ask it to set the paths

Set the GEM_HOME environment variable, e.g.:

set JRUBY_HOME=C:\jruby-1.7.16

Run:

c:\jruby-1.7.16\bin\bundle install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages