consul-server-key-change-2024 #10
|
@ -71,7 +71,8 @@ template '/etc/consul.d/consul.hcl' do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deploy server specific config
|
# Deploy server specific config
|
||||||
template '/etc/consul.d/server.hcl' do
|
if node['consul']['manager']
|
||||||
|
template '/etc/consul.d/server.hcl' do
|
||||||
owner 'consul'
|
owner 'consul'
|
||||||
group 'consul'
|
group 'consul'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
@ -79,6 +80,7 @@ template '/etc/consul.d/server.hcl' do
|
||||||
variables(server_token: node['consul']['server_token'])
|
variables(server_token: node['consul']['server_token'])
|
||||||
|
|
||||||
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|
|
||||||
|
|
Loading…
Reference in New Issue