Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created February 23, 2016 13:33
Show Gist options
  • Save swade1987/4e9d3f36fd7631207668 to your computer and use it in GitHub Desktop.
Save swade1987/4e9d3f36fd7631207668 to your computer and use it in GitHub Desktop.
vagrant script
# -*- 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