From df46401662ff886eab23e6b651bfa1f634c3c601 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sat, 7 Oct 2023 22:30:21 +0200 Subject: [PATCH] Add `pushApproles` to altra Signed-off-by: magic_rb --- terranix/altra.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) 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"; }; }