This commit is contained in:
Basti 2020-02-15 13:14:56 -05:00
parent c8122a44f1
commit 4889f40c6a
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
3 changed files with 28 additions and 9 deletions

View File

@ -16,6 +16,28 @@
}, },
"kosmos-dirsrv": { "kosmos-dirsrv": {
"master_hostname": "localhost" "master_hostname": "localhost"
},
"bitcoin": {
"conf": {
"testnet": 1,
"irc": 1,
"dnsseed": 1,
"upnp": 1,
"checkblocks": 10,
"checklevel": 1,
"txindex": 1,
"whitelist": "127.0.0.1",
"listen": 1,
"server": 1,
"rpcport": 8332,
"rpcssl": 0,
"rpcuser": "bitcoind",
"rpcbind": "127.0.0.1:8336",
"port": 8335,
"gen": 0,
"zmqpubrawblock": "tcp://127.0.0.1:8337",
"zmqpubrawtx": "tcp://127.0.0.1:8338"
}
} }
} }
} }

View File

@ -1,24 +1,22 @@
node.default['bitcoin']['username'] = 'bitcoind' node.default['bitcoin']['username'] = 'bitcoind'
node.default['bitcoin']['usergroup'] = 'bitcoind' node.default['bitcoin']['usergroup'] = 'bitcoind'
node.default['bitcoin']['datadir'] = '/mnt/data/bitcoin' node.default['bitcoin']['datadir'] = '/mnt/data/bitcoin'
node.default['bitcoin']['network'] = 'mainnet'
node.default['bitcoin']['conf'] = { node.default['bitcoin']['conf'] = {
testnet: 0,
irc: 1, irc: 1,
dnsseed: 1, dnsseed: 1,
upnp: 1, upnp: 1,
checkblocks: 10, checkblocks: 10,
checklevel: 1, checklevel: 1,
txindex: 1, txindex: 1,
whitelist: "127.0.0.1", whitelist: '127.0.0.1',
listen: 1, listen: 1,
server: 1, server: 1,
rpcport: 8332,
rpcssl: 0, rpcssl: 0,
rpcuser: 'bitcoind', rpcuser: 'bitcoind',
rpcbind: "127.0.0.1:8336", rpcbind: "127.0.0.1:8336",
port: 8335,
gen: 0, gen: 0,
zmqpubrawblock: "tcp://127.0.0.1:8337", zmqpubrawblock: 'tcp://127.0.0.1:8337',
zmqpubrawtx: "tcp://127.0.0.1:8338" zmqpubrawtx: 'tcp://127.0.0.1:8338'
} }

View File

@ -55,7 +55,7 @@ template "#{bitcoin_datadir}/bitcoin.conf" do
testnet_conf: node['bitcoin']['testnet_conf'], testnet_conf: node['bitcoin']['testnet_conf'],
regtest_conf: node['bitcoin']['regtest_conf'] regtest_conf: node['bitcoin']['regtest_conf']
action :create action :create
# notifies :reload, "service[bitcoind]", :delayed notifies :restart, "systemd_unit[bitcoind.service]", :delayed
end end
directory bitcoin_snapdir do directory bitcoin_snapdir do
@ -93,8 +93,7 @@ systemd_unit 'bitcoind.service' do
WantedBy: 'multi-user.target' WantedBy: 'multi-user.target'
} }
}) })
verify false verify false
triggers_reload true triggers_reload true
action :create action [:create, :enable, :start]
end end