Skip to content

Instantly share code, notes, and snippets.

@cwebberOps
Created December 9, 2014 12:58
Show Gist options
  • Save cwebberOps/9e174b85e98021034ffd to your computer and use it in GitHub Desktop.
Save cwebberOps/9e174b85e98021034ffd to your computer and use it in GitHub Desktop.
one yaml to rule them all
---
driver_config:
digitalocean_client_id: <%= ENV['DIGITAL_OCEAN_CLIENT_ID'] %>
digitalocean_api_key: <%= ENV['DIGITAL_OCEAN_API_KEY'] %>
provisioner:
name: chef_zero
require_chef_omnibus: latest
platforms:
- name: ubuntu-12.04
driver_plugin: digital_ocean
driver_config:
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
run_list:
- recipe[apt]
- name: ubuntu-14.04
driver_plugin: digital_ocean
driver_config:
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
run_list:
- recipe[apt]
- name: centos-6.5
driver_plugin: digital_ocean
driver_config:
region: <%= ENV['DIGITAL_OCEAN_REGION'] %>
<%= {"suites" => YAML.load_file('.kitchen.yml')['suites']}.to_yaml.gsub(/---\n/, '') %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment