chore: use opentofu and replace restapi provider (#4)
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/tag/test Pipeline was successful
ci/woodpecker/tag/build-package Pipeline was successful

Reviewed-on: #4
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
Robert Kaussow 2024-03-14 20:52:25 +01:00 committed by Robert Kaussow
parent 6237f9410e
commit 5eb39daf95
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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),
],
}
})

View File

@ -1,13 +1,13 @@
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
source = "registry.opentofu.org/cloudflare/cloudflare"
}
hcloud = {
source = "hetznercloud/hcloud"
source = "registry.opentofu.org/hetznercloud/hcloud"
}
restapi = {
source = "Mastercard/restapi"
source = "registry.opentofu.org/thegeeklab/restapi"
}
}
}