2020-11-25 14:58:44 +00:00
|
|
|
---
|
2021-04-09 06:18:59 +00:00
|
|
|
- name: 'Verify Ansible versions'
|
|
|
|
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
|
2020-11-25 14:58:44 +00:00
|
|
|
tasks:
|
2021-04-09 06:18:59 +00:00
|
|
|
- local_action: command ./versioncheck.py
|
|
|
|
changed_when: false
|
2020-11-25 14:58:44 +00:00
|
|
|
|
2021-06-22 09:49:48 +00:00
|
|
|
- name: Configure network mainnet bootnodes
|
2021-05-19 10:04:12 +00:00
|
|
|
become: true
|
2021-06-22 09:49:48 +00:00
|
|
|
hosts: 'nimbus-mainnet-small'
|
2021-10-04 10:07:32 +00:00
|
|
|
vars:
|
|
|
|
# WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged.
|
|
|
|
beacon_node_netkey: '{{lookup("bitwarden", "nimbus/netkey", field=hostname)}}'
|
2021-05-19 10:04:12 +00:00
|
|
|
roles:
|
2021-08-11 17:54:36 +00:00
|
|
|
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
|
|
|
|
- { role: infra-role-beacon-node-linux, tags: [ beacon-node ] }
|
2021-10-04 10:07:32 +00:00
|
|
|
|
|
|
|
- name: Deploy mainnet linux beacon nodes
|
|
|
|
become: true
|
|
|
|
hosts: nimbus-mainnet-metal
|
|
|
|
roles:
|
2021-10-04 11:42:33 +00:00
|
|
|
- { role: redirect-ports, tags: [ redirect-ports ] }
|
2021-10-04 10:07:32 +00:00
|
|
|
- { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] }
|
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-linux
|
|
|
|
tags: beacon-node
|
|
|
|
vars:
|
|
|
|
# TEMPORARY switch for Mainnet Altair transition
|
|
|
|
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}-{{ "%02d"|format(node.idx) }}'
|
|
|
|
beacon_node_repo_branch: 'unstable'
|
|
|
|
beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}'
|
|
|
|
beacon_node_build_frequency: '{{ node.build_frequency }}'
|
2021-10-04 15:53:07 +00:00
|
|
|
beacon_node_open_firewall: '{{ node.open_firewall | default(true) }}'
|
2021-10-04 10:07:32 +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_rest_port: '{{ 9300 + port_offset }}'
|
|
|
|
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
|
|
|
|
with_items:
|
|
|
|
- { branch: 'stable', idx: 1, build_frequency: '*-*-* 12:00:00' }
|
|
|
|
- { branch: 'stable', idx: 2, build_frequency: '*-*-* 13:00:00' }
|
|
|
|
- { branch: 'testing', idx: 1, build_frequency: '*-*-* 14:00:00' }
|
|
|
|
- { branch: 'testing', idx: 2, build_frequency: '*-*-* 15:00:00' }
|
|
|
|
- { branch: 'unstable', idx: 1, build_frequency: '*-*-* 16:00:00' }
|
|
|
|
- { branch: 'unstable', idx: 2, build_frequency: '*-*-* 17:00:00' }
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: port_offset
|