Skip to content

Commit

Permalink
Clean up building horcrux signers
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Schultz <[email protected]>
  • Loading branch information
dylanschultzie committed Apr 10, 2024
1 parent c980ca4 commit 31825f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ keys/*
hostbin/*
.vscode/settings.json
inventories/*
*.DS_Store*
17 changes: 11 additions & 6 deletions horcrux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@
add_host:
hostname: signer1
group: signers

- name: add all signers
when: shares > 1
add_host:
hostname: '{{ item }}'
group: signers
loop: '{{ groups["all"] }}'
block:
- name: remove testnet_signer1 from the list
set_fact:
filtered_list: "{{ groups['all'] | difference(['testnet_signer1']) }}"
- name: create host group
add_host:
hostname: '{{ item }}'
group: signers
loop: '{{ filtered_list }}'

- name: handle testnet signers
when: testnet is defined and testnet|bool
Expand All @@ -35,7 +40,7 @@
- '{{ var_file }}'
roles:
- define_variables
- horcrux_install
# - horcrux_install
- horcrux_configure
- horcrux_create_shares
- horcrux_restart

0 comments on commit 31825f3

Please sign in to comment.