From 8ea980e9b39d1f1b7b5b6fbbbd52fcd67a051aa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 14 May 2023 19:05:33 +0200 Subject: [PATCH] exporse nixos keys in nixos-vars.json --- targets/nixos-wiki.thalheim.io/nixos-vars.json | 2 +- terraform/nixos-wiki/main.tf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/nixos-wiki.thalheim.io/nixos-vars.json b/targets/nixos-wiki.thalheim.io/nixos-vars.json index ff8af4e..c02d9a4 100644 --- a/targets/nixos-wiki.thalheim.io/nixos-vars.json +++ b/targets/nixos-wiki.thalheim.io/nixos-vars.json @@ -1 +1 @@ -{"ipv6_address":"2a01:4f9:c012:4d1e::1"} \ No newline at end of file +{"ipv6_address":"2a01:4f9:c012:4d1e::1","ssh_keys":["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE joerg@turingmachine"]} \ No newline at end of file diff --git a/terraform/nixos-wiki/main.tf b/terraform/nixos-wiki/main.tf index cef9e2b..a58daba 100644 --- a/terraform/nixos-wiki/main.tf +++ b/terraform/nixos-wiki/main.tf @@ -34,5 +34,6 @@ resource "hcloud_server" "nixos_wiki" { locals { nixos_vars = { ipv6_address = hcloud_server.nixos_wiki.ipv6_address + ssh_keys = data.hcloud_ssh_keys.nixos_wiki.ssh_keys.*.public_key } }