Skip to content

Instantly share code, notes, and snippets.

@dcunited001
Created June 7, 2013 06:57
Show Gist options
  • Save dcunited001/5727496 to your computer and use it in GitHub Desktop.
Save dcunited001/5727496 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# this works with `ruby Vagrantfile`
# but not `vagrant up`
require 'yaml'
require 'erubis'
@cfg = YAML::load(DATA)
@boxes = @cfg.keys.map(&:to_sym)
puts @cfg.to_s
Vagrant.configure("2") do |config|
raise @cfg.inspect
end
__END__
---
chef:
box: opscode_ubuntu-12.04_provisionerless.box
host_name: chef.local
boot_mode: headless
net:
mode:
ip:
mask:
port:
ssh: 2200
http: 8800
ssh:
username:
shell:
share:
type: nfs
hostpath:
guestpath:
omnibus:
chef_version: latest
chef:
cookbooks_path:
recipes:
- build_essential
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment