Skip to content

Instantly share code, notes, and snippets.

@odnanref
Created May 27, 2022 22:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odnanref/ae05c89529e7696ef058c4fe719291b9 to your computer and use it in GitHub Desktop.
Save odnanref/ae05c89529e7696ef058c4fe719291b9 to your computer and use it in GitHub Desktop.
nomad.hcl sample config with glusterfs local directory
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