blob: 007e7e5e2a0ea099632ae6d5cce125c4b154bc85 [file] [log] [blame]
Zsolt Harasztiec7df102016-05-05 13:34:18 -07001# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4Vagrant.configure(2) do |config|
5
6 if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
Zsolt Haraszti5dc859d2016-05-31 17:11:40 -07007 config.vm.synced_folder ".", "/cord", mount_options: ["dmode=700,fmode=600"]
Zsolt Harasztiec7df102016-05-05 13:34:18 -07008 else
Zsolt Haraszti5dc859d2016-05-31 17:11:40 -07009 config.vm.synced_folder ".", "/cord"
Zsolt Harasztiec7df102016-05-05 13:34:18 -070010 end
11
12 config.vm.define "corddev" do |d|
Zsolt Haraszti5b5a42a2016-05-12 22:19:57 -070013 d.ssh.forward_agent = true
Zsolt Harasztiec7df102016-05-05 13:34:18 -070014 d.vm.box = "ubuntu/trusty64"
15 d.vm.hostname = "corddev"
16 d.vm.network "private_network", ip: "10.100.198.200"
17 d.vm.provision :shell, path: "scripts/bootstrap_ansible.sh"
Zsolt Haraszti5dc859d2016-05-31 17:11:40 -070018 d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /cord/ansible/corddev.yml -c local"
Zsolt Harasztiec7df102016-05-05 13:34:18 -070019 d.vm.provider "virtualbox" do |v|
20 v.memory = 2048
21 end
22 end
23
24 config.vm.define "prod" do |d|
25 d.vm.box = "ubuntu/trusty64"
26 d.vm.hostname = "prod"
27 d.vm.network "private_network", ip: "10.100.198.201"
David K. Bainbridge97b3f2f2016-06-16 18:08:49 -070028 d.vm.network "private_network", ip: "10.6.0.1", virtualbox__intnet: "cord-test-network"
Zsolt Harasztiec7df102016-05-05 13:34:18 -070029 d.vm.provider "virtualbox" do |v|
David K. Bainbridge97b3f2f2016-06-16 18:08:49 -070030 v.memory = 2048
31 end
32 end
33
34 config.vm.define "computenode" do |c|
35 c.vm.box = "clink15/pxe"
36 c.vm.synced_folder '.', '/vagrant', disable: true
37 c.vm.communicator = "none"
38 c.vm.hostname = "computenode"
39 c.vm.network "private_network",
40 adapter: "1",
41 type: "dhcp",
42 auto_config: false,
43 virtualbox__intnet: "cord-test-network"
44 c.vm.provider "virtualbox" do |v|
45 v.memory = 1048
46 v.gui = "true"
Zsolt Harasztiec7df102016-05-05 13:34:18 -070047 end
48 end
49
50 if Vagrant.has_plugin?("vagrant-cachier")
51 config.cache.scope = :box
52 end
53
54end