modify-nomad-configs #19

Merged
kazu634 merged 3 commits from modify-nomad-configs into main 2024-04-06 08:10:15 +00:00
2 changed files with 31 additions and 0 deletions
Showing only changes of commit b91b44908b - Show all commits

View File

@ -0,0 +1,23 @@
plugin "docker" {
config {
# extra Docker labels to be set by Nomad on each Docker container with the appropriate value
extra_labels = ["job_name", "task_group_name", "task_name", "namespace", "node_name"]
volumes {
enabled = true
}
allow_privileged = true
}
}
client {
host_volume "docker-sock" {
path = "/var/run/docker.sock"
}
host_volume "tmp" {
path = "/tmp"
}
}

View File

@ -49,6 +49,14 @@ if node['nomad']['client']
end
end
remote_file "/etc/nomad.d/options.hcl" do
mode "0644"
owner "nomad"
group "nomad"
notifies :restart, 'service[nomad]'
end
directory '/etc/nomad.d/jobs' do
owner 'nomad'
group 'nomad'