Greg Karékinian 37ab52902b Use a password attribute in the parity_node resource
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)
2017-05-03 19:06:55 +02:00

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