2020-09-21 16:38:34 +00:00
|
|
|
remote_file '/usr/local/bin/check_file' do
|
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '755'
|
|
|
|
end
|
|
|
|
|
2019-11-24 06:21:03 +00:00
|
|
|
%w(reboot-required).each do |conf|
|
2019-03-03 08:50:49 +00:00
|
|
|
remote_file "/etc/consul.d/check-#{conf}.json" do
|
|
|
|
owner 'root'
|
|
|
|
group 'root'
|
|
|
|
mode '644'
|
|
|
|
|
|
|
|
notifies :restart, 'service[supervisor]'
|
|
|
|
end
|
|
|
|
end
|