Puppet server to use different server (itself) to send reports

asked 2018-01-15 05:45:22 -0500

audy gravatar image

There are two puppet masters. pupmasterone.localdomain and pupmastertwo.localdomain. pupmastertwo is fetching configuration from pupmasterone and sending its reports to pupmasterone. (This is normal behaviour)

If we change the report_server in pupmastertwo to report to itself, it is throwing an error.

puppet.conf (pupmasterone)

[agent]
certname = pupmasterone.localdomain.com
server = puppet.one.localdomain.com
[master]
dns_alt_names = pupmasteroone,pupmasteroone.localdomain.com,puppet.one,puppet.one.localdomain.com
report=zabbix
ca = true
certname = puppet.one.localdomain.com

puppet.conf (pupmastertwo)

[main]
report_server = puppet.two.localdomain.com
[agent]
certname = pupmasterotwo.localdomain.com
server = puppet.one.localdomain.com
[master]
dns_alt_names = pupmasterotwo,pupmasterotwo.localdomain.com,puppet.two,puppet.two.localdomain.com
ca = true
certname = puppet.two.localdomain.com

Getting error as:

Error: Could not send report: SSL_connect returned=1 errno=0 state=unknown state: sslv3 alert certificate unknown
edit retag flag offensive close merge delete