-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
121 lines (96 loc) · 4.22 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
$script = <<-SCRIPT
sudo mkdir /root/node
wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
sudo apt-get update -y
sudo apt-get install dotnet-sdk-2.2 mongodb dnsutils lsof -y
SCRIPT
Vagrant.configure('2') do |config|
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.define "poa-1" do |config|
config.vm.hostname = 'po1-1'
config.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = '/Users/nsh/.ssh/do'
provider.ssh_key_name = 'catalyst-testnet'
provider.monitoring = true
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box"
override.nfs.functional = false
provider.token = 'SOME_SECURE_KEY_IN_HERE_PROBS_WANT_TO_USE_ENV_VARS'
provider.image = 'ubuntu-18-04-x64'
provider.region = 'tor1'
provider.size = 's-1vcpu-1gb'
end
config.vm.provision "shell", inline: $script
end
config.vm.define "poa-2" do |config|
config.vm.hostname = 'poa-2'
config.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = '/Users/nsh/.ssh/do'
provider.ssh_key_name = 'catalyst-testnet'
provider.monitoring = true
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box"
override.nfs.functional = false
provider.token = 'SOME_SECURE_KEY_IN_HERE_PROBS_WANT_TO_USE_ENV_VARS'
provider.image = 'ubuntu-18-04-x64'
provider.region = 'sfo2'
provider.size = 's-1vcpu-1gb'
end
config.vm.provision "shell", inline: $script
end
config.vm.define "poa-3" do |config|
config.vm.hostname = 'poa-3'
config.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = '/Users/nsh/.ssh/do'
provider.ssh_key_name = 'catalyst-testnet'
provider.monitoring = true
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box"
override.nfs.functional = false
provider.token = 'SOME_SECURE_KEY_IN_HERE_PROBS_WANT_TO_USE_ENV_VARS'
provider.image = 'ubuntu-18-04-x64'
provider.region = 'blr1'
provider.size = 's-1vcpu-1gb'
end
config.vm.provision "shell", inline: $script
end
config.vm.define "poa-4" do |config|
config.vm.hostname = 'poa-4'
config.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = '/Users/nsh/.ssh/do'
provider.ssh_key_name = 'catalyst-testnet'
provider.monitoring = true
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box"
override.nfs.functional = false
provider.token = 'SOME_SECURE_KEY_IN_HERE_PROBS_WANT_TO_USE_ENV_VARS'
provider.image = 'ubuntu-18-04-x64'
provider.region = 'lon1'
provider.size = 's-1vcpu-1gb'
end
config.vm.provision "shell", inline: $script
end
config.vm.define "poa-5" do |config|
config.vm.hostname = 'poa-5'
config.vm.provider :digital_ocean do |provider, override|
override.ssh.private_key_path = '/Users/nsh/.ssh/do'
provider.ssh_key_name = 'catalyst-testnet'
provider.monitoring = true
override.vm.box = 'digital_ocean'
override.vm.box_url = "https://github.com/devopsgroup-io/vagrant-digitalocean/raw/master/box/digital_ocean.box"
override.nfs.functional = false
provider.token = 'SOME_SECURE_KEY_IN_HERE_PROBS_WANT_TO_USE_ENV_VARS'
provider.image = 'ubuntu-18-04-x64'
provider.region = 'ams3'
provider.size = 's-1vcpu-1gb'
end
config.vm.provision "shell", inline: $script
end
end