0.01
No commit activity in last 3 years
No release in over 3 years
A Test Kitchen Fog Nova driver
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

~> 1.15
>= 1.1.0
 Project Readme

Build Status

Kitchen::Fog

A Fog Nova driver for Test Kitchen 1.0!

Generalized from Jonathan Hartman's awesome work on an OpenStack driver which is shamelessly copied from Fletcher Nichol's awesome work on an EC2 driver.

Installation

Add this line to your application's Gemfile:

gem 'kitchen-fog'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kitchen-fog

Usage

Provide, at a minimum, the required driver options in your .kitchen.yml file. The authentication and server_create sections are specific to the provider:

---
driver_plugin: fog
driver_config:
  authentication:
    provider: 'openstack'
    openstack_username: 'username'
    openstack_api_key: 'password'
    openstack_auth_url: 'https://id.example.com:35357/v2.0/tokens'
    openstack_tenant: 'tenant_name'
    openstack_region: 'region-b.geo-1'
  server_create:
    flavor_ref: '103'
    image_ref: '8c096c29-a666-4b82-99c4-c77dc70cfb40'
    key_name: 'bover'
    nics: [ 'net_id': '76abe0b1-581a-4698-b200-a2e890f4eb8d' ]
  floating_ip_create:
    floating_network_id: '7da74520-9d5e-427b-a508-213c84e69616'
  require_chef_omnibus: latest
  public_key_path: /home/terry/.ssh/bover.pub
  username: ubuntu

By default, a unique server name will be generated and the current user's SSH key will be used, though that behavior can be overridden with additional options:

server_name: [A UNIQUE SERVER NAME]
ssh_key: [PATH TO YOUR PRIVATE SSH KEY]
upload_public_ssh_key: [TRUE UPLOADS PUBLIC KEY TO SERVER]
public_key_path: [PATH TO YOUR SSH PUBLIC KEY]
username: [SSH USER]
port: [SSH PORT]

If a key_name is provided it will be used instead of any public_key_path that is specified.

disable_ssl_validation: true

Only disable SSL cert validation if you absolutely know what you are doing, but are stuck with a deployment without valid SSL certs.

Contributing

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