Do not deploy the monitoring settings for `consul`

This commit is contained in:
Kazuhiro MUSASHI 2019-11-24 14:21:03 +08:00
parent aca4184c66
commit a4822fe9ef
1 changed files with 1 additions and 33 deletions

View File

@ -1,36 +1,4 @@
package 'nagios-plugins' do %w(reboot-required).each do |conf|
action :install
options '--no-install-recommends'
end
remote_file '/usr/lib/nagios/plugins/check_file' do
owner 'root'
group 'root'
mode '555'
notifies :restart, 'service[supervisor]'
end
# Deploy the check_memory script:
package 'bc' do
action :install
end
URL = 'https://raw.githubusercontent.com/zwindler/check_mem_ng/master/check_mem_ng.sh'
TARGET = '/usr/lib/nagios/plugins/check_memory'
execute "wget #{URL} -O #{TARGET}" do
not_if "test -e #{TARGET}"
end
file TARGET do
owner 'root'
group 'root'
mode '755'
end
%w(disk load ssh swap reboot-required memory).each do |conf|
remote_file "/etc/consul.d/check-#{conf}.json" do remote_file "/etc/consul.d/check-#{conf}.json" do
owner 'root' owner 'root'
group 'root' group 'root'