-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
82 lines (62 loc) · 2.25 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "test" do |test|
test.vm.hostname = "vagrant-ethereum-miner-test"
test.vm.network :private_network, type: "dhcp"
test.vm.provision "shell", path: "swap.sh"
test.vm.provision "shell", inline: "sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get -y install python"
test.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbook.yml"
end
if Vagrant.has_plugin?("vagrant-cachier")
test.cache.scope = :machine
end
test.vm.synced_folder ".", "/vagrant"
test.vm.provider :virtualbox do |vb, override|
override.vm.box = "ubuntu/xenial64"
vb.memory = 3072
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
test.vm.provider :docker do |d|
d.image = "tknerr/baseimage-ubuntu:16.04"
d.privileged = true
d.has_ssh = true
end
end
config.vm.define "dev", primary: true do |dev|
dev.vm.hostname = "vagrant-ethereum-miner-dev"
dev.vm.network :private_network, type: "dhcp"
dev.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbook-dev.yml"
end
if Vagrant.has_plugin?("vagrant-cachier")
dev.cache.scope = :machine
end
dev.vm.synced_folder ".", "/vagrant"
dev.vm.provider :virtualbox do |vb, override|
override.vm.box_url = "https://vagrantcloud.com/ubuntu/trusty64"
override.vm.box = "ubuntu/trusty64"
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
config.vm.define "ci" do |ci|
ci.vm.box_url = "https://vagrantcloud.com/ubuntu/trusty64"
ci.vm.box = "ubuntu/trusty64"
ci.vm.hostname = "vagrant-ethereum-miner-ci"
ci.vm.network :private_network, type: "dhcp"
ci.vm.provision "shell", path: "swap.sh"
ci.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbook-ci.yml"
end
if Vagrant.has_plugin?("vagrant-cachier")
ci.cache.scope = :machine
end
ci.vm.synced_folder ".", "/vagrant"
ci.vm.provider :virtualbox do |vb|
vb.memory = 4096
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
end
end