0.0
No commit activity in last 3 years
No release in over 3 years
Kitchen::Driver::Bluebox - A Blue Box block API driver for Test Kitchen
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0
>= 0

Runtime

>= 0
 Project Readme

Kitchen::Bluebox: A Test Kitchen Driver for Blue Box Blocks

Gem Version Build Status Code Climate

A Test Kitchen Driver for Blue Box Blocks.

This driver uses the fog gem to provision and destroy blocks instances. Use Blue Box's cloud for your infrastructure testing!

Requirements

There are no external system requirements for this driver. However you will need access to a Blue Box account.

Installation and Setup

Please read the Driver usage page for more details.

Configuration

bluebox_customer_id

Required The Blue Blue customer id to use.

The default is unset, or nil.

bluebox_api_key

Required The Blue Blue api key to use.

The default is unset, or nil.

flavor_id

The blocks product type (also known as size) to use.

The default is "94fd37a7-2606-47f7-84d5-9000deda52ae".

image_id

The blocks template id to use.

The default is "573b8e80-823f-4100-bc2c-51b7c60f633c".

location_id

The blocks location to use.

The default is "37c2bd9a-3e81-46c9-b6e2-db44a25cc675".

port

The SSH port number to be used when communicating with the instance.

The default is 22.

ssh_key

Path to the private SSH key used to connect to the instance.

The default is unset, or nil.

username

The SSH username that will be used to communicate with the instance.

The default is "kitchen".

Example

The following could be used in a .kitchen.yml or in a .kitchen.local.yml to override default configuration.

---
driver:
  name: bluebox
  bluebox_customer_id: 123...
  bluebox_api_key: abc...
  location_id: def789...
  ssh_public_key: /path/to/id_dsa.pub
  ssh_key: /path/to/id_dsa

platforms:
  - name: ubuntu-12.04
    driver:
      image_id: b137c423-bade-4b01-9d13-271eea552563
  - name: scientific-6.3
    driver:
      image_id: caaaca6b-fbe0-4e27-af2b-d100e46767bd

suites:
  - name: default

Both .kitchen.yml and .kitchen.local.yml files are pre-processed through ERB which can help to factor out secrets and credentials. For example:

---
driver:
  name: bluebox
  bluebox_customer_id: <%= ENV['BLUEBOX_CUSTOMER_ID'] %>
  bluebox_api_key: <%= ENV['BLUEBOX_API_KEY'] %>
  ssh_public_key: <%= File.expand_path('~/.ssh/id_dsa.pub') %>
  ssh_key: <%= File.expand_path('~/.ssh/id_dsa') %>

platforms:
  - name: ubuntu-12.04
    driver:
      image_id: b137c423-bade-4b01-9d13-271eea552563
  - name: scientific-6.3
    driver:
      image_id: caaaca6b-fbe0-4e27-af2b-d100e46767bd

suites:
  - name: default

Development

Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Authors

Created by Fletcher Nichol (fnichol@nichol.ca) and maintained by Blue Box Group

License

Apache 2.0 (see LICENSE)