Merge pull request 'Install nomad by default.' (#78) from install-nomad-by-default into master
Reviewed-on: #78
This commit is contained in:
commit
733a9e594f
|
@ -4,6 +4,6 @@
|
||||||
node.reverse_merge!({
|
node.reverse_merge!({
|
||||||
'nomad' => {
|
'nomad' => {
|
||||||
'manager' => false,
|
'manager' => false,
|
||||||
'client' => true
|
'client' => false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -2,6 +2,8 @@ include_recipe './attributes.rb'
|
||||||
|
|
||||||
include_recipe './install.rb'
|
include_recipe './install.rb'
|
||||||
|
|
||||||
include_recipe './setup.rb'
|
if node['nomad']['manager'] || node['nomad']['client']
|
||||||
|
include_recipe './setup.rb'
|
||||||
|
|
||||||
include_recipe './shared_dir.rb'
|
include_recipe './shared_dir.rb'
|
||||||
|
end
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
acl {
|
||||||
|
enabled = true
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -7,3 +7,4 @@ include_recipe '../cookbooks/fzf/default.rb'
|
||||||
include_recipe '../cookbooks/promtail/default.rb'
|
include_recipe '../cookbooks/promtail/default.rb'
|
||||||
include_recipe '../cookbooks/vector/default.rb'
|
include_recipe '../cookbooks/vector/default.rb'
|
||||||
include_recipe '../cookbooks/prometheus-exporters/default.rb'
|
include_recipe '../cookbooks/prometheus-exporters/default.rb'
|
||||||
|
include_recipe '../cookbooks/nomad/default.rb'
|
||||||
|
|
Loading…
Reference in New Issue