Merge branch 'delete-reboot-required' of kazu634/itamae into master

This commit is contained in:
Kazuhiro MUSASHI 2020-09-23 23:54:07 +09:00 committed by Gitea
commit b3cdf96640
4 changed files with 0 additions and 35 deletions

View File

@ -7,5 +7,3 @@ include_recipe './install.rb'
include_recipe './setup.rb'
include_recipe './dnsmasq.rb'
include_recipe './monitoring.rb'

View File

@ -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"
}
}

View File

@ -1,9 +0,0 @@
#!/bin/bash
TARGET=$1
if [ -f ${TARGET} ]; then
exit 1
fi
exit 0

View File

@ -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