modify-nomad-configs #19
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue