Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
avoid empty field and use template logic
Browse files Browse the repository at this point in the history
  • Loading branch information
532910 committed Jun 7, 2023
1 parent ae27c8e commit a971568
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ neofs_ir__validators:
- '031f4d9c66f2ec348832c48fd3a16dfaeb59e85f557ae1e07f6696d0375c64f97b'
neofs_ir__consensus_committee: "{{ neofs_ir__validators }}"

neofs_ir__mainnet_endpoints:
- address: 'ws://localhost:20332/ws'

neofs_ir__morph_endpoints:
- address: 'ws://localhost:40332/ws'

neofs_ir__external_sidechain: False
neofs_ir__external_sidechain_config:
client:
- address: 'ws://localhost:40332/ws'
neofs_ir__internal_sidechain_config:
magic: "{{ neofs_ir__blockchain_magic }}"
committee: "{{ neofs_ir__consensus_committee }}"
Expand Down Expand Up @@ -110,14 +113,11 @@ neofs_ir__raw_config:
password: '{{ neofs_ir__wallet_password }}'

morph:
endpoint: "{{ neofs_ir__external_sidechain_config if neofs_ir__external_sidechain }}"
consensus: "{{ neofs_ir__internal_sidechain_config if not neofs_ir__external_sidechain }}"
validators: "{{ neofs_ir__validators }}"

mainnet:
endpoint:
client:
- address: 'ws://localhost:20332/ws'
client: '{{ neofs_ir__mainnet_endpoints }}'

node:
persistent_state:
Expand Down Expand Up @@ -162,6 +162,17 @@ neofs_ir__raw_config:


neofs_ir__default_config:
- enabled: '{{ neofs_ir__external_sidechain }}'
options:
morph:
endpoint:
client: '{{ neofs_ir__morph_endpoints }}'

- enabled: '{{ not neofs_ir__external_sidechain }}'
options:
morph:
consensus: '{{ neofs_ir__internal_sidechain_config }}'

- enabled: '{{ neofs_ir__control_enabled }}'
options:
control:
Expand Down

0 comments on commit a971568

Please sign in to comment.