Deploy `check_file_ script.

This commit is contained in:
Kazuhiro MUSASHI 2020-09-22 01:38:34 +09:00
parent af970c80a7
commit 3c634b7dc3
2 changed files with 15 additions and 0 deletions

View File

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

View File

@ -1,3 +1,9 @@
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'