use new refactored beacon-node role in a loop

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-09 18:18:46 +02:00
parent 36ce9bf87d
commit 3adc241e4d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 37 additions and 30 deletions

View File

@ -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 }}'