从 puppetdb 中删除旧节点

从 puppetdb 中删除旧节点

使用 Puppet DB 4.8 运行开源 Puppet 服务器

我最近更改了其中一台服务器的名称,现在 puppetdb 上有两个同一台机器的实例。我尝试通过执行以下命令来删除 NODE:

puppet node deactivate old.server..co.uk

但失败并出现错误:

Error: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [certificate revoked for /CN=puppetdbserver]
Error: Try 'puppet help node deactivate' for usage

我已经验证了 puppetdb 服务器可以通过puppet agent -t在 puppets 服务器上运行成功连接回 puppet 服务器,并且一切似乎都很好。此外,我的 puppetserver 正在积极更新 puppetdb。

答案1

您可以尝试从直接数据库中删除。我找到了一个链接,其中说明了如何从目录中删除节点。

https://ask.puppet.com/question/88/how-can-i-purge-exported-resources-from-puppetdb/

答案2

您可以尝试以下形式的命令吗?

     /usr/bin/puppet node deactivate $host --ssldir=/var/lib/puppet/ssl ## replace the path of your ssl directory if its different from /var/lib/puppet/ssl

相关内容