consul-server-key-change-2024 #10

Merged
kazu634 merged 8 commits from consul-server-key-change-2024 into main 2024-03-31 11:26:14 +00:00
1 changed files with 8 additions and 6 deletions
Showing only changes of commit 63935ec789 - Show all commits

View File

@ -71,7 +71,8 @@ template '/etc/consul.d/consul.hcl' do
end
# Deploy server specific config
template '/etc/consul.d/server.hcl' do
if node['consul']['manager']
template '/etc/consul.d/server.hcl' do
owner 'consul'
group 'consul'
mode '644'
@ -79,6 +80,7 @@ template '/etc/consul.d/server.hcl' do
variables(server_token: node['consul']['server_token'])
notifies :restart, 'service[consul]'
end
end
%w( 01-bootstrap.sh 02-policy.sh ).each do |sh|