tasks.py: fix deploy
This commit is contained in:
parent
5dbbe11ded
commit
1a8c37852b
1 changed files with 8 additions and 11 deletions
19
tasks.py
19
tasks.py
|
@ -111,17 +111,14 @@ def get_hosts(hosts: str) -> List[DeployHost]:
|
|||
systems = data["nixosConfigurations"]
|
||||
return [DeployHost(f"{n}.nix-community.org") for n in systems]
|
||||
|
||||
if "darwin01" in hosts:
|
||||
return [
|
||||
DeployHost(f"{h}.nix-community.org", user="customer")
|
||||
for h in hosts.split(",")
|
||||
]
|
||||
|
||||
if "darwin02" or "darwin03" in hosts:
|
||||
return [
|
||||
DeployHost(f"{h}.nix-community.org", user="hetzner")
|
||||
for h in hosts.split(",")
|
||||
]
|
||||
if "darwin" in hosts:
|
||||
if hosts == "darwin01":
|
||||
return [DeployHost("darwin01.nix-community.org", user="customer")]
|
||||
else:
|
||||
return [
|
||||
DeployHost(f"{h}.nix-community.org", user="hetzner")
|
||||
for h in hosts.split(",")
|
||||
]
|
||||
|
||||
return [DeployHost(f"{h}.nix-community.org") for h in hosts.split(",")]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue