datacenter = "dc1" data_dir = "/opt/nomad/data" plugin_dir = "/opt/nomad/plugins" log_level = "INFO" name = "{{ client_name }}" bind_addr = "{{ client_ip }}" addresses { http = "{{ client_ip }}" rpc = "{{ client_ip }}" serf = "{{ client_ip }}" } advertise { http = "{{ client_ip }}:4646" rpc = "{{ client_ip }}:4647" serf = "{{ client_ip }}:4648" } ports { http = 4646 rpc = 4647 serf = 4648 } server { enabled = false } client { enabled = true # 配置七仙女服务器地址,使用短名 servers = [ "semaphore:4647", # bj-semaphore "ash1d:4647", # ash1d "ash2e:4647", # ash2e "ch2:4647", # ch2 "ch3:4647", # ch3 "onecloud1:4647", # bj-onecloud1 "de:4647" # de ] # 配置host volumes host_volume "fnsync" { path = "/mnt/fnsync" read_only = false } # 禁用Docker驱动,只使用Podman options { "driver.raw_exec.enable" = "1" "driver.exec.enable" = "1" } } plugin "nomad-driver-podman" { config { socket_path = "unix:///run/podman/podman.sock" volumes { enabled = true } } } consul { address = "master:8500,ash3c:8500,warden:8500" } vault { enabled = true address = "http://master:8200,http://ash3c:8200,http://warden:8200" token = "hvs.A5Fu4E1oHyezJapVllKPFsWg" create_from_role = "nomad-cluster" tls_skip_verify = true }