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
|
|
|
|
2022-09-06 17:26:25 +00:00
|
|
|
- name: Deploy prater AWS Linux nodes
|
2021-03-18 04:59:45 +00:00
|
|
|
become: true
|
|
|
|
# To avoid clashing/duplicate validators.
|
|
|
|
any_errors_fatal: true
|
2022-06-14 09:40:18 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2023-11-21 15:32:29 +00:00
|
|
|
vars_files: layout/prater.yml
|
2021-06-10 16:09:05 +00:00
|
|
|
hosts:
|
|
|
|
- nimbus-prater-stable
|
|
|
|
- nimbus-prater-testing
|
|
|
|
- nimbus-prater-unstable
|
2021-03-18 04:59:45 +00:00
|
|
|
roles:
|
2022-08-16 16:01:55 +00:00
|
|
|
- { role: open-ports, tags: open-ports }
|
2021-12-02 12:10:06 +00:00
|
|
|
- { role: get-geth-api-urls, tags: get-geth-api-urls }
|
2021-10-04 19:55:47 +00:00
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-linux
|
|
|
|
tags: [ beacon-node, infra-role-beacon-node-linux ]
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
2022-08-10 14:54:21 +00:00
|
|
|
index_var: idx
|
2021-06-10 16:09:05 +00:00
|
|
|
|
2022-09-06 17:26:25 +00:00
|
|
|
- name: Deploy prater Hetzner linux nodes
|
2021-06-28 18:03:29 +00:00
|
|
|
become: true
|
2022-06-14 09:40:18 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2023-11-21 15:32:29 +00:00
|
|
|
vars_files: layout/prater.yml
|
2021-06-28 18:03:29 +00:00
|
|
|
hosts: nimbus-prater-metal
|
|
|
|
roles:
|
2023-07-12 07:36:05 +00:00
|
|
|
- { role: swap-file, tags: [ swap-file ] }
|
2023-04-06 14:39:31 +00:00
|
|
|
- { role: open-ports, tags: [ open-ports ] }
|
|
|
|
- { role: smart-metrics, tags: [ smart-metrics ] }
|
|
|
|
- { role: redirect-ports, tags: [ redirect-ports ] }
|
|
|
|
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
|
2021-06-28 18:03:29 +00:00
|
|
|
tasks:
|
2023-08-07 21:05:33 +00:00
|
|
|
- include_role: name=infra-role-nethermind
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
when: node.get('nethermind', false)
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2022-08-31 17:57:27 +00:00
|
|
|
- include_role: name=infra-role-geth
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
|
|
|
- include_role: name=infra-role-geth-exporter
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2021-06-28 18:03:29 +00:00
|
|
|
- include_role: name=infra-role-beacon-node-linux
|
2021-10-04 19:55:47 +00:00
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
2022-09-06 17:26:25 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2022-10-11 11:39:59 +00:00
|
|
|
- include_role: name=infra-role-validator-client
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
when: validator_client_service_enabled
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
2022-09-06 17:26:25 +00:00
|
|
|
|
|
|
|
- name: Deploy prater Geth nodes for Windows
|
|
|
|
become: true
|
|
|
|
serial: '{{ serial|default(1) }}'
|
2023-11-21 15:32:29 +00:00
|
|
|
vars_files: layout/prater.yml
|
2022-09-06 17:26:25 +00:00
|
|
|
hosts: nimbus-geth-goerli-windows
|
|
|
|
roles:
|
|
|
|
- { role: swap-file, tags: swap-file }
|
|
|
|
- { role: open-ports, tags: open-ports }
|
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-geth
|
|
|
|
tags: [ geth, infra-role-geth ]
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
|
|
|
index_var: idx
|
|
|
|
- include_role: name=infra-role-geth-exporter
|
|
|
|
tags: [ geth-exporter, infra-role-geth-exporter ]
|
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
2021-06-28 18:03:29 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
2022-08-10 14:54:21 +00:00
|
|
|
index_var: idx
|
2021-06-28 18:03:29 +00:00
|
|
|
|
2021-06-16 13:41:50 +00:00
|
|
|
- name: Deploy prater Windows beacon nodes
|
2021-06-10 16:09:05 +00:00
|
|
|
become: true
|
2022-02-28 15:49:37 +00:00
|
|
|
become_user: 'admin'
|
2022-06-14 09:40:18 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2023-11-21 15:32:29 +00:00
|
|
|
vars_files: layout/prater.yml
|
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-10-12 11:52:13 +00:00
|
|
|
roles:
|
2021-12-02 12:10:06 +00:00
|
|
|
- { role: get-geth-api-urls, tags: [ get-geth-api-urls ] }
|
2021-06-16 13:41:50 +00:00
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-windows
|
2021-10-04 19:55:47 +00:00
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
2021-06-16 13:41:50 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
2022-08-10 14:54:21 +00:00
|
|
|
index_var: idx
|
2021-09-21 18:46:38 +00:00
|
|
|
|
2021-09-24 10:28:25 +00:00
|
|
|
- name: Deploy prater macOS beacon nodes
|
|
|
|
become: true
|
2022-06-14 09:40:18 +00:00
|
|
|
serial: '{{ serial|default(1) }}'
|
2023-11-21 15:32:29 +00:00
|
|
|
vars_files: layout/prater.yml
|
2021-09-24 10:28:25 +00:00
|
|
|
hosts: nimbus-prater-macos
|
2021-12-07 17:31:46 +00:00
|
|
|
roles:
|
|
|
|
- { role: get-geth-api-urls, tags: [ get-geth-api-urls ] }
|
2022-12-07 15:27:47 +00:00
|
|
|
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
|
2021-09-24 10:28:25 +00:00
|
|
|
tasks:
|
|
|
|
- include_role: name=infra-role-beacon-node-macos
|
2021-10-04 19:55:47 +00:00
|
|
|
with_items: '{{ nodes_layout[hostname] }}'
|
2021-09-24 10:28:25 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: node
|
2022-08-10 14:54:21 +00:00
|
|
|
index_var: idx
|