clan-cli machines update: generate and deploy secrets

This commit is contained in:
lassulus
2023-09-13 23:19:39 +02:00
committed by Mic92
parent 0e3f8bb3f9
commit c487280ba9

View File

@@ -4,6 +4,8 @@ import os
import subprocess import subprocess
from ..ssh import Host, HostGroup, HostKeyCheck from ..ssh import Host, HostGroup, HostKeyCheck
from ..secrets.deploy import deploy_secrets
from ..secrets.generate import generate_secrets
def deploy_nixos(hosts: HostGroup) -> None: def deploy_nixos(hosts: HostGroup) -> None:
@@ -32,6 +34,9 @@ def deploy_nixos(hosts: HostGroup) -> None:
ssh_arg += " -i " + h.key if h.key else "" ssh_arg += " -i " + h.key if h.key else ""
generate_secrets(h.host)
deploy_secrets(h.host)
flake_attr = h.meta.get("flake_attr", "") flake_attr = h.meta.get("flake_attr", "")
if flake_attr: if flake_attr:
flake_attr = "#" + flake_attr flake_attr = "#" + flake_attr