From 5d1e0006423e95b02edff0ae82455a9ee0037b23 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 10 Mar 2024 14:16:42 +0100 Subject: [PATCH] chore: use opentofu and replace restapi provider --- .woodpecker/test.yml | 8 ++++---- main.tf | 2 +- versions.tf | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.woodpecker/test.yml b/.woodpecker/test.yml index c3c4d6b..9ca203d 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/test.yml @@ -16,9 +16,9 @@ steps: commands: - tflint --color - - name: terraform - image: docker.io/jmccann/drone-terraform:8 + - name: tofu + image: quay.io/thegeeklab/wp-opentofu settings: - actions: + action: - validate - tf_version: 1.5.0 + tofu_version: 1.6.1 diff --git a/main.tf b/main.tf index fa48f1f..7c52095 100644 --- a/main.tf +++ b/main.tf @@ -151,7 +151,7 @@ resource "restapi_object" "ucs_server" { "name" : each.value.name, "a" : [ hcloud_server.server[each.value.name].ipv4_address, - hcloud_server.server[each.value.name].ipv6_address, + try(each.value.ucs_ipv6_address, hcloud_server.server[each.value.name].ipv6_address), ], } }) diff --git a/versions.tf b/versions.tf index ff6f93c..ffd4819 100644 --- a/versions.tf +++ b/versions.tf @@ -7,7 +7,7 @@ terraform { source = "hetznercloud/hcloud" } restapi = { - source = "Mastercard/restapi" + source = "thegeeklab/restapi" } } }