Merge pull request 'chore: use opentofu and replace restapi provider' (#2) from use-tofu into main
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: #2
This commit is contained in:
Robert Kaussow 2024-03-14 20:56:54 +01:00
commit b01508236b
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

@ -98,7 +98,7 @@ resource "restapi_object" "ucs_server" {
"a" : concat(
[
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
],
),
}

View File

@ -1,13 +1,13 @@
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
source = "registry.opentofu.org/cloudflare/cloudflare"
}
proxmox = {
source = "bpg/proxmox"
source = "registry.opentofu.org/bpg/proxmox"
}
restapi = {
source = "mastercard/restapi"
source = "registry.opentofu.org/thegeeklab/restapi"
}
}
}