modify-nomad-configs #19

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

View File

@ -38,11 +38,13 @@ end
if node['nomad']['client'] if node['nomad']['client']
%w( /etc/nomad.d/client.hcl ).each do |conf| %w( /etc/nomad.d/client.hcl ).each do |conf|
remote_file conf do template conf do
owner 'nomad' owner 'nomad'
group 'nomad' group 'nomad'
mode '664' mode '664'
variables(consul-token: node['nomad']['consul-token'])
notifies :restart, 'service[nomad]' notifies :restart, 'service[nomad]'
end end
end end