exporse nixos keys in nixos-vars.json

This commit is contained in:
Jörg Thalheim 2023-05-14 19:05:33 +02:00
parent 47808ae447
commit 8ea980e9b3
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
{"ipv6_address":"2a01:4f9:c012:4d1e::1"}
{"ipv6_address":"2a01:4f9:c012:4d1e::1","ssh_keys":["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKbBp2dH2X3dcU1zh+xW3ZsdYROKpJd3n13ssOP092qE joerg@turingmachine"]}

View File

@ -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
}
}