您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

11 行
344B

  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. }