chore: rename ssh_keys to hcloud_ssh_keys
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
1950c5bf39
commit
96ca43bf01
2
main.tf
2
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)}"
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user