This is an overview of the needed tasks to perform when we want to remove a node from our infra :
Worth knowing that if node is used in one of the [mirror,mirror.stream,vault,debuginfo] roles, it needs to be also removed from the sqlite DB used to generate the dynamic powerdns setup. The following snippet can be applied on the host that is defined in ansible inventory as pdns_db_host
:
host="centost8.centos.org" pushd /var/lib/centos-infra/ echo "delete from nodes where fqdn='${host}';" | sqlite3 nodes.db ./gen_backend popd