Deploy `/etc/nomad.d/server.hcl`.
This commit is contained in:
parent
bd4f65dcf5
commit
531dde8bff
|
@ -1,4 +1,4 @@
|
||||||
server {
|
server {
|
||||||
enabled = true
|
enabled = true
|
||||||
bootstrap_expect = 3
|
bootstrap_expect = 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,12 +19,14 @@ remote_file '/etc/nomad.d/datadir.hcl' do
|
||||||
end
|
end
|
||||||
|
|
||||||
if node['nomad']['manager']
|
if node['nomad']['manager']
|
||||||
remote_file '/etc/nomad.d/server.hcl' do
|
%w( server.hcl acl.hcl ).each do |conf|
|
||||||
owner 'nomad'
|
remote_file "/etc/nomad.d/#{conf}" do
|
||||||
group 'nomad'
|
owner 'nomad'
|
||||||
mode '664'
|
group 'nomad'
|
||||||
|
mode '664'
|
||||||
|
|
||||||
notifies :restart, 'service[nomad]'
|
notifies :restart, 'service[nomad]'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue