Created
February 13, 2016 16:15
-
-
Save swade1987/27203da681b6f6ebeffb to your computer and use it in GitHub Desktop.
go.cd windows server vagrant file
This file contains hidden or 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" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "windows-2012r2" | |
config.ssh.forward_agent = true | |
# Berkshelf setup | |
config.berkshelf.berksfile_path = "cookbooks/go-cookbook/Berksfile" | |
config.berkshelf.enabled = true | |
# Forward ports. | |
config.vm.network "forwarded_port", guest: 8153, host: 8153, auto_correct: true | |
# Increase the memory | |
config.vm.provider "virtualbox" do |v| | |
v.memory = 2048 | |
v.cpus = 2 | |
end | |
# Execute the cookbook | |
config.vm.provision :chef_solo do |chef| | |
chef.cookbooks_path = ["cookbooks"] | |
chef.add_recipe 'gocd::server_windows_install' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment