infra-nimbus/ansible/nimbus.yml

52 lines
1.6 KiB
YAML
Raw Normal View History

---
- 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.'
- name: Configure Nimbus master
hosts:
- nimbus-master
roles:
- { role: origin-certs, tags: [ origin-certs ] }
#- { role: nimbus-stats, tags: nimbus-stats }
2020-08-04 10:45:57 +00:00
- name: Configure shared testnet3
hosts:
- nimbus-master
- nimbus-slaves[0:4]
vars:
beacon_node_network: 'testnet3'
beacon_node_shared_testnet: 'medalla'
beacon_node_rpc_port: '11000'
beacon_node_metrics_port : '9300'
beacon_node_listening_port: '9100'
beacon_node_discovery_port: '9100'
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network }}'
beacon_node_timer_rebuild: true
cont_restart: true
roles:
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- { role: network-debug-script, tags: [ network-debug-script ] }
- name: Configure seared testnet2
hosts:
- nimbus-slaves[5:8]
tags: beacon-node
vars:
beacon_node_network: 'testnet2'
beacon_node_shared_testnet: 'altona'
beacon_node_rpc_port: '11000'
beacon_node_metrics_port : '9300'
beacon_node_listening_port: '9100'
beacon_node_discovery_port: '9100'
beacon_node_cont_name: 'beacon-node-{{ beacon_node_network }}'
beacon_node_timer_rebuild: true
cont_restart: true
roles:
- { role: infra-role-beacon-node, tags: [ infra-role-beacon-node, beacon-node ] }
- { role: network-debug-script, tags: [ network-debug-script ] }