Created
May 27, 2022 22:12
-
-
Save odnanref/ae05c89529e7696ef058c4fe719291b9 to your computer and use it in GitHub Desktop.
nomad.hcl sample config with glusterfs local directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_dir = "/opt/nomad/data" | |
bind_addr = "0.0.0.0" | |
server { | |
enabled = true | |
bootstrap_expect = 2 | |
encrypt = "+HT7OPk+vyPzXQ=" | |
} | |
client { | |
enabled = true | |
servers = ["127.0.0.1:4646"] | |
host_volume "cgroup" { | |
path = "/sys/fs/cgroup" | |
read_only = true | |
} | |
host_volume "freeipa" { | |
path = "/storage/freeipa/data" | |
read_only = false | |
} | |
host_volume "mysql" { | |
path = "/storage/mysql/data" | |
read_only = false | |
} | |
host_volume "webtreesdata" { | |
path = "/storage/webtrees/data" | |
read_only = false | |
} | |
host_volume "dockerregistry" { | |
path = "/storage/docker-registry" | |
read_only = false | |
} | |
host_volume "shinobi" { | |
path = "/storage/Shinobi" | |
read_only = false | |
} | |
} | |
acl { | |
enabled = true | |
} | |
consul { | |
# The address to the Consul agent. | |
address = "127.0.0.1:8500" | |
# The service name to register the server and client with Consul. | |
server_service_name = "nomad" | |
client_service_name = "nomad-client" | |
# Enables automatically registering the services. | |
auto_advertise = true | |
# Enabling the server and client to bootstrap using Consul. | |
server_auto_join = true | |
client_auto_join = true | |
} | |
plugin "docker" { | |
config { | |
allow_privileged = true | |
volumes { | |
enabled = true | |
} | |
} | |
} | |
telemetry { | |
publish_allocation_metrics = true | |
publish_node_metrics = true | |
prometheus_metrics = true | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment