chore: rename ssh_keys to hcloud_ssh_keys
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2022-10-09 17:08:37 +02:00
parent 1950c5bf39
commit 96ca43bf01
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ resource "hcloud_volume" "volume" {
} }
resource "hcloud_ssh_key" "key" { 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 name = each.key
public_key = "${element(split(" ", each.value), 0)} ${element(split(" ", each.value), 1)}" public_key = "${element(split(" ", each.value), 0)} ${element(split(" ", each.value), 1)}"

View File

@ -7,6 +7,10 @@ variable "hcloud_project" {
type = string type = string
} }
variable "hcloud_ssh_keys" {
type = list(string)
}
// Cloudflare // Cloudflare
variable "cloudflare_api_token" { variable "cloudflare_api_token" {
type = string type = string
@ -42,10 +46,6 @@ variable "server_keys" {
type = list(string) type = list(string)
} }
variable "ssh_keys" {
type = list(string)
}
variable "server_dns_zone" { variable "server_dns_zone" {
type = string type = string
} }