Created
December 22, 2015 14:35
-
-
Save lmayorga1980/e4d2f05e97724a409862 to your computer and use it in GitHub Desktop.
Basic Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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