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)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#
|
||||
|
||||
parity_node "dev" do
|
||||
password "parityparity"
|
||||
config parity: {
|
||||
chain: "dev",
|
||||
no_download: true, # Don't Download Updates
|
||||
|
||||
@@ -7,7 +7,10 @@
|
||||
# All rights reserved - Do Not Redistribute
|
||||
#
|
||||
|
||||
credentials = Chef::EncryptedDataBagItem.load('credentials', 'parity')
|
||||
|
||||
parity_node "mainnet" do
|
||||
password credentials["mainnet_password"]
|
||||
config parity: {
|
||||
chain: "homestead",
|
||||
},
|
||||
|
||||
@@ -7,7 +7,11 @@
|
||||
# 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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user