diff --git a/terranix/altra.nix b/terranix/altra.nix index a3b2062..c24a282 100644 --- a/terranix/altra.nix +++ b/terranix/altra.nix @@ -23,7 +23,7 @@ in name = "altra_ipv6"; datacenter = "fsn1-dc14"; type = "ipv6"; - assignee_type = "server"; + assignee_type = "server"; auto_delete = false; delete_protection = true; }; @@ -48,6 +48,22 @@ in delete_protection = true; rebuild_protection = true; - ssh_keys = singleton (tf "hcloud_ssh_key.magic_rb.id"); + # ssh_keys = singleton (tf "hcloud_ssh_key.magic_rb.id"); + }; + + prefab.pushApproles."altra" = { + host = "10.64.0.11"; + user = "main"; + + policies = [ + # (tf "vault_policy.toothpick_consul.name") + # (tf "vault_policy.toothpick_nomad.name") + ]; + + metadata = { + "ip_address" = "altra.redalder.org"; + }; + + approlePath = tf "vault_auth_backend.approle.path"; }; }