clan-cli machines update: generate and deploy secrets
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user