Deploy `/etc/nomad.d/client.hcl`.

This commit is contained in:
Kazuhiro MUSASHI 2024-04-06 16:40:01 +09:00
parent ede6983321
commit 885907310f
1 changed files with 3 additions and 1 deletions

View File

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