微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

集成OpenSource puppetserver和puppetdb失败

如何解决集成OpenSource puppetserver和puppetdb失败

我拥有开源的puppetserver和puppetdb版本6,并且出现以下错误

Warning: Error 500 on SERVER: Server Error: Could not retrieve facts for puppet-open.home.com: Failed to find facts from PuppetDB at puppet-open:8140: Failed to execute '/pdb/query/v4/nodes/puppet-open.home.com/facts' on at least 1 of the following 'server_urls': https://puppet-ope.home.com:8081
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Could not retrieve catalog from Remote Server: Error 500 on SERVER: Server Error: Failed to execute '/pdb/cmd/v1?checksum=8c006b56f0b77a1e19e4f55b9f7c381ff2ec7879&version=5&certname=puppet-open.home.com&command=replace_facts&producer-timestamp=2020-09-19T19:56:54.158Z' on at least 1 of the following 'server_urls': https://puppet-open.home.com:8081
Warning: Not using cache on Failed catalog
Error: Could not retrieve catalog; skipping run

我怀疑问题是由于密码问题引起的,尤其是密码错误ECDHE-RSA-AES256-GCM-SHA384,请参阅pupptdb的日志:

2020-09-19T15:06:07.905-05:00 INFO  [o.e.j.u.s.SslContextFactory] No Cipher matching 'ECDHE-RSA-AES256-GCM-SHA384' is supported


2020-09-19T15:06:07.910-05:00 WARN  [o.e.j.u.s.S.config] Weak cipher suite TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA enabled for InternalSslContextFactory@4b103100[provider=null,keyStore=null,trustStore=null]

方法有效curl -X Get https://puppet-open.home.com:8081/pdb/query/v4/resources --tlsv1 --cacert /etc/puppetlabs/puppet/ssl/certs/ca.pem --cert /etc/puppetlabs/puppet/ssl/certs/puppet-open.home.com.pem --key /etc/puppetlabs/puppet/ssl/private_keys/puppet-open.home.com.pem -H 'Content-Type:application/json' -d '{"query":["=","certname","puppet-open.home.com"]}' --cipher ECDHE-RSA-AES256-GCM-SHA384

我该如何解决,感谢您的帮助。

Sandro。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。