Generate the config files using a TOML parser
Now we don't need to change both the template and the resources to add options
This commit is contained in:
@@ -33,25 +33,55 @@ dpkg_package "parity" do
|
||||
end
|
||||
|
||||
parity_node "dev" do
|
||||
config chain: "dev",
|
||||
network_port: 30303,
|
||||
json_rpc_port: 8545,
|
||||
dapps_port: 8090,
|
||||
ui_port: 8180
|
||||
config parity: {
|
||||
chain: "dev",
|
||||
},
|
||||
network: {
|
||||
port: 30303,
|
||||
},
|
||||
rpc: {
|
||||
port: 8545,
|
||||
},
|
||||
dapps: {
|
||||
port: 8090,
|
||||
},
|
||||
ui: {
|
||||
port: 8180,
|
||||
}
|
||||
end
|
||||
|
||||
parity_node "testnet" do
|
||||
config chain: "ropsten",
|
||||
network_port: 30304,
|
||||
json_rpc_port: 8546,
|
||||
dapps_port: 8091,
|
||||
ui_port: 8181
|
||||
config parity: {
|
||||
chain: "ropsten",
|
||||
},
|
||||
network: {
|
||||
port: 30304,
|
||||
},
|
||||
rpc: {
|
||||
port: 8546,
|
||||
},
|
||||
dapps: {
|
||||
port: 8091,
|
||||
},
|
||||
ui: {
|
||||
port: 8181,
|
||||
}
|
||||
end
|
||||
|
||||
parity_node "mainnet" do
|
||||
config chain: "homestead",
|
||||
network_port: 30305,
|
||||
json_rpc_port: 8547,
|
||||
dapps_port: 8092,
|
||||
ui_port: 8182
|
||||
config parity: {
|
||||
chain: "homestead",
|
||||
},
|
||||
network: {
|
||||
port: 30305,
|
||||
},
|
||||
rpc: {
|
||||
port: 8547,
|
||||
},
|
||||
dapps: {
|
||||
port: 8092,
|
||||
},
|
||||
ui: {
|
||||
port: 8182,
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user