Update hcloud terraform provider
This commit is contained in:
parent
6010e25dd7
commit
85568c8278
7 changed files with 41 additions and 39 deletions
|
|
@ -11,7 +11,7 @@ resource "hcloud_placement_group" "default" {
|
|||
resource "hcloud_primary_ip" "node_ipv4_addresses" {
|
||||
for_each = local.hetzner_hosts
|
||||
name = "primary_ipv4_${each.value.hostname}"
|
||||
datacenter = each.value.datacenter
|
||||
location = each.value.location
|
||||
type = "ipv4"
|
||||
assignee_type = "server"
|
||||
auto_delete = false
|
||||
|
|
@ -20,7 +20,7 @@ resource "hcloud_primary_ip" "node_ipv4_addresses" {
|
|||
resource "hcloud_primary_ip" "node_ipv6_addresses" {
|
||||
for_each = local.hetzner_hosts
|
||||
name = "primary_ipv6_${each.value.hostname}"
|
||||
datacenter = each.value.datacenter
|
||||
location = each.value.location
|
||||
type = "ipv6"
|
||||
assignee_type = "server"
|
||||
auto_delete = false
|
||||
|
|
@ -30,7 +30,7 @@ resource "hcloud_primary_ip" "node_ipv6_addresses" {
|
|||
resource "hcloud_server" "nodes" {
|
||||
for_each = local.hetzner_hosts
|
||||
name = each.value.hostname
|
||||
datacenter = each.value.datacenter
|
||||
location = each.value.location
|
||||
image = each.value.image
|
||||
server_type = each.value.server_type
|
||||
ssh_keys = [hcloud_ssh_key.default.id]
|
||||
|
|
@ -125,6 +125,9 @@ resource "hcloud_storage_box" "box01" {
|
|||
zfs_enabled = true
|
||||
}
|
||||
|
||||
lifecycle {
|
||||
ignore_changes = [ ssh_keys ]
|
||||
}
|
||||
delete_protection = true
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ terraform {
|
|||
}
|
||||
hcloud = {
|
||||
source = "hetznercloud/hcloud"
|
||||
version = "~> 1.57.0"
|
||||
version = "~> 1.59.0"
|
||||
}
|
||||
healthchecksio = {
|
||||
source = "kristofferahl/healthchecksio"
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ variable "hosts" {
|
|||
ephemeral = optional(bool, false)
|
||||
image = optional(string)
|
||||
server_type = optional(string)
|
||||
datacenter = optional(string)
|
||||
location = optional(string)
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue