terraform { required_providers { nomad = { source = "hashicorp/nomad" version = "~> 2.0" } } } # Nomad Provider 配置 provider "nomad" { address = "http://semaphore.tailnet-68f9.ts.net:4646" region = "global" } # 使用 Nomad 配置模块 module "nomad_config" { source = "./modules/nomad-config" nomad_address = "http://semaphore.tailnet-68f9.ts.net:4646" datacenter = "dc1" } # 输出模块信息 output "nomad_nodes_info" { value = module.nomad_config.onecloud1_deployment }