chore: use opentofu and replace restapi provider (#4)
Reviewed-on: #4 Co-authored-by: Robert Kaussow <mail@thegeeklab.de> Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
parent
6237f9410e
commit
5eb39daf95
@ -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
|
||||||
|
2
main.tf
2
main.tf
@ -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),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
terraform {
|
terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
cloudflare = {
|
cloudflare = {
|
||||||
source = "cloudflare/cloudflare"
|
source = "registry.opentofu.org/cloudflare/cloudflare"
|
||||||
}
|
}
|
||||||
hcloud = {
|
hcloud = {
|
||||||
source = "hetznercloud/hcloud"
|
source = "registry.opentofu.org/hetznercloud/hcloud"
|
||||||
}
|
}
|
||||||
restapi = {
|
restapi = {
|
||||||
source = "Mastercard/restapi"
|
source = "registry.opentofu.org/thegeeklab/restapi"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user