hcp-ansible/nomad.json
Bertrand Lanson 30adf2ba7a
All checks were successful
development / Check commit compliance (push) Successful in 34s
feat: add global variables for nomad deployment
2024-05-16 17:25:41 +02:00

95 lines
2.1 KiB
JSON

{
"acl": {
"enabled": true
},
"advertise": {
"http": "10.1.20.101",
"rpc": "10.1.20.101",
"serf": "10.1.20.101"
},
"bind_addr": "0.0.0.0",
"client": {
"bridge_network_name": "nomad",
"bridge_network_subnet": "172.26.64.0/20",
"cni_path": "/opt/cni/bin",
"enabled": true,
"node_class": "managers",
"reserved": {
"cpu": 500,
"memory": 300
},
"servers": [
"hs1.ednz.fr",
"hs2.ednz.fr",
"hs3.ednz.fr"
]
},
"consul": {
"address": "127.0.0.1:8501",
"auto_advertise": true,
"grpc_address": "127.0.0.1:8503",
"grpc_ca_file": "/opt/nomad/tls/ca.pem",
"ssl": true,
"token": "8c6eaa1c-0d71-b25e-1019-a34966700fa4"
},
"data_dir": "/opt/nomad",
"datacenter": "gre1",
"leave_on_terminate": false,
"log_level": "INFO",
"plugin": {
"docker": {
"config": {
"allow_caps": [
"all"
],
"allow_privileged": true,
"auth": {
"config": "/etc/nomad.d/extra_files/docker_auth.json"
},
"endpoint": "unix:///var/run/docker.sock",
"volumes": {
"enabled": true
}
}
}
},
"server": {
"bootstrap_expect": 3,
"enabled": true,
"server_join": {
"retry_join": [
"hs1.ednz.fr",
"hs2.ednz.fr",
"hs3.ednz.fr"
]
}
},
"telemetry": {
"collection_interval": "1s",
"disable_dispatched_job_summary_metrics": false,
"disable_hostname": false,
"prefix_filter": [],
"prometheus_metrics": true,
"publish_allocation_metrics": true,
"publish_node_metrics": true,
"use_node_name": false
},
"tls": {
"ca_file": "/opt/nomad/tls/ca.pem",
"cert_file": "/opt/nomad/tls/cert.pem",
"http": true,
"key_file": "/opt/nomad/tls/key.pem",
"rpc": true,
"verify_server_hostname": true
},
"ui": {
"enabled": true
},
"vault": {
"address": "https://vault.service.consul:8200",
"create_from_role": "nomad-cluster",
"enabled": true,
"token": "hvs.CAESIEOC5_8vTfD16xXhxs-TV23JEXWWRIgSIc01dm8Hb2YLGh4KHGh2cy5xRVg0T3pDV3FhazBZQWZEaExkM2VqejU"
}
}