itamae/cookbooks/consul/monitoring.rb

10 lines
192 B
Ruby

%w(reboot-required).each do |conf|
remote_file "/etc/consul.d/check-#{conf}.json" do
owner 'root'
group 'root'
mode '644'
notifies :restart, 'service[supervisor]'
end
end