No commit activity in last 3 years
No release in over 3 years
A Test Kitchen Driver for Digital Ocean using apiv2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Kitchen::DigitalOcean

A Test Kitchen driver for Digital Ocean API v2.

Forked from the official test-kitchen/kitchen-digitalocean driver.

Requirements

  • Obviously, this gem depends on Test Kitchen.
  • It also depends on rest_client, but that'll automatically be handled via RubyGems.
  • You also need a Digital Ocean account.
  • You need to define the following environment variables:
    • DIGITALOCEAN_API_TOKEN -- your API token (requires read+write)
    • DIGITALOCEAN_SSH_KEYS -- comma-separated list of SSH key IDs (get from Digital Ocean API)

Installation and Setup

  1. Use ChefDK.
  2. Be happy.
chef gem install kitchen-digital_ocean

In your .kitchen.yml or .kitchen.local.yml:

---
driver:
  name: digital_ocean

platforms:
  - name: ubuntu-12.10

Additional configuration options

  • username -- user name to SSH with
  • port -- SSH port to SSH into
  • private_networking -- enable private networking on the drpolet
  • region -- the region to provision the droplet in; you can use the short slugs (eg. nyc2)
  • size -- the size to provision the droplet as; you can use the short slugs (eg. 2gb)
  • image -- the image to provision the droplet with; you can use the short slugs
  • server_name -- you probably want to leave this alone
  • digitalocean_api_token -- you can set this, but seriously use the environment variable above
  • digitalocean_ssh_keys -- you can set this, but seriously use the environment variable above

For more details, see the Digital Ocean API documentation.