forked from hyperledger-bevel/bevel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[besu] Adding a new validator organization with multiple nodes to exi…
…sting network (hyperledger-bevel#1530) * Implemented new functionality for adding a new validator org with multiple nodes Signed-off-by: alvaropicazo <[email protected]>
- Loading branch information
1 parent
13759c6
commit 44fe0c8
Showing
10 changed files
with
609 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
platforms/hyperledger-besu/configuration/roles/create/validator_node/tasks/add_to_vault.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
# This tasks copy the crypto material to the vault | ||
- name: Copy the crypto material to Vault | ||
shell: | | ||
vault kv put {{ vault.secret_path | default('secret') }}/{{ component_ns }}/crypto/{{ peer.name }}/data key="$(cat {{ build_path }}/crypto/{{ component_name }}/{{ peer.name }}/data/key)" key_pub="$(cat {{ build_path }}/crypto/{{ component_name }}/{{ peer.name }}/data/key.pub)" nodeAddress="$(cat {{ build_path }}/crypto/{{ component_name }}/{{ peer.name }}/data/nodeAddress)" | ||
vault kv put {{ vault.secret_path | default('secret') }}/{{ component_ns }}/crypto/{{ peer.0.name }}/data key="$(cat {{ build_path }}/crypto/{{ component_name }}/{{ peer.0.name }}/data/key)" key_pub="$(cat {{ build_path }}/crypto/{{ component_name }}/{{ peer.0.name }}/data/key.pub)" nodeAddress="$(cat {{ build_path }}/crypto/{{ component_name }}/{{ peer.0.name }}/data/nodeAddress)" | ||
environment: | ||
VAULT_ADDR: "{{ vault.url }}" | ||
VAULT_TOKEN: "{{ vault.root_token }}" | ||
loop: "{{ org.services.validators }}" | ||
when: peer.status == 'new' | ||
loop_control: | ||
loop_var: peer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.