2019-03-21 12:14:11 +00:00
|
|
|
---
|
2019-11-04 14:55:29 +00:00
|
|
|
- name: Pre-playbook checks
|
|
|
|
hosts: localhost
|
|
|
|
tasks:
|
|
|
|
- name: 'Verify Ansible version is 2.8 or newer'
|
|
|
|
assert:
|
|
|
|
that: 'ansible_version.full is version_compare("2.8", ">=")'
|
|
|
|
msg: 'Your Ansible version is lower than 2.8. Upgrade it.'
|
|
|
|
|
2019-03-22 15:50:30 +00:00
|
|
|
- name: Configure Nimbus master
|
2019-11-04 00:04:03 +00:00
|
|
|
hosts:
|
|
|
|
- nimbus-master
|
2019-03-22 15:50:30 +00:00
|
|
|
roles:
|
2020-02-19 10:51:09 +00:00
|
|
|
- { role: origin-certs, tags: origin-certs }
|
2020-06-10 10:35:30 +00:00
|
|
|
#- { role: nimbus-stats, tags: nimbus-stats }
|
2019-03-21 12:27:16 +00:00
|
|
|
|
2019-03-21 12:14:11 +00:00
|
|
|
- name: Configure Nimbus cluster
|
2019-11-01 15:37:05 +00:00
|
|
|
hosts:
|
|
|
|
- nimbus-master
|
2020-06-26 20:37:59 +00:00
|
|
|
- nimbus-slaves[0:4]
|
2019-11-04 12:55:38 +00:00
|
|
|
tags: beacon-node
|
2019-05-09 16:18:46 +00:00
|
|
|
tasks:
|
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node
|
2019-11-04 00:04:03 +00:00
|
|
|
tags: beacon-node
|
2020-06-26 20:37:59 +00:00
|
|
|
with_sequence: count=1
|
2019-05-09 16:18:46 +00:00
|
|
|
vars:
|
|
|
|
beacon_node_network: 'testnet0'
|
2020-03-23 18:39:45 +00:00
|
|
|
beacon_node_rpc_port: '{{ 10000 - 1 + item|int }}'
|
2019-10-29 16:28:32 +00:00
|
|
|
beacon_node_metrics_port : '{{ 9200 - 1 + item|int }}'
|
2019-11-01 15:07:36 +00:00
|
|
|
beacon_node_listening_port: '{{ 9000 - 1 + item|int }}'
|
|
|
|
beacon_node_discovery_port: '{{ 9000 - 1 + item|int }}'
|
2019-06-21 14:46:45 +00:00
|
|
|
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}'
|
2019-05-09 16:18:46 +00:00
|
|
|
|
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node
|
2019-11-04 00:04:03 +00:00
|
|
|
tags: beacon-node
|
2020-06-26 20:37:59 +00:00
|
|
|
with_sequence: count=1
|
2019-05-09 16:18:46 +00:00
|
|
|
vars:
|
|
|
|
beacon_node_network: 'testnet1'
|
2020-03-23 18:39:45 +00:00
|
|
|
beacon_node_rpc_port: '{{ 11000 - 1 + item|int }}'
|
2019-10-29 16:31:27 +00:00
|
|
|
beacon_node_metrics_port : '{{ 9300 - 1 + item|int }}'
|
2019-11-01 15:07:36 +00:00
|
|
|
beacon_node_listening_port: '{{ 9100 - 1 + item|int }}'
|
|
|
|
beacon_node_discovery_port: '{{ 9100 - 1 + item|int }}'
|
2019-06-21 14:46:45 +00:00
|
|
|
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}'
|
2020-06-26 20:37:59 +00:00
|
|
|
|
|
|
|
- name: Configure shared testnet
|
|
|
|
hosts:
|
|
|
|
- nimbus-slaves[5:8]
|
|
|
|
tags: beacon-node
|
|
|
|
tasks:
|
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node
|
|
|
|
tags: beacon-node
|
|
|
|
with_sequence: count=1
|
|
|
|
vars:
|
|
|
|
beacon_node_network: 'testnet2'
|
|
|
|
beacon_node_rpc_port: '{{ 11000 - 1 + item|int }}'
|
|
|
|
beacon_node_metrics_port : '{{ 9300 - 1 + item|int }}'
|
|
|
|
beacon_node_listening_port: '{{ 9100 - 1 + item|int }}'
|
|
|
|
beacon_node_discovery_port: '{{ 9100 - 1 + item|int }}'
|
|
|
|
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}'
|
2020-06-30 22:07:33 +00:00
|
|
|
beacon_node_shared_testnet_cron: true
|
2020-07-06 21:22:23 +00:00
|
|
|
cont_restart: true
|
2020-06-30 22:07:33 +00:00
|
|
|
|