summaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-08-01 12:01:59 -0600
committermo khan <mo@mokhan.ca>2015-08-01 12:01:59 -0600
commita145a2df3dfeff58b3f5dd3cc77bc845425e1596 (patch)
tree55535aa52a625ee9e2610a5a65b91035423563e0 /Vagrantfile
parente1a469e3b56ba8f10c0bbba25fc9342ff24a8c73 (diff)
convert vagrant shell script to chef apply.
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile45
1 files changed, 10 insertions, 35 deletions
diff --git a/Vagrantfile b/Vagrantfile
index 6dbf91f..0b9172a 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -3,43 +3,18 @@
Vagrant.configure("2") do |config|
config.vm.box = "phusion/ubuntu-14.04-amd64"
-
- # Create a forwarded port mapping which allows access to a specific port
- # within the machine from a port on the host machine. In the example below,
- # accessing "localhost:8080" will access port 80 on the guest machine.
- #config.vm.network :forwarded_port, guest: 80, host: 8080
- config.vm.network :forwarded_port, guest: 5000, host: 3000
- config.vm.provision :shell, :path => 'bin/bootstrap.sh'
- config.ssh.forward_agent = true
-
- # Create a private network, which allows host-only access to the machine
- # using a specific IP.
- #config.vm.network :private_network, ip: "192.168.33.10"
-
- # Create a public network, which generally matched to bridged network.
- # Bridged networks make the machine appear as another physical device on
- # your network.
- # config.vm.network :public_network
-
- # Share an additional folder to the guest VM. The first argument is
- # the path on the host to the actual folder. The second argument is
- # the path on the guest to mount the folder. And the optional third
- # argument is a set of non-required options.
- # config.vm.synced_folder "../data", "/vagrant_data"
-
- # Provider-specific configuration so you can fine-tune various
- # backing providers for Vagrant. These expose provider-specific options.
- # Example for VirtualBox:
- #
- # config.vm.provider :virtualbox do |vb|
- # # Don't boot with headless mode
- # vb.gui = true
- #
- # # Use VBoxManage to customize the VM. For example to change memory:
- # vb.customize ["modifyvm", :id, "--memory", "1024"]
- # end
+ config.vm.network :forwarded_port, guest: 3000, host: 3000
+ config.vm.provision :chef_apply do |chef|
+ chef.recipe = File.read("config/chef_apply.rb")
+ chef.version = :latest
+ end
config.vm.provider :vmware_workstation do |vm|
vm.gui = false
vm.vmx["displayname"] = "stronglifters"
end
+ config.vm.provider :vmware_fusion do |v|
+ v.vmx["memsize"] = "2048"
+ v.vmx["numvcpus"] = "2"
+ end
+ config.ssh.forward_agent = true
end