mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-05-16 13:56:38 +00:00
⏫ Upgrade Scaleway VM config for provider updates
enable_ipv6 doesn't exist anymore, and public IP address needs to be retrived from a list of addresses
This commit is contained in:
@@ -4,7 +4,6 @@ resource "scaleway_instance_server" "_" {
|
||||
image = "ubuntu_jammy"
|
||||
zone = var.location
|
||||
name = each.value.node_name
|
||||
enable_ipv6 = true
|
||||
enable_dynamic_ip = true
|
||||
tags = [format("AUTHORIZED_KEY=%s", replace(trimspace(tls_private_key.ssh.public_key_openssh), " ", "_"))]
|
||||
}
|
||||
@@ -12,6 +11,6 @@ resource "scaleway_instance_server" "_" {
|
||||
locals {
|
||||
ip_addresses = {
|
||||
for key, value in local.nodes :
|
||||
key => scaleway_instance_server._[key].public_ip
|
||||
key => scaleway_instance_server._[key].public_ips[0].address
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user