Merge branch 'delete-reboot-required' of kazu634/itamae into master
This commit is contained in:
commit
b3cdf96640
|
@ -7,5 +7,3 @@ include_recipe './install.rb'
|
|||
include_recipe './setup.rb'
|
||||
|
||||
include_recipe './dnsmasq.rb'
|
||||
|
||||
include_recipe './monitoring.rb'
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"check": {
|
||||
"id": "reboot-required",
|
||||
"name": "Check for Reboot Required",
|
||||
"args": ["/usr/local/bin/check_file", "/var/run/reboot-required"],
|
||||
"interval": "86400s",
|
||||
"timeout": "10s"
|
||||
}
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
TARGET=$1
|
||||
|
||||
if [ -f ${TARGET} ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
|
@ -1,15 +0,0 @@
|
|||
remote_file '/usr/local/bin/check_file' do
|
||||
owner 'root'
|
||||
group 'root'
|
||||
mode '755'
|
||||
end
|
||||
|
||||
%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
|
Loading…
Reference in New Issue