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 hosts: nimbus-master
roles: roles:
- { role: origin-cert } - { role: origin-cert }
# - { role: infra-role-eth2-testnet-site }
- { role: nimbus-stats, tags: nimbus-stats } - { role: nimbus-stats, tags: nimbus-stats }
- { role: infra-role-beacon-node, # - { role: infra-role-eth2-testnet-site }
beacon_node_network: 'testnet0', tasks:
beacon_node_build_flavour: 'rlpx', - include_role:
beacon_node_total_nodes: 2, name: infra-role-beacon-node
beacon_node_running_nodes: 2, with_sequence: count=2
beacon_node_discovery_port: 9000, vars:
beacon_node_listening_port: 9000 } beacon_node_network: 'testnet0'
- { role: infra-role-beacon-node, beacon_node_public_tcp_port: '{{ 9000 + item|int }}'
beacon_node_network: 'testnet1', beacon_node_public_udp_port: '{{ 9000 + item|int }}'
beacon_node_build_flavour: 'rlpx', beacon_node_cont_name: 'beacon-node-{{ beacon_node_build_flavour }}-{{ beacon_node_network}}-{{ item }}'
beacon_node_total_nodes: 5,
beacon_node_running_nodes: 2, - include_role:
beacon_node_discovery_port: 9100, name: infra-role-beacon-node
beacon_node_listening_port: 9100 } 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 - name: Configure Nimbus cluster
hosts: nimbus-slaves hosts: nimbus-slaves
roles: tasks:
- { role: infra-role-beacon-node, - include_role:
beacon_node_network: 'testnet0', name: infra-role-beacon-node
beacon_node_build_flavour: 'rlpx', with_sequence: count=2
beacon_node_total_nodes: 2, vars:
beacon_node_running_nodes: 2, beacon_node_network: 'testnet0'
beacon_node_discovery_port: 9000, beacon_node_public_tcp_port: '{{ 9000 + item|int }}'
beacon_node_listening_port: 9000 } beacon_node_public_udp_port: '{{ 9000 + item|int }}'
- { role: infra-role-beacon-node, beacon_node_cont_name: 'beacon-node-{{ beacon_node_build_flavour }}-{{ beacon_node_network}}-{{ item }}'
beacon_node_network: 'testnet1',
beacon_node_build_flavour: 'rlpx', - include_role:
beacon_node_total_nodes: 10, name: infra-role-beacon-node
beacon_node_running_nodes: 2, with_sequence: count=2
beacon_node_discovery_port: 9100, vars:
beacon_node_listening_port: 9100 } 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 }}'