-
Notifications
You must be signed in to change notification settings - Fork 62
/
Vagrantfile
60 lines (57 loc) · 1.71 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.berkshelf.enabled = true
config.vm.box = "ubuntu/trusty64"
config.vm.define "node01" do |node01|
node01.vm.network "private_network", ip: "192.168.33.10"
node01.vm.network "forwarded_port", guest: 19332, host: 18332
node01.vm.provision "chef_solo" do |chef|
chef.add_recipe "bitcoind"
chef.json = {
"bitcoind" => {
"config" => {
"options" => {
"regtest" => 1,
"gen" => 1,
"dnsseed" => 0,
"unpnp" => 0,
"port" => 19000,
"server" => 1,
"rpcuser" => "username",
"rpcpassword" => "password",
"rpcallowip" => ["0.0.0.0/0"],
"rpcport" => 19332
}
}
}
}
end
end
config.vm.define "node02" do |node02|
node02.vm.network "private_network", ip: "192.168.33.20"
node02.vm.network "forwarded_port", guest: 19332, host: 18333
node02.vm.provision "chef_solo" do |chef|
chef.add_recipe "bitcoind"
chef.json = {
"bitcoind" => {
"config" => {
"options" => {
"regtest" => 1,
"dnsseed" => 0,
"unpnp" => 0,
"port" => 19000,
"server" => 1,
"listen" => 0,
"connect" => "192.168.33.10:19000",
"rpcuser" => "username",
"rpcpassword" => "password",
"rpcallowip" => ["0.0.0.0/0"],
"rpcport" => 19332
}
}
}
}
end
end
end