chore: use opentofu and replace restapi provider #2
@ -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:
|
actions:
|
||||||
- validate
|
- validate
|
||||||
tf_version: 1.5.0
|
tofu_version: 1.6.1
|
||||||
|
2
main.tf
2
main.tf
@ -98,7 +98,7 @@ resource "restapi_object" "ucs_server" {
|
|||||||
"a" : concat(
|
"a" : concat(
|
||||||
[
|
[
|
||||||
for k, v in flatten(coalesce(proxmox_virtual_environment_vm.server[each.value.name].ipv4_addresses, [])) :
|
for k, v in flatten(coalesce(proxmox_virtual_environment_vm.server[each.value.name].ipv4_addresses, [])) :
|
||||||
v if k != try(index(proxmox_virtual_environment_vm.server[each.value.name].network_interface_names, "lo"), -1)
|
v if length(regexall(proxmox_virtual_environment_vm.server[each.value.name].network_interface_names[k], "^(lo|docker).*")) == 0
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
terraform {
|
terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
cloudflare = {
|
cloudflare = {
|
||||||
source = "cloudflare/cloudflare"
|
source = "registry.opentofu.org/cloudflare/cloudflare"
|
||||||
}
|
}
|
||||||
proxmox = {
|
proxmox = {
|
||||||
source = "bpg/proxmox"
|
source = "registry.opentofu.org/bpg/proxmox"
|
||||||
}
|
}
|
||||||
restapi = {
|
restapi = {
|
||||||
source = "mastercard/restapi"
|
source = "registry.opentofu.org/thegeeklab/restapi"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user