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

30 lines
549 B
Ruby

#
# Cookbook Name:: kosmos-parity
# Recipe:: node_mainnet
#
# Copyright 2017, Kosmos
#
# All rights reserved - Do Not Redistribute
#
credentials = Chef::EncryptedDataBagItem.load('credentials', 'parity')
parity_node "mainnet" do
password credentials["mainnet_password"]
config parity: {
chain: "homestead",
},
network: {
port: 30305,
},
rpc: {
port: 8547,
},
dapps: {
port: 8092,
},
ui: {
port: 8182,
}
end