I'm trying to set up a cluster of local VMs with test-kitchen so that they can communicate with each other. I don't care if they can talk to the world outside of their little cluster.
Tech in use:
Test-kitchen on windows 7
- chef-zero provisioner
- vagrant driver
- windows 2012r2 image
Node 1: Active Directory Domain Controller
- Provisioned with windows_ad recipe
- Node 2: SQL 2014
- All others: Windows Dynamics CRM 2015
Situation:
So far I've been able to manipulate the ip addresses that show up in ipconfig on the individual VMs but I've been unable to ping them from either the host box or any other guest machine. I've tried
suites:
- name: default
run_list:
- recipe[windows_ad::default]
- recipe[test_active_dir::default]
attributes:
driver:
network:
- ["public_network", {ip: "10.0.2.10"}]
suites:
- name: default
run_list:
- recipe[windows_ad::default]
- recipe[test_active_dir::default]
attributes:
driver:
network:
- ["private_network", {ip: "10.0.2.10"}]
and
driver:
name: vagrant
customize:
cpus: 2
memory: 2048
network:
- ["private_network", { type: dhcp }]
The worst part about all of this is about 6 months ago I did something similar and got it to work, but trashed the code when I got the chance to test in a certification environment instead. Cobbling this together last time took me weeks and skimming dozens of blogs.