2021-03-18 04:59:45 +00:00
|
|
|
---
|
2021-05-10 13:29:38 +00:00
|
|
|
- name: Verify Ansible versions
|
2021-04-09 06:18:59 +00:00
|
|
|
hosts: all
|
|
|
|
tags: always
|
2021-05-10 13:29:38 +00:00
|
|
|
become: false
|
|
|
|
run_once: true
|
2021-04-09 06:18:59 +00:00
|
|
|
gather_facts: false
|
2021-03-18 04:59:45 +00:00
|
|
|
tasks:
|
2021-04-09 06:18:59 +00:00
|
|
|
- local_action: command ./versioncheck.py
|
|
|
|
changed_when: false
|
2021-03-18 04:59:45 +00:00
|
|
|
|
2021-06-16 13:41:50 +00:00
|
|
|
- name: Deploy prater Linux beacon nodes
|
2021-03-18 04:59:45 +00:00
|
|
|
become: true
|
|
|
|
# To avoid clashing/duplicate validators.
|
|
|
|
any_errors_fatal: true
|
2021-06-10 16:09:05 +00:00
|
|
|
hosts:
|
|
|
|
- nimbus-prater-stable
|
|
|
|
- nimbus-prater-testing
|
|
|
|
- nimbus-prater-unstable
|
2021-08-11 17:54:36 +00:00
|
|
|
- nimbus-prater-unstable-libp2p-stable
|
|
|
|
- nimbus-prater-unstable-libp2p-unstable
|
2021-03-18 04:59:45 +00:00
|
|
|
roles:
|
2021-06-16 13:41:50 +00:00
|
|
|
- role: get-geth-web3-urls
|
|
|
|
tags: get-geth-web3-urls
|
2021-09-29 17:16:09 +00:00
|
|
|
- role: infra-role-beacon-node-linux
|
2021-08-11 17:54:36 +00:00
|
|
|
tags: beacon-node
|
2021-06-10 16:09:05 +00:00
|
|
|
|
2021-06-28 18:03:29 +00:00
|
|
|
- name: Deploy mainnet linux beacon nodes
|
|
|
|
become: true
|
|
|
|
hosts: nimbus-prater-metal
|
|
|
|
roles:
|
2021-10-04 14:54:43 +00:00
|
|
|
- { role: redirect-ports, tags: [ redirect-ports ] }
|
2021-08-11 17:54:36 +00:00
|
|
|
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
|
2021-06-28 18:03:29 +00:00
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-linux
|
2021-08-11 17:54:36 +00:00
|
|
|
tags: beacon-node
|
2021-06-28 18:03:29 +00:00
|
|
|
vars:
|
2021-09-02 06:14:34 +00:00
|
|
|
# TEMPORARY switch for Prater Altair transition
|
2021-10-04 14:54:43 +00:00
|
|
|
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}-{{ "%02d"|format(node.idx) }}'
|
2021-09-22 13:52:41 +00:00
|
|
|
beacon_node_repo_branch: "unstable"
|
2021-09-21 18:46:38 +00:00
|
|
|
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
|
2021-10-04 14:54:43 +00:00
|
|
|
beacon_node_build_frequency: '{{ node.build_freq }}'
|
2021-06-28 18:03:29 +00:00
|
|
|
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
|
|
|
|
beacon_node_listening_port: '{{ 9000 + port_offset }}'
|
|
|
|
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
|
2021-08-23 14:46:05 +00:00
|
|
|
beacon_node_rest_port: '{{ 9300 + port_offset }}'
|
2021-06-28 18:03:29 +00:00
|
|
|
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
|
2021-10-04 14:54:43 +00:00
|
|
|
beacon_node_dist_validators_enabled: '{{ node.start is defined and node.end is defined }}'
|
2021-06-30 20:48:36 +00:00
|
|
|
beacon_node_dist_validators_start: '{{ node.start }}'
|
|
|
|
beacon_node_dist_validators_end: '{{ node.end }}'
|
2021-06-28 18:03:29 +00:00
|
|
|
with_items:
|
2021-10-04 14:54:43 +00:00
|
|
|
- { branch: 'stable', idx: 1, start: 10000, end: 12500, build_freq: '*-*-* 12:00:00' }
|
|
|
|
- { branch: 'stable', idx: 2, build_freq: '*-*-* 13:00:00' }
|
|
|
|
- { branch: 'testing', idx: 1, start: 22500, end: 25000, build_freq: '*-*-* 14:00:00' }
|
|
|
|
- { branch: 'testing', idx: 2, build_freq: '*-*-* 15:00:00' }
|
|
|
|
- { branch: 'unstable', idx: 1, start: 35000, end: 37500, build_freq: '*-*-* 16:00:00' }
|
|
|
|
- { branch: 'unstable', idx: 2, build_freq: '*-*-* 17:00:00' }
|
2021-06-28 18:03:29 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: port_offset
|
|
|
|
|
2021-06-16 13:41:50 +00:00
|
|
|
- name: Deploy prater Windows beacon nodes
|
2021-06-10 16:09:05 +00:00
|
|
|
become: true
|
2021-06-28 18:03:29 +00:00
|
|
|
hosts: nimbus-prater-windows
|
2021-07-14 12:59:40 +00:00
|
|
|
fact_path: 'C:/ansible/facts.d'
|
2021-06-16 13:41:50 +00:00
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-windows
|
2021-08-11 17:54:36 +00:00
|
|
|
tags: beacon-node
|
2021-06-16 13:41:50 +00:00
|
|
|
vars:
|
2021-09-02 06:14:34 +00:00
|
|
|
# TEMPORARY switch for Prater Altair transition
|
|
|
|
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}'
|
|
|
|
beacon_node_repo_branch: 'unstable'
|
2021-07-19 14:45:05 +00:00
|
|
|
beacon_node_build_start_time: '{{ node.build_start }}'
|
2021-06-16 13:41:50 +00:00
|
|
|
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
|
|
|
|
beacon_node_listening_port: '{{ 9000 + port_offset }}'
|
|
|
|
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
|
2021-08-23 14:46:05 +00:00
|
|
|
beacon_node_rest_port: '{{ 9300 + port_offset }}'
|
2021-06-16 13:41:50 +00:00
|
|
|
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
|
2021-07-19 14:45:05 +00:00
|
|
|
beacon_node_dist_validators_start: '{{ node.start }}'
|
|
|
|
beacon_node_dist_validators_end: '{{ node.end }}'
|
|
|
|
beacon_node_log_level: 'INFO'
|
2021-06-16 13:41:50 +00:00
|
|
|
with_items:
|
2021-07-19 14:45:05 +00:00
|
|
|
- { branch: 'stable', start: 7500, end: 10000, build_start: '13:00:00' }
|
|
|
|
- { branch: 'unstable', start: 20000, end: 22500, build_start: '15:00:00' }
|
|
|
|
- { branch: 'testing', start: 32500, end: 35000, build_start: '17:00:00' }
|
2021-06-16 13:41:50 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: port_offset
|
2021-09-21 18:46:38 +00:00
|
|
|
|
2021-09-24 10:28:25 +00:00
|
|
|
- name: Deploy prater macOS beacon nodes
|
|
|
|
become: true
|
|
|
|
hosts: nimbus-prater-macos
|
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-macos
|
|
|
|
tags: [ beacon-node, infra-role-beacon-node-macos ]
|
|
|
|
vars:
|
|
|
|
beacon_node_repo_branch: '{{ node.branch }}'
|
|
|
|
beacon_node_build_frequency: '{{ node.build_frequency }}'
|
2021-09-29 17:16:09 +00:00
|
|
|
beacon_node_build_start_time: '{{ node.build_start }}'
|
2021-09-24 10:28:25 +00:00
|
|
|
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
|
|
|
|
beacon_node_listening_port: '{{ 9000 + port_offset }}'
|
|
|
|
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
|
|
|
|
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
|
|
|
|
beacon_node_dist_validators_enabled: false
|
|
|
|
beacon_node_dist_validators_start: '{{ node.start }}'
|
|
|
|
beacon_node_dist_validators_end: '{{ node.end }}'
|
|
|
|
with_items:
|
2021-09-29 17:16:09 +00:00
|
|
|
- { branch: 'stable', start: 0, end: 0, build_start: {'hour': '12', 'minute': '00'} }
|
|
|
|
- { branch: 'testing', start: 0, end: 0, build_start: {'hour': '14', 'minute': '00'} }
|
|
|
|
- { branch: 'unstable', start: 0, end: 0, build_start: {'hour': '16', 'minute': '00'} }
|
2021-09-24 10:28:25 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: port_offset
|