25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

inventory.tf 344B

12345678910
  1. locals {
  2. vm_hosts_with_groups = {
  3. for hostname, host in var.vm_hosts: hostname => host if contains(keys(host),"groups")
  4. }
  5. vm_hosts_without_groups = {
  6. for hostname, host in var.vm_hosts: hostname => host if !contains(keys(host),"groups")
  7. }
  8. vm_groups = distinct(flatten(values(local.hetzner_vm_hosts_with_groups)[*].groups))
  9. }