From 96ca43bf01d1635045d5210f9a62c60522ea31b8 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 9 Oct 2022 17:08:37 +0200 Subject: [PATCH] chore: rename ssh_keys to hcloud_ssh_keys --- main.tf | 2 +- variables.tf | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.tf b/main.tf index c85a4f0..81c5171 100644 --- a/main.tf +++ b/main.tf @@ -68,7 +68,7 @@ resource "hcloud_volume" "volume" { } resource "hcloud_ssh_key" "key" { - for_each = { for row in toset(var.ssh_keys) : element(split(" ", row), 2) => row } + for_each = { for row in toset(var.hcloud_ssh_keys) : element(split(" ", row), 2) => row } name = each.key public_key = "${element(split(" ", each.value), 0)} ${element(split(" ", each.value), 1)}" diff --git a/variables.tf b/variables.tf index 3a91b17..2151588 100644 --- a/variables.tf +++ b/variables.tf @@ -7,6 +7,10 @@ variable "hcloud_project" { type = string } +variable "hcloud_ssh_keys" { + type = list(string) +} + // Cloudflare variable "cloudflare_api_token" { type = string @@ -42,10 +46,6 @@ variable "server_keys" { type = list(string) } -variable "ssh_keys" { - type = list(string) -} - variable "server_dns_zone" { type = string }