client {
  enabled = true
  # 配置七姐妹服务器地址
  servers = [
    "100.116.158.95:4647",  # bj-semaphore
    "100.81.26.3:4647",     # ash1d
    "100.103.147.94:4647",  # ash2e
    "100.90.159.68:4647",   # ch2
    "100.86.141.112:4647",  # ch3
    "100.98.209.50:4647",   # bj-onecloud1
    "100.120.225.29:4647"   # de
  ]
  host_volume "fnsync" {
    path = "/mnt/fnsync"
    read_only = false
  }
  # 禁用Docker驱动，只使用Podman
  options {
    "driver.raw_exec.enable" = "1"
    "driver.exec.enable" = "1"
  }
  plugin_dir = "/opt/nomad/plugins"
}

# 配置Podman驱动
plugin "podman" {
  config {
    volumes {
      enabled = true
    }
    logging {
      type = "journald"
    }
    gc {
      container = true
    }
  }
}