2019-03-21 13:14:11 +01:00
|
|
|
---
|
2019-11-04 15:55:29 +01: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 16:50:30 +01:00
|
|
|
- name: Configure Nimbus master
|
2019-11-04 01:04:03 +01:00
|
|
|
hosts:
|
|
|
|
- nimbus-master
|
2019-03-22 16:50:30 +01:00
|
|
|
roles:
|
2019-11-12 23:45:58 +01:00
|
|
|
- { role: origin-certs, tags: origin-certs }
|
2019-04-17 19:25:11 +02:00
|
|
|
- { role: nimbus-stats, tags: nimbus-stats }
|
2019-03-21 13:27:16 +01:00
|
|
|
|
2019-03-21 13:14:11 +01:00
|
|
|
- name: Configure Nimbus cluster
|
2019-11-01 16:37:05 +01:00
|
|
|
hosts:
|
|
|
|
- nimbus-master
|
|
|
|
- nimbus-slaves
|
2019-11-04 13:55:38 +01:00
|
|
|
tags: beacon-node
|
2019-05-09 18:18:46 +02:00
|
|
|
tasks:
|
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node
|
2019-11-04 01:04:03 +01:00
|
|
|
tags: beacon-node
|
2019-05-09 18:18:46 +02:00
|
|
|
with_sequence: count=2
|
|
|
|
vars:
|
|
|
|
beacon_node_network: 'testnet0'
|
2019-10-29 17:28:32 +01:00
|
|
|
beacon_node_metrics_port : '{{ 9200 - 1 + item|int }}'
|
2019-11-01 16:07:36 +01:00
|
|
|
beacon_node_listening_port: '{{ 9000 - 1 + item|int }}'
|
|
|
|
beacon_node_discovery_port: '{{ 9000 - 1 + item|int }}'
|
2019-06-21 10:46:45 -04:00
|
|
|
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}'
|
2019-05-09 18:18:46 +02:00
|
|
|
|
|
|
|
- include_role:
|
|
|
|
name: infra-role-beacon-node
|
2019-11-04 01:04:03 +01:00
|
|
|
tags: beacon-node
|
2019-05-09 18:18:46 +02:00
|
|
|
with_sequence: count=2
|
|
|
|
vars:
|
|
|
|
beacon_node_network: 'testnet1'
|
2019-10-29 17:31:27 +01:00
|
|
|
beacon_node_metrics_port : '{{ 9300 - 1 + item|int }}'
|
2019-11-01 16:07:36 +01:00
|
|
|
beacon_node_listening_port: '{{ 9100 - 1 + item|int }}'
|
|
|
|
beacon_node_discovery_port: '{{ 9100 - 1 + item|int }}'
|
2019-06-21 10:46:45 -04:00
|
|
|
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}'
|