From e3a74537d1dce841763e625c20456d21f3670b08 Mon Sep 17 00:00:00 2001 From: markoburcul Date: Fri, 13 Sep 2024 16:46:02 +0200 Subject: [PATCH] inventory: Apply updated terraform script Update terraform script and apply it to get updated version of ansible inventory file. Referenced issue: https://github.com/status-im/infra-template/issues/10 Signed-off-by: markoburcul --- ansible/inventory/test | 108 ++++++++++++++++++++--------------------- ansible/terraform.py | 9 ++-- 2 files changed, 57 insertions(+), 60 deletions(-) diff --git a/ansible/inventory/test b/ansible/inventory/test index 5fe7408..a0f1d5f 100644 --- a/ansible/inventory/test +++ b/ansible/inventory/test @@ -1,60 +1,60 @@ # NOTE: This file is generated by terraform.py # For emergency use when Consul fails [all] -bench-01.he-eu-hel1.nimbus.eth1 hostname=bench-01.he-eu-hel1.nimbus.eth1 ansible_host=65.21.46.185 env=nimbus stage=eth1 data_center=he-eu-hel1 region=eu-hel1 dns_entry=bench-01.he-eu-hel1.nimbus.eth1.status.im -bench-02.he-eu-hel1.nimbus.eth1 hostname=bench-02.he-eu-hel1.nimbus.eth1 ansible_host=65.21.46.216 env=nimbus stage=eth1 data_center=he-eu-hel1 region=eu-hel1 dns_entry=bench-02.he-eu-hel1.nimbus.eth1.status.im -bootstrap-01.aws-eu-central-1a.nimbus.mainnet hostname=bootstrap-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=bootstrap-01.aws-eu-central-1a.nimbus.mainnet.status.im -bootstrap-02.aws-eu-central-1a.nimbus.mainnet hostname=bootstrap-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=bootstrap-02.aws-eu-central-1a.nimbus.mainnet.status.im -erigon-01.ih-eu-mda1.nimbus.holesky hostname=erigon-01.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.148 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-01.ih-eu-mda1.nimbus.holesky.status.im -erigon-02.ih-eu-mda1.nimbus.holesky hostname=erigon-02.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.149 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-02.ih-eu-mda1.nimbus.holesky.status.im -erigon-03.ih-eu-mda1.nimbus.holesky hostname=erigon-03.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.151 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-03.ih-eu-mda1.nimbus.holesky.status.im -erigon-04.ih-eu-mda1.nimbus.holesky hostname=erigon-04.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.157 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-04.ih-eu-mda1.nimbus.holesky.status.im -erigon-05.ih-eu-mda1.nimbus.holesky hostname=erigon-05.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.241 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-05.ih-eu-mda1.nimbus.holesky.status.im -erigon-06.ih-eu-mda1.nimbus.holesky hostname=erigon-06.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.242 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-06.ih-eu-mda1.nimbus.holesky.status.im -erigon-07.ih-eu-mda1.nimbus.holesky hostname=erigon-07.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.243 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-07.ih-eu-mda1.nimbus.holesky.status.im -erigon-08.ih-eu-mda1.nimbus.holesky hostname=erigon-08.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.244 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-08.ih-eu-mda1.nimbus.holesky.status.im -erigon-09.ih-eu-mda1.nimbus.holesky hostname=erigon-09.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.245 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-09.ih-eu-mda1.nimbus.holesky.status.im -erigon-10.ih-eu-mda1.nimbus.holesky hostname=erigon-10.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.246 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=erigon-10.ih-eu-mda1.nimbus.holesky.status.im -geth-01.ih-eu-mda1.nimbus.holesky hostname=geth-01.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.71 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-01.ih-eu-mda1.nimbus.holesky.status.im -geth-02.ih-eu-mda1.nimbus.holesky hostname=geth-02.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.81 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-02.ih-eu-mda1.nimbus.holesky.status.im -geth-03.ih-eu-mda1.nimbus.holesky hostname=geth-03.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.82 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-03.ih-eu-mda1.nimbus.holesky.status.im -geth-04.ih-eu-mda1.nimbus.holesky hostname=geth-04.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.107 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-04.ih-eu-mda1.nimbus.holesky.status.im -geth-05.ih-eu-mda1.nimbus.holesky hostname=geth-05.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.129 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-05.ih-eu-mda1.nimbus.holesky.status.im -geth-06.ih-eu-mda1.nimbus.holesky hostname=geth-06.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.130 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-06.ih-eu-mda1.nimbus.holesky.status.im -geth-07.ih-eu-mda1.nimbus.holesky hostname=geth-07.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.131 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-07.ih-eu-mda1.nimbus.holesky.status.im -geth-08.ih-eu-mda1.nimbus.holesky hostname=geth-08.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.140 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-08.ih-eu-mda1.nimbus.holesky.status.im -geth-09.ih-eu-mda1.nimbus.holesky hostname=geth-09.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.141 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-09.ih-eu-mda1.nimbus.holesky.status.im -geth-10.ih-eu-mda1.nimbus.holesky hostname=geth-10.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.147 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=geth-10.ih-eu-mda1.nimbus.holesky.status.im -holesky-01.ih-eu-mda1.nimbus.geth hostname=holesky-01.ih-eu-mda1.nimbus.geth ansible_host=194.33.40.232 env=nimbus stage=geth data_center=ih-eu-mda1 region=eu-mda1 dns_entry=holesky-01.ih-eu-mda1.nimbus.geth.status.im -holesky-02.ih-eu-mda1.nimbus.geth hostname=holesky-02.ih-eu-mda1.nimbus.geth ansible_host=194.33.40.233 env=nimbus stage=geth data_center=ih-eu-mda1 region=eu-mda1 dns_entry=holesky-02.ih-eu-mda1.nimbus.geth.status.im -linux-01.ih-eu-mda1.nimbus.mainnet hostname=linux-01.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.70 env=nimbus stage=mainnet data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-01.ih-eu-mda1.nimbus.mainnet.status.im -linux-01.ih-eu-mda1.nimbus.sepolia hostname=linux-01.ih-eu-mda1.nimbus.sepolia ansible_host=185.181.230.77 env=nimbus stage=sepolia data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-01.ih-eu-mda1.nimbus.sepolia.status.im -linux-02.ih-eu-mda1.nimbus.mainnet hostname=linux-02.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.72 env=nimbus stage=mainnet data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-02.ih-eu-mda1.nimbus.mainnet.status.im -linux-03.ih-eu-mda1.nimbus.mainnet hostname=linux-03.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.78 env=nimbus stage=mainnet data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-03.ih-eu-mda1.nimbus.mainnet.status.im -linux-04.ih-eu-mda1.nimbus.mainnet hostname=linux-04.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.99 env=nimbus stage=mainnet data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-04.ih-eu-mda1.nimbus.mainnet.status.im -linux-05.ih-eu-mda1.nimbus.mainnet hostname=linux-05.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.100 env=nimbus stage=mainnet data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-05.ih-eu-mda1.nimbus.mainnet.status.im -linux-06.ih-eu-mda1.nimbus.mainnet hostname=linux-06.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.101 env=nimbus stage=mainnet data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-06.ih-eu-mda1.nimbus.mainnet.status.im -linux-07.ih-eu-mda1.nimbus.mainnet hostname=linux-07.ih-eu-mda1.nimbus.mainnet ansible_host=185.181.229.82 env=nimbus stage=mainnet data_center=ih-eu-mda1 region=eu-mda1 dns_entry=linux-07.ih-eu-mda1.nimbus.mainnet.status.im -macm2-01.ih-eu-mda1.nimbus.holesky hostname=macm2-01.ih-eu-mda1.nimbus.holesky ansible_host=185.181.230.76 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=macm2-01.ih-eu-mda1.nimbus.holesky.status.im -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.status.im -metal-01.ih-eu-mda1.nimbus.eth1 hostname=metal-01.ih-eu-mda1.nimbus.eth1 ansible_host=194.33.40.237 env=nimbus stage=eth1 data_center=ih-eu-mda1 region=eu-mda1 dns_entry=metal-01.ih-eu-mda1.nimbus.eth1.status.im -metal-01.ih-eu-mda1.nimbus.fluffy hostname=metal-01.ih-eu-mda1.nimbus.fluffy ansible_host=194.33.40.238 env=nimbus stage=fluffy data_center=ih-eu-mda1 region=eu-mda1 dns_entry=metal-01.ih-eu-mda1.nimbus.fluffy.status.im -metal-02.ih-eu-mda1.nimbus.fluffy hostname=metal-02.ih-eu-mda1.nimbus.fluffy ansible_host=194.33.40.239 env=nimbus stage=fluffy data_center=ih-eu-mda1 region=eu-mda1 dns_entry=metal-02.ih-eu-mda1.nimbus.fluffy.status.im -neth-01.ih-eu-mda1.nimbus.holesky hostname=neth-01.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.247 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-01.ih-eu-mda1.nimbus.holesky.status.im -neth-02.ih-eu-mda1.nimbus.holesky hostname=neth-02.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.248 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-02.ih-eu-mda1.nimbus.holesky.status.im -neth-03.ih-eu-mda1.nimbus.holesky hostname=neth-03.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.249 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-03.ih-eu-mda1.nimbus.holesky.status.im -neth-04.ih-eu-mda1.nimbus.holesky hostname=neth-04.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.250 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-04.ih-eu-mda1.nimbus.holesky.status.im -neth-05.ih-eu-mda1.nimbus.holesky hostname=neth-05.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.251 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-05.ih-eu-mda1.nimbus.holesky.status.im -neth-06.ih-eu-mda1.nimbus.holesky hostname=neth-06.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.252 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-06.ih-eu-mda1.nimbus.holesky.status.im -neth-07.ih-eu-mda1.nimbus.holesky hostname=neth-07.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.253 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-07.ih-eu-mda1.nimbus.holesky.status.im -neth-08.ih-eu-mda1.nimbus.holesky hostname=neth-08.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.254 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-08.ih-eu-mda1.nimbus.holesky.status.im -neth-09.ih-eu-mda1.nimbus.holesky hostname=neth-09.ih-eu-mda1.nimbus.holesky ansible_host=185.181.229.100 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-09.ih-eu-mda1.nimbus.holesky.status.im -neth-10.ih-eu-mda1.nimbus.holesky hostname=neth-10.ih-eu-mda1.nimbus.holesky ansible_host=185.181.229.103 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=neth-10.ih-eu-mda1.nimbus.holesky.status.im -node-01.aws-eu-central-1a.dash.nimbus hostname=node-01.aws-eu-central-1a.dash.nimbus ansible_host=52.28.100.116 env=dash stage=nimbus data_center=aws-eu-central-1a region=eu-central-1a dns_entry=node-01.aws-eu-central-1a.dash.nimbus.status.im -store-01.he-eu-hel1.logs.nimbus hostname=store-01.he-eu-hel1.logs.nimbus ansible_host=65.108.226.62 env=logs stage=nimbus data_center=he-eu-hel1 region=eu-hel1 dns_entry=store-01.he-eu-hel1.logs.nimbus.status.im -store-02.he-eu-hel1.logs.nimbus hostname=store-02.he-eu-hel1.logs.nimbus ansible_host=65.109.62.247 env=logs stage=nimbus data_center=he-eu-hel1 region=eu-hel1 dns_entry=store-02.he-eu-hel1.logs.nimbus.status.im -store-03.he-eu-hel1.logs.nimbus hostname=store-03.he-eu-hel1.logs.nimbus ansible_host=65.109.49.101 env=logs stage=nimbus data_center=he-eu-hel1 region=eu-hel1 dns_entry=store-03.he-eu-hel1.logs.nimbus.status.im -windows-01.ih-eu-mda1.nimbus.holesky hostname=windows-01.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.240 env=nimbus stage=holesky data_center=ih-eu-mda1 region=eu-mda1 dns_entry=windows-01.ih-eu-mda1.nimbus.holesky.status.im +bench-01.he-eu-hel1.nimbus.eth1 ansible_host=65.21.46.185 data_center=he-eu-hel1 dns_domain=status.im dns_entry=bench-01.he-eu-hel1.nimbus.eth1.status.im env=nimbus region=eu-hel1 stage=eth1 +bench-02.he-eu-hel1.nimbus.eth1 ansible_host=65.21.46.216 data_center=he-eu-hel1 dns_domain=status.im dns_entry=bench-02.he-eu-hel1.nimbus.eth1.status.im env=nimbus region=eu-hel1 stage=eth1 +bootstrap-01.aws-eu-central-1a.nimbus.mainnet ansible_host=3.120.104.18 data_center=aws-eu-central-1a dns_domain=status.im dns_entry=bootstrap-01.aws-eu-central-1a.nimbus.mainnet.status.im env=nimbus region=eu-central-1a stage=mainnet +bootstrap-02.aws-eu-central-1a.nimbus.mainnet ansible_host=3.64.117.223 data_center=aws-eu-central-1a dns_domain=status.im dns_entry=bootstrap-02.aws-eu-central-1a.nimbus.mainnet.status.im env=nimbus region=eu-central-1a stage=mainnet +erigon-01.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.148 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-01.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-02.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.149 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-02.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-03.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.151 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-03.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-04.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.157 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-04.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-05.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.241 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-05.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-06.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.242 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-06.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-07.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.243 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-07.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-08.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.244 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-08.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-09.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.245 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-09.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +erigon-10.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.246 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=erigon-10.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-01.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.71 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-01.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-02.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.81 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-02.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-03.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.82 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-03.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-04.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.107 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-04.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-05.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.129 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-05.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-06.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.130 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-06.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-07.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.131 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-07.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-08.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.140 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-08.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-09.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.141 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-09.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +geth-10.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.147 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=geth-10.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +holesky-01.ih-eu-mda1.nimbus.geth ansible_host=194.33.40.232 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=holesky-01.ih-eu-mda1.nimbus.geth.status.im env=nimbus region=eu-mda1 stage=geth +holesky-02.ih-eu-mda1.nimbus.geth ansible_host=194.33.40.233 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=holesky-02.ih-eu-mda1.nimbus.geth.status.im env=nimbus region=eu-mda1 stage=geth +linux-01.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.70 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-01.ih-eu-mda1.nimbus.mainnet.status.im env=nimbus region=eu-mda1 stage=mainnet +linux-01.ih-eu-mda1.nimbus.sepolia ansible_host=185.181.230.77 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-01.ih-eu-mda1.nimbus.sepolia.status.im env=nimbus region=eu-mda1 stage=sepolia +linux-02.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.72 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-02.ih-eu-mda1.nimbus.mainnet.status.im env=nimbus region=eu-mda1 stage=mainnet +linux-03.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.78 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-03.ih-eu-mda1.nimbus.mainnet.status.im env=nimbus region=eu-mda1 stage=mainnet +linux-04.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.99 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-04.ih-eu-mda1.nimbus.mainnet.status.im env=nimbus region=eu-mda1 stage=mainnet +linux-05.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.100 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-05.ih-eu-mda1.nimbus.mainnet.status.im env=nimbus region=eu-mda1 stage=mainnet +linux-06.ih-eu-mda1.nimbus.mainnet ansible_host=194.33.40.101 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-06.ih-eu-mda1.nimbus.mainnet.status.im env=nimbus region=eu-mda1 stage=mainnet +linux-07.ih-eu-mda1.nimbus.mainnet ansible_host=185.181.229.82 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=linux-07.ih-eu-mda1.nimbus.mainnet.status.im env=nimbus region=eu-mda1 stage=mainnet +macm2-01.ih-eu-mda1.nimbus.holesky ansible_host=185.181.230.76 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=macm2-01.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +mainnet-01.aws-eu-central-1a.nimbus.geth ansible_host=18.196.208.138 data_center=aws-eu-central-1a dns_domain=status.im dns_entry=mainnet-01.aws-eu-central-1a.nimbus.geth.status.im env=nimbus region=eu-central-1a stage=geth +metal-01.ih-eu-mda1.nimbus.eth1 ansible_host=194.33.40.237 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=metal-01.ih-eu-mda1.nimbus.eth1.status.im env=nimbus region=eu-mda1 stage=eth1 +metal-01.ih-eu-mda1.nimbus.fluffy ansible_host=194.33.40.238 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=metal-01.ih-eu-mda1.nimbus.fluffy.status.im env=nimbus region=eu-mda1 stage=fluffy +metal-02.ih-eu-mda1.nimbus.fluffy ansible_host=194.33.40.239 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=metal-02.ih-eu-mda1.nimbus.fluffy.status.im env=nimbus region=eu-mda1 stage=fluffy +neth-01.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.247 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-01.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-02.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.248 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-02.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-03.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.249 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-03.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-04.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.250 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-04.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-05.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.251 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-05.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-06.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.252 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-06.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-07.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.253 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-07.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-08.ih-eu-mda1.nimbus.holesky ansible_host=194.33.40.254 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-08.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-09.ih-eu-mda1.nimbus.holesky ansible_host=185.181.229.100 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-09.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +neth-10.ih-eu-mda1.nimbus.holesky ansible_host=185.181.229.103 data_center=ih-eu-mda1 dns_domain=status.im dns_entry=neth-10.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky +node-01.aws-eu-central-1a.dash.nimbus ansible_host=52.28.100.116 data_center=aws-eu-central-1a dns_domain=status.im dns_entry=node-01.aws-eu-central-1a.dash.nimbus.status.im env=dash region=eu-central-1a stage=nimbus +store-01.he-eu-hel1.logs.nimbus ansible_host=65.108.226.62 data_center=he-eu-hel1 dns_domain=status.im dns_entry=store-01.he-eu-hel1.logs.nimbus.status.im env=logs region=eu-hel1 stage=nimbus +store-02.he-eu-hel1.logs.nimbus ansible_host=65.109.62.247 data_center=he-eu-hel1 dns_domain=status.im dns_entry=store-02.he-eu-hel1.logs.nimbus.status.im env=logs region=eu-hel1 stage=nimbus +store-03.he-eu-hel1.logs.nimbus ansible_host=65.109.49.101 data_center=he-eu-hel1 dns_domain=status.im dns_entry=store-03.he-eu-hel1.logs.nimbus.status.im env=logs region=eu-hel1 stage=nimbus +windows-01.ih-eu-mda1.nimbus.holesky ansible_become_method=runas ansible_become_user=admin ansible_host=194.33.40.240 ansible_shell_type=powershell data_center=ih-eu-mda1 dns_domain=status.im dns_entry=windows-01.ih-eu-mda1.nimbus.holesky.status.im env=nimbus region=eu-mda1 stage=holesky [aws-eu-central-1a] bootstrap-01.aws-eu-central-1a.nimbus.mainnet diff --git a/ansible/terraform.py b/ansible/terraform.py index dc607d1..6d6cbd3 100755 --- a/ansible/terraform.py +++ b/ansible/terraform.py @@ -414,12 +414,9 @@ def _backup_ansible(inventory): text += '# For emergency use when Consul fails\n' text += '[all]\n' for hostname, host in sorted(inventory.hosts.items()): - text += ( - '{0} hostname={0} ansible_host={1} ' - ).format(hostname, host.host_vars['ansible_host']) + ( - 'env={env} stage={stage} data_center={data_center} '+ - 'region={region} dns_entry={dns_entry}\n' - ).format(**host.host_vars) + host_vars = {k: v for k, v in host.host_vars.items() if k != 'hostname'} + vars_text = " ".join(f"{k}={v}" for k,v in host_vars.items()) + text += f"{hostname} {vars_text}\n" text += '\n' for name, hosts in sorted(inventory.groups.items()): if name in ['_meta', 'all']: