chore: use opentofu and replace restapi provider
Some checks failed
ci/woodpecker/pr/test Pipeline failed
ci/woodpecker/pr/build-package unknown status

This commit is contained in:
Robert Kaussow 2024-03-10 14:16:42 +01:00
parent 6237f9410e
commit 5d1e000642
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 6 additions and 6 deletions

View File

@ -16,9 +16,9 @@ steps:
commands: commands:
- tflint --color - tflint --color
- name: terraform - name: tofu
image: docker.io/jmccann/drone-terraform:8 image: quay.io/thegeeklab/wp-opentofu
settings: settings:
actions: action:
- validate - validate
tf_version: 1.5.0 tofu_version: 1.6.1

View File

@ -151,7 +151,7 @@ resource "restapi_object" "ucs_server" {
"name" : each.value.name, "name" : each.value.name,
"a" : [ "a" : [
hcloud_server.server[each.value.name].ipv4_address, 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),
], ],
} }
}) })

View File

@ -7,7 +7,7 @@ terraform {
source = "hetznercloud/hcloud" source = "hetznercloud/hcloud"
} }
restapi = { restapi = {
source = "Mastercard/restapi" source = "thegeeklab/restapi"
} }
} }
} }