diff options
Diffstat (limited to 'sbin/itzks-puppetserver-detect-broken-hosts')
-rwxr-xr-x | sbin/itzks-puppetserver-detect-broken-hosts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sbin/itzks-puppetserver-detect-broken-hosts b/sbin/itzks-puppetserver-detect-broken-hosts index ad13ea7..a632c52 100755 --- a/sbin/itzks-puppetserver-detect-broken-hosts +++ b/sbin/itzks-puppetserver-detect-broken-hosts @@ -26,6 +26,11 @@ usage() { exit 1 } +ignore_repaired_hosts="" +if [ -e /etc/debian-edu/itzks-puppetserver-fixed-puppet-hosts ]; then + ignore_repaired_hosts=$(cat /etc/debian-edu/itzks-puppetserver-fixed-puppet-hosts | grep -v -E "^#.*") +fi + for arg in "$@"; do case "${arg}" in -t|--today) @@ -66,6 +71,10 @@ for ip in ${iplist_with_puppeterrors}; do continue fi + if [ -n "${fqdn}" ] && echo "${ignore_repaired_hosts}" | grep -q "${fqdn}"; then + continue + fi + if [[ -n "${INCLUDE}" ]] && ! echo "${ip} ${fqdn}" | grep -q -E "${INCLUDE}"; then continue fi |