Add full support for common infra
This commit is contained in:
parent
1cea9c9173
commit
598be8c2f1
1 changed files with 30 additions and 27 deletions
|
@ -51,7 +51,7 @@ def remove_downtime(fqdn: str,
|
||||||
|
|
||||||
|
|
||||||
def main() -> int:
|
def main() -> int:
|
||||||
customer = "<%= @customer %>"
|
customers = ["<%= @customer %>"]
|
||||||
environment = "<%= @environment %>"
|
environment = "<%= @environment %>"
|
||||||
apikey_test = "<%= @apikey_test %>"
|
apikey_test = "<%= @apikey_test %>"
|
||||||
apikey_prod = "<%= @apikey_prod %>"
|
apikey_prod = "<%= @apikey_prod %>"
|
||||||
|
@ -59,6 +59,9 @@ def main() -> int:
|
||||||
|
|
||||||
reboot_command = ['sudo /usr/local/bin/safer_reboot']
|
reboot_command = ['sudo /usr/local/bin/safer_reboot']
|
||||||
|
|
||||||
|
if customers[0] == "common":
|
||||||
|
customers = ["gss", "lookup", "multinode"]
|
||||||
|
for customer in customers:
|
||||||
for number in reversed(range(1, 4)):
|
for number in reversed(range(1, 4)):
|
||||||
fqdn = build_fqdn(customer, environment, number)
|
fqdn = build_fqdn(customer, environment, number)
|
||||||
ipv4, _ = get_ips_for_hostname(fqdn)
|
ipv4, _ = get_ips_for_hostname(fqdn)
|
||||||
|
|
Loading…
Add table
Reference in a new issue