add macos beacon nodes

Signed-off-by: Arthur Koziel <arthur@arthurkoziel.com>
This commit is contained in:
Arthur Koziel 2021-09-24 18:28:25 +08:00 committed by Jakub
parent e2eb049cbb
commit 7f80f68804
9 changed files with 70 additions and 1 deletions

View File

@ -0,0 +1,17 @@
---
- name: Verify Ansible versions
hosts: all
tags: always
become: false
run_once: true
gather_facts: false
tasks:
- local_action: command ./versioncheck.py
changed_when: false
- name: Bootstrap macOS hosts
become: true
remote_user: administrator
hosts: all
roles:
- infra-role-bootstrap-macos

View File

@ -2,6 +2,7 @@
# For emergency use when Consul fails # For emergency use when Consul fails
[all] [all]
goerli-01.aws-eu-central-1a.nimbus.geth hostname=goerli-01.aws-eu-central-1a.nimbus.geth ansible_host=18.194.109.141 env=nimbus stage=geth data_center=aws-eu-central-1a region=eu-central-1a dns_entry=goerli-01.aws-eu-central-1a.nimbus.geth.statusim.net goerli-01.aws-eu-central-1a.nimbus.geth hostname=goerli-01.aws-eu-central-1a.nimbus.geth ansible_host=18.194.109.141 env=nimbus stage=geth data_center=aws-eu-central-1a region=eu-central-1a dns_entry=goerli-01.aws-eu-central-1a.nimbus.geth.statusim.net
macos-01.ms-eu-dublin.nimbus.prater hostname=macos-01.ms-eu-dublin.nimbus.prater ansible_host=207.254.102.130 env=nimbus stage=prater data_center=ms-eu-dublin region=eu-dublin dns_entry=macos-01.ms-eu-dublin.nimbus.prater.statusim.net
mainnet-01.aws-eu-central-1a.nimbus.geth hostname=mainnet-01.aws-eu-central-1a.nimbus.geth ansible_host=18.196.208.138 env=nimbus stage=geth data_center=aws-eu-central-1a region=eu-central-1a dns_entry=mainnet-01.aws-eu-central-1a.nimbus.geth.statusim.net mainnet-01.aws-eu-central-1a.nimbus.geth hostname=mainnet-01.aws-eu-central-1a.nimbus.geth ansible_host=18.196.208.138 env=nimbus stage=geth data_center=aws-eu-central-1a region=eu-central-1a dns_entry=mainnet-01.aws-eu-central-1a.nimbus.geth.statusim.net
metal-01.he-eu-hel1.nimbus.eth1 hostname=metal-01.he-eu-hel1.nimbus.eth1 ansible_host=65.21.230.244 env=nimbus stage=eth1 data_center=he-eu-hel1 region=eu-hel1 dns_entry=metal-01.he-eu-hel1.nimbus.eth1.statusim.net metal-01.he-eu-hel1.nimbus.eth1 hostname=metal-01.he-eu-hel1.nimbus.eth1 ansible_host=65.21.230.244 env=nimbus stage=eth1 data_center=he-eu-hel1 region=eu-hel1 dns_entry=metal-01.he-eu-hel1.nimbus.eth1.statusim.net
metal-01.he-eu-hel1.nimbus.prater hostname=metal-01.he-eu-hel1.nimbus.prater ansible_host=65.21.73.183 env=nimbus stage=prater data_center=he-eu-hel1 region=eu-hel1 dns_entry=metal-01.he-eu-hel1.nimbus.prater.statusim.net metal-01.he-eu-hel1.nimbus.prater hostname=metal-01.he-eu-hel1.nimbus.prater ansible_host=65.21.73.183 env=nimbus stage=prater data_center=he-eu-hel1 region=eu-hel1 dns_entry=metal-01.he-eu-hel1.nimbus.prater.statusim.net
@ -76,6 +77,9 @@ node-01.aws-eu-central-1a.log-store.nimbus
node-02.aws-eu-central-1a.log-store.nimbus node-02.aws-eu-central-1a.log-store.nimbus
node-03.aws-eu-central-1a.log-store.nimbus node-03.aws-eu-central-1a.log-store.nimbus
[ms-eu-dublin]
macos-01.ms-eu-dublin.nimbus.prater
[nimbus-eth1-metal] [nimbus-eth1-metal]
metal-01.he-eu-hel1.nimbus.eth1 metal-01.he-eu-hel1.nimbus.eth1
@ -89,6 +93,9 @@ mainnet-01.aws-eu-central-1a.nimbus.geth
stable-small-01.aws-eu-central-1a.nimbus.mainnet stable-small-01.aws-eu-central-1a.nimbus.mainnet
stable-small-02.aws-eu-central-1a.nimbus.mainnet stable-small-02.aws-eu-central-1a.nimbus.mainnet
[nimbus-prater-macos]
macos-01.ms-eu-dublin.nimbus.prater
[nimbus-prater-metal] [nimbus-prater-metal]
metal-01.he-eu-hel1.nimbus.prater metal-01.he-eu-hel1.nimbus.prater
@ -134,6 +141,7 @@ stable-small-01.aws-eu-central-1a.nimbus.mainnet
stable-small-02.aws-eu-central-1a.nimbus.mainnet stable-small-02.aws-eu-central-1a.nimbus.mainnet
[nimbus.prater] [nimbus.prater]
macos-01.ms-eu-dublin.nimbus.prater
metal-01.he-eu-hel1.nimbus.prater metal-01.he-eu-hel1.nimbus.prater
stable-large-01.aws-eu-central-1a.nimbus.prater stable-large-01.aws-eu-central-1a.nimbus.prater
stable-large-02.aws-eu-central-1a.nimbus.prater stable-large-02.aws-eu-central-1a.nimbus.prater

View File

@ -92,3 +92,28 @@
tags: swap-file tags: swap-file
- role: beacon-node-builds - role: beacon-node-builds
tags: beacon-node-builds tags: beacon-node-builds
- name: Deploy prater macOS beacon nodes
become: true
remote_user: administrator
hosts: nimbus-prater-macos
tasks:
- include_role: name=infra-role-beacon-node-macos
tags: [ beacon-node, infra-role-beacon-node-macos ]
vars:
beacon_node_repo_branch: '{{ node.branch }}'
beacon_node_build_frequency: '{{ node.build_frequency }}'
beacon_node_discovery_port: '{{ 9000 + port_offset }}'
beacon_node_listening_port: '{{ 9000 + port_offset }}'
beacon_node_metrics_port: '{{ 9200 + port_offset }}'
beacon_node_rpc_port: '{{ 9900 + port_offset }}'
beacon_node_dist_validators_enabled: false
beacon_node_dist_validators_start: '{{ node.start }}'
beacon_node_dist_validators_end: '{{ node.end }}'
with_items:
- { branch: 'stable', start: 0, end: 0, beacon_node_build_start_time: {'hour': '12', 'minute': '00'} }
- { branch: 'testing', start: 0, end: 0, beacon_node_build_start_time: {'hour': '14', 'minute': '00'} }
- { branch: 'unstable', start: 0, end: 0, beacon_node_build_start_time: {'hour': '16', 'minute': '00'} }
loop_control:
loop_var: node
index_var: port_offset

View File

@ -54,6 +54,11 @@
version: 02074ceeda0694ad9c36d1eca034b3a3cf9a9f19 version: 02074ceeda0694ad9c36d1eca034b3a3cf9a9f19
scm: git scm: git
- name: infra-role-beacon-node-macos
src: git@github.com:status-im/infra-role-beacon-node-macos.git
version: bf9a8130d9173bad7dd9026261434d2f182cea0e
scm: git
- name: infra-role-dist-validators - name: infra-role-dist-validators
src: git@github.com:status-im/infra-role-dist-validators.git src: git@github.com:status-im/infra-role-dist-validators.git
version: 1ec52b38e36cd1af939317ea51bbd74984986725 version: 1ec52b38e36cd1af939317ea51bbd74984986725

View File

@ -174,7 +174,7 @@ module "nimbus_nodes_prater_unstable_windows" {
} }
module "nimbus_nodes_prater_hetzner" { module "nimbus_nodes_prater_hetzner" {
source = "./modules/hetzner" source = "./modules/dummy-module"
name = "metal" name = "metal"
env = "nimbus" env = "nimbus"
@ -184,3 +184,17 @@ module "nimbus_nodes_prater_hetzner" {
ips = ["65.21.73.183"] ips = ["65.21.73.183"]
} }
module "nimbus_nodes_prater_macos" {
source = "./modules/dummy-module"
name = "macos"
env = "nimbus"
stage = "prater"
group = "nimbus-prater-macos"
region = "eu-dublin"
provider_name = "ms"
domain = var.domain
ips = ["207.254.102.130"]
}