Add hetzner dedicated server (#56)

add stable-metal-01.he-eu-hel1.nimbus.mainnet

Signed-off-by: Arthur Koziel <arthur@arthurkoziel.com>
This commit is contained in:
Arthur Koziel 2021-05-19 18:04:12 +08:00 committed by GitHub
parent 04648b6465
commit fb2ab82f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 50 additions and 2 deletions

View File

@ -0,0 +1,9 @@
---
beacon_node_network: 'mainnet'
beacon_node_cont_tag: 'stable-metal-01'
# WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged.
#beacon_node_netkey: '{{lookup("passwordstore","services/Nimbus/netkey/"+hostname)}}'
# Bootnodes should subscribe to all subnets
beacon_node_subscribe_all: true

View File

@ -0,0 +1,11 @@
---
# Docker image builds
beacon_node_builds_docker_hub_user: '{{lookup("passwordstore", "cloud/DockerHub/user")}}'
beacon_node_builds_docker_hub_token: '{{lookup("passwordstore", "cloud/DockerHub/token")}}'
# The -small suffix is because of native compilation
beacon_node_builds_branches:
- name: 'stable-metal-01'
version: 'stable'
targets: ['nimbus_beacon_node', 'nimbus_signing_process']
frequency: '*-*-* 12:00:00'

View File

@ -14,6 +14,7 @@ stable-large-02.aws-eu-central-1a.nimbus.prater hostname=stable-large-02.aws-eu-
stable-large-03.aws-eu-central-1a.nimbus.prater hostname=stable-large-03.aws-eu-central-1a.nimbus.prater ansible_host=3.64.72.159 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-large-03.aws-eu-central-1a.nimbus.prater.statusim.net stable-large-03.aws-eu-central-1a.nimbus.prater hostname=stable-large-03.aws-eu-central-1a.nimbus.prater ansible_host=3.64.72.159 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-large-03.aws-eu-central-1a.nimbus.prater.statusim.net
stable-large-04.aws-eu-central-1a.nimbus.prater hostname=stable-large-04.aws-eu-central-1a.nimbus.prater ansible_host=3.65.240.81 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-large-04.aws-eu-central-1a.nimbus.prater.statusim.net stable-large-04.aws-eu-central-1a.nimbus.prater hostname=stable-large-04.aws-eu-central-1a.nimbus.prater ansible_host=3.65.240.81 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-large-04.aws-eu-central-1a.nimbus.prater.statusim.net
stable-large-05.aws-eu-central-1a.nimbus.prater hostname=stable-large-05.aws-eu-central-1a.nimbus.prater ansible_host=18.158.95.252 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-large-05.aws-eu-central-1a.nimbus.prater.statusim.net stable-large-05.aws-eu-central-1a.nimbus.prater hostname=stable-large-05.aws-eu-central-1a.nimbus.prater ansible_host=18.158.95.252 env=nimbus stage=prater data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-large-05.aws-eu-central-1a.nimbus.prater.statusim.net
stable-metal-01.he-eu-hel1.nimbus.mainnet hostname=stable-metal-01.he-eu-hel1.nimbus.mainnet ansible_host=65.21.73.183 env=nimbus stage=mainnet data_center=he-eu-hel1 region=eu-hel1 dns_entry=stable-metal-01.he-eu-hel1.nimbus.mainnet.statusim.net
stable-small-01.aws-eu-central-1a.nimbus.mainnet hostname=stable-small-01.aws-eu-central-1a.nimbus.mainnet ansible_host=3.120.104.18 env=nimbus stage=mainnet data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-small-01.aws-eu-central-1a.nimbus.mainnet.statusim.net stable-small-01.aws-eu-central-1a.nimbus.mainnet hostname=stable-small-01.aws-eu-central-1a.nimbus.mainnet ansible_host=3.120.104.18 env=nimbus stage=mainnet data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-small-01.aws-eu-central-1a.nimbus.mainnet.statusim.net
stable-small-01.aws-eu-central-1a.nimbus.pyrmont hostname=stable-small-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.64.67.28 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-small-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net stable-small-01.aws-eu-central-1a.nimbus.pyrmont hostname=stable-small-01.aws-eu-central-1a.nimbus.pyrmont ansible_host=3.64.67.28 env=nimbus stage=pyrmont data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-small-01.aws-eu-central-1a.nimbus.pyrmont.statusim.net
stable-small-02.aws-eu-central-1a.nimbus.mainnet hostname=stable-small-02.aws-eu-central-1a.nimbus.mainnet ansible_host=3.64.117.223 env=nimbus stage=mainnet data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-small-02.aws-eu-central-1a.nimbus.mainnet.statusim.net stable-small-02.aws-eu-central-1a.nimbus.mainnet hostname=stable-small-02.aws-eu-central-1a.nimbus.mainnet ansible_host=3.64.117.223 env=nimbus stage=mainnet data_center=aws-eu-central-1a region=eu-central-1a dns_entry=stable-small-02.aws-eu-central-1a.nimbus.mainnet.statusim.net
@ -87,6 +88,9 @@ unstable-small-04.aws-eu-central-1a.nimbus.pyrmont
[dash.nimbus] [dash.nimbus]
node-01.aws-eu-central-1a.dash.nimbus node-01.aws-eu-central-1a.dash.nimbus
[he-eu-hel1]
stable-metal-01.he-eu-hel1.nimbus.mainnet
[log-dash] [log-dash]
node-01.aws-eu-central-1a.dash.nimbus node-01.aws-eu-central-1a.dash.nimbus
@ -106,6 +110,9 @@ goerli-01.aws-eu-central-1a.nimbus.geth
[nimbus-geth-mainnet] [nimbus-geth-mainnet]
mainnet-01.aws-eu-central-1a.nimbus.geth mainnet-01.aws-eu-central-1a.nimbus.geth
[nimbus-mainnet-metal]
stable-metal-01.he-eu-hel1.nimbus.mainnet
[nimbus-mainnet-small] [nimbus-mainnet-small]
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
@ -167,6 +174,7 @@ goerli-01.aws-eu-central-1a.nimbus.geth
mainnet-01.aws-eu-central-1a.nimbus.geth mainnet-01.aws-eu-central-1a.nimbus.geth
[nimbus.mainnet] [nimbus.mainnet]
stable-metal-01.he-eu-hel1.nimbus.mainnet
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

View File

@ -9,6 +9,13 @@
- local_action: command ./versioncheck.py - local_action: command ./versioncheck.py
changed_when: false changed_when: false
- name: Configure build nodes
become: true
hosts:
- stable-metal-01.he-eu-hel1.nimbus.mainnet
roles:
- { role: beacon-node-builds, tags: beacon-node-builds }
- name: Configure network mainnet bootnodes - name: Configure network mainnet bootnodes
become: true become: true
hosts: 'nimbus.mainnet' hosts: 'nimbus.mainnet'

View File

@ -25,3 +25,17 @@ module "nimbus_nodes_mainnet_stable_small" {
secgroup_id = module.nimbus_network.secgroup.id secgroup_id = module.nimbus_network.secgroup.id
keypair_name = aws_key_pair.jakubgs.key_name keypair_name = aws_key_pair.jakubgs.key_name
} }
module "nimbus_nodes_mainnet_stable_hetzner" {
source = "./modules/hetzner"
name = "stable-metal"
env = "nimbus"
stage = "mainnet"
group = "nimbus-mainnet-metal"
domain = var.domain
ips = [
"65.21.73.183"
]
}

View File

@ -24,10 +24,9 @@ locals {
resource "ansible_host" "host" { resource "ansible_host" "host" {
for_each = local.hostnames for_each = local.hostnames
inventory_hostname = each.value inventory_hostname = each.value
groups = [var.group, local.dc] groups = [var.group, local.dc, "${var.env}.${local.stage}"]
vars = { vars = {
ansible_host = each.key ansible_host = each.key
ansible_ssh_user = var.ssh_user
hostname = each.value hostname = each.value
region = var.region region = var.region
dns_domain = var.domain dns_domain = var.domain