chore: use opentofu and replace restapi provider #4
@ -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
|
||||
|
2
main.tf
2
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),
|
||||
],
|
||||
}
|
||||
})
|
||||
|
@ -7,7 +7,7 @@ terraform {
|
||||
source = "hetznercloud/hcloud"
|
||||
}
|
||||
restapi = {
|
||||
source = "Mastercard/restapi"
|
||||
source = "thegeeklab/restapi"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user