Skip to content

Instantly share code, notes, and snippets.

@stephenlauck
Last active March 18, 2016 16:29
Show Gist options
  • Save stephenlauck/5ad544adb702c665b686 to your computer and use it in GitHub Desktop.
Save stephenlauck/5ad544adb702c665b686 to your computer and use it in GitHub Desktop.
Local kitchen yml to create vm ready for ssh provisioning with delivery-cluster.
# KITCHEN_YAML=.kitchen.local.yml kitchen create cent
---
driver:
name: vagrant
ssh:
insert_key: false
provisioner:
name: chef_zero
chef_zero_port: 9010
platforms:
- name: ubuntu-14.04
- name: centos-6.7
suites:
<% %W{ chef delivery-primary delivery-secondary builder }.each_with_index do |name, i| %>
- name: <%= name %>-server
run_list:
- recipe[delivery-cluster::default]
driver:
vm_hostname: <%= name %>-.example.com
network:
- ['private_network', {ip: '192.168.33.<%= i + 30 %>'}]
customize:
memory: 2048
cpus: 2
attributes:
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment