consul-server-key-change-2024 #10
|
@ -71,6 +71,7 @@ template '/etc/consul.d/consul.hcl' do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy server specific config
|
# Deploy server specific config
|
||||||
|
if node['consul']['manager']
|
||||||
template '/etc/consul.d/server.hcl' do
|
template '/etc/consul.d/server.hcl' do
|
||||||
owner 'consul'
|
owner 'consul'
|
||||||
group 'consul'
|
group 'consul'
|
||||||
|
@ -80,6 +81,7 @@ template '/etc/consul.d/server.hcl' do
|
||||||
|
|
||||||
notifies :restart, 'service[consul]'
|
notifies :restart, 'service[consul]'
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
%w( 01-bootstrap.sh 02-policy.sh ).each do |sh|
|
%w( 01-bootstrap.sh 02-policy.sh ).each do |sh|
|
||||||
remote_file("/etc/consul.d/howto/#{sh}") {
|
remote_file("/etc/consul.d/howto/#{sh}") {
|
||||||
|
|
Loading…
Reference in New Issue