Delete `/etc/nomad.d/datadir.hcl`.

This commit is contained in:
Kazuhiro MUSASHI 2022-01-10 16:24:16 +09:00
parent 5e176ff230
commit 8c712e6ffa
3 changed files with 3 additions and 12 deletions

View File

@ -1,4 +0,0 @@
# /etc/nomad.d/server.hcl
# data_dir tends to be environment specific.
data_dir = "/opt/nomad/data/"

View File

@ -2,3 +2,6 @@ server {
enabled = true
bootstrap_expect = 3
}
# data_dir tends to be environment specific.
data_dir = "/opt/nomad/data/"

View File

@ -12,14 +12,6 @@ file '/etc/nomad.d/nomad.hcl' do
action :delete
end
remote_file '/etc/nomad.d/datadir.hcl' do
owner 'nomad'
group 'nomad'
mode '664'
notifies :restart, 'service[nomad]'
end
if node['nomad']['manager']
%w( server.hcl acl.hcl ).each do |conf|
remote_file "/etc/nomad.d/#{conf}" do