From 90e4228fcfc6deb0c94478f4a4cc3c551cc5ee14 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Sep 29 2021 14:40:12 +0000 Subject: Snippet for powerdns geoip operation when removing a node Signed-off-by: Fabian Arrotin --- diff --git a/docs/operations/decommission.md b/docs/operations/decommission.md index 76563a9..045bd4c 100644 --- a/docs/operations/decommission.md +++ b/docs/operations/decommission.md @@ -10,4 +10,12 @@ This is an overview of the needed tasks to perform when we want to remove a node * Remove it from Ansible inventory (and search for references for that node in case of) * Remove it from Zabbix monitoring +Worth knowing that if node is used in one of the following roles, it needs to be also removed from the sqlite DB used to generate the dynamic powerdns setup. +``` +host="centost8.centos.org" +pushd /var/lib/centos-infra/ +echo "delete from nodes where fqdn='${host}';" | sqlite3 nodes.db +./gen_backend +popd +```