Created
February 23, 2016 13:33
-
-
Save swade1987/4e9d3f36fd7631207668 to your computer and use it in GitHub Desktop.
vagrant script
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_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "swade1987/aws-windows-base" | |
config.ssh.forward_agent = true | |
# Berkshelf setup | |
config.berkshelf.berksfile_path = "cookbooks/bamboo-agent/Berksfile" | |
config.berkshelf.enabled = true | |
# Forward ports. | |
config.vm.network "forwarded_port", guest: 80, host: 80, auto_correct: true | |
# Execute the cookbook | |
config.vm.provision :chef_solo do |chef| | |
chef.add_recipe 'bamboo-agent' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment