Skip to content

Instantly share code, notes, and snippets.

@lmayorga1980
Created December 22, 2015 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmayorga1980/e4d2f05e97724a409862 to your computer and use it in GitHub Desktop.
Save lmayorga1980/e4d2f05e97724a409862 to your computer and use it in GitHub Desktop.
Basic Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
require 'yaml'
@servers = YAML.load_file('.servers.yml')
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
@servers.each do |servers|
config.vm.define servers["name"] do |srv|
srv.vm.box = servers["box"]
srv.vm.communicator = servers["communicator"]
srv.vm.boot_timeout = 1600
srv.vm.hostname = servers["hostname"]
srv.vm.provider :virtualbox do |v|
v.gui = true
v.name = servers["name"]
v.memory = servers["ram"]
v.cpus = 2
end
srv.vm.provision "puppet" do |puppet|
puppet.module_path = ["modules","modules/gold/modules","development/modules"]
puppet.environment = "development"
puppet.environment_path = "."
puppet.options = "--verbose"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment