File tree 3 files changed +68
-0
lines changed
3 files changed +68
-0
lines changed Original file line number Diff line number Diff line change
1
+ source "https://supermarket.chef.io"
2
+
3
+ cookbook "bitcoind"
Original file line number Diff line number Diff line change
1
+ DEPENDENCIES
2
+ bitcoind
3
+
4
+ GRAPH
5
+ bitcoind (0.3.0)
Original file line number Diff line number Diff line change
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+ Vagrant . configure ( 2 ) do |config |
4
+ config . berkshelf . enabled = true
5
+ config . vm . box = "ubuntu/trusty64"
6
+
7
+ config . vm . define "node01" do |node01 |
8
+ node01 . vm . network "private_network" , ip : "192.168.33.10"
9
+ node01 . vm . network "forwarded_port" , guest : 19332 , host : 18332
10
+ node01 . vm . provision "chef_solo" do |chef |
11
+ chef . add_recipe "bitcoind"
12
+ chef . json = {
13
+ "bitcoind" => {
14
+ "config" => {
15
+ "options" => {
16
+ "regtest" => 1 ,
17
+ "gen" => 1 ,
18
+ "dnsseed" => 0 ,
19
+ "unpnp" => 0 ,
20
+ "port" => 19000 ,
21
+ "server" => 1 ,
22
+ "rpcuser" => "username" ,
23
+ "rpcpassword" => "password" ,
24
+ "rpcallowip" => [ "0.0.0.0/0" ] ,
25
+ "rpcport" => 19332
26
+ }
27
+ }
28
+ }
29
+ }
30
+ end
31
+ end
32
+
33
+ config . vm . define "node02" do |node02 |
34
+ node02 . vm . network "private_network" , ip : "192.168.33.20"
35
+ node02 . vm . network "forwarded_port" , guest : 19332 , host : 18333
36
+ node02 . vm . provision "chef_solo" do |chef |
37
+ chef . add_recipe "bitcoind"
38
+ chef . json = {
39
+ "bitcoind" => {
40
+ "config" => {
41
+ "options" => {
42
+ "regtest" => 1 ,
43
+ "dnsseed" => 0 ,
44
+ "unpnp" => 0 ,
45
+ "port" => 19000 ,
46
+ "server" => 1 ,
47
+ "listen" => 0 ,
48
+ "connect" => "192.168.33.10:19000" ,
49
+ "rpcuser" => "username" ,
50
+ "rpcpassword" => "password" ,
51
+ "rpcallowip" => [ "0.0.0.0/0" ] ,
52
+ "rpcport" => 19332
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+
60
+ end
You can’t perform that action at this time.
0 commit comments