itamae/cookbooks/consul/monitoring.rb

16 lines
283 B
Ruby
Raw Normal View History

2020-09-21 16:38:34 +00:00
remote_file '/usr/local/bin/check_file' do
owner 'root'
group 'root'
mode '755'
end
%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