The mainnet and testnet nodes use data from an encrypted data bag Also fix a bug with the resource (hardcoded "dev" name instead of the name attribute)
32 lines
584 B
Ruby
32 lines
584 B
Ruby
#
|
|
# Cookbook Name:: kosmos-parity
|
|
# Recipe:: node_testnet
|
|
#
|
|
# Copyright 2017, Kosmos
|
|
#
|
|
# All rights reserved - Do Not Redistribute
|
|
#
|
|
|
|
credentials = Chef::EncryptedDataBagItem.load('credentials', 'parity')
|
|
account_password = credentials["testnet_password"]
|
|
|
|
parity_node "testnet" do
|
|
password account_password
|
|
config parity: {
|
|
chain: "ropsten",
|
|
},
|
|
network: {
|
|
port: 30304,
|
|
},
|
|
rpc: {
|
|
port: 8546,
|
|
},
|
|
dapps: {
|
|
port: 8091,
|
|
},
|
|
ui: {
|
|
port: 8181,
|
|
}
|
|
end
|
|
|