use new refactored beacon-node role in a loop
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
36ce9bf87d
commit
3adc241e4d
|
@ -3,37 +3,44 @@
|
|||
hosts: nimbus-master
|
||||
roles:
|
||||
- { role: origin-cert }
|
||||
# - { role: infra-role-eth2-testnet-site }
|
||||
- { role: nimbus-stats, tags: nimbus-stats }
|
||||
- { role: infra-role-beacon-node,
|
||||
beacon_node_network: 'testnet0',
|
||||
beacon_node_build_flavour: 'rlpx',
|
||||
beacon_node_total_nodes: 2,
|
||||
beacon_node_running_nodes: 2,
|
||||
beacon_node_discovery_port: 9000,
|
||||
beacon_node_listening_port: 9000 }
|
||||
- { role: infra-role-beacon-node,
|
||||
beacon_node_network: 'testnet1',
|
||||
beacon_node_build_flavour: 'rlpx',
|
||||
beacon_node_total_nodes: 5,
|
||||
beacon_node_running_nodes: 2,
|
||||
beacon_node_discovery_port: 9100,
|
||||
beacon_node_listening_port: 9100 }
|
||||
# - { role: infra-role-eth2-testnet-site }
|
||||
tasks:
|
||||
- include_role:
|
||||
name: infra-role-beacon-node
|
||||
with_sequence: count=2
|
||||
vars:
|
||||
beacon_node_network: 'testnet0'
|
||||
beacon_node_public_tcp_port: '{{ 9000 + item|int }}'
|
||||
beacon_node_public_udp_port: '{{ 9000 + item|int }}'
|
||||
beacon_node_cont_name: 'beacon-node-{{ beacon_node_build_flavour }}-{{ beacon_node_network}}-{{ item }}'
|
||||
|
||||
- include_role:
|
||||
name: infra-role-beacon-node
|
||||
with_sequence: count=2
|
||||
vars:
|
||||
beacon_node_network: 'testnet1'
|
||||
beacon_node_public_tcp_port: '{{ 9100 + item|int }}'
|
||||
beacon_node_public_udp_port: '{{ 9100 + item|int }}'
|
||||
beacon_node_cont_name: 'beacon-node-{{ beacon_node_build_flavour }}-{{ beacon_node_network}}-{{ item }}'
|
||||
|
||||
- name: Configure Nimbus cluster
|
||||
hosts: nimbus-slaves
|
||||
roles:
|
||||
- { role: infra-role-beacon-node,
|
||||
beacon_node_network: 'testnet0',
|
||||
beacon_node_build_flavour: 'rlpx',
|
||||
beacon_node_total_nodes: 2,
|
||||
beacon_node_running_nodes: 2,
|
||||
beacon_node_discovery_port: 9000,
|
||||
beacon_node_listening_port: 9000 }
|
||||
- { role: infra-role-beacon-node,
|
||||
beacon_node_network: 'testnet1',
|
||||
beacon_node_build_flavour: 'rlpx',
|
||||
beacon_node_total_nodes: 10,
|
||||
beacon_node_running_nodes: 2,
|
||||
beacon_node_discovery_port: 9100,
|
||||
beacon_node_listening_port: 9100 }
|
||||
tasks:
|
||||
- include_role:
|
||||
name: infra-role-beacon-node
|
||||
with_sequence: count=2
|
||||
vars:
|
||||
beacon_node_network: 'testnet0'
|
||||
beacon_node_public_tcp_port: '{{ 9000 + item|int }}'
|
||||
beacon_node_public_udp_port: '{{ 9000 + item|int }}'
|
||||
beacon_node_cont_name: 'beacon-node-{{ beacon_node_build_flavour }}-{{ beacon_node_network}}-{{ item }}'
|
||||
|
||||
- include_role:
|
||||
name: infra-role-beacon-node
|
||||
with_sequence: count=2
|
||||
vars:
|
||||
beacon_node_network: 'testnet1'
|
||||
beacon_node_public_tcp_port: '{{ 9100 + item|int }}'
|
||||
beacon_node_public_udp_port: '{{ 9100 + item|int }}'
|
||||
beacon_node_cont_name: 'beacon-node-{{ beacon_node_build_flavour }}-{{ beacon_node_network}}-{{ item }}'
|
||||
|
|
Loading…
Reference in New Issue