Skip to content

Instantly share code, notes, and snippets.

@Sam-Martin
Sam-Martin / Test Kitchen Add Vagrant Disks.md
Last active March 21, 2020 03:52
Test Kitchen VagrantFile.rb to add disks & test_helper.bash to format them

Use these two files to add disks to your VMs (here adding three disks) when Kitchen spins up Vagrant boxes.

  • test_helper.bash (add to your bats test with load test_helper)
  • vagrantfile.rb (add to your .kitchen.yml using)
---
driver:
  name: vagrant
  vagrantfiles: 
 - vagrantfile.rb
@blambi
blambi / gist:5263533
Last active December 15, 2015 12:58
Converting MV2 Inventories from yaml to json files
#!/usr/bin/env python
import sys
import yaml
import json
def convert(infile):
x = yaml.load(open(infile, 'r').read())
print "Converting"
print x