Hi. I need help connecting a puppet server to puppetdb.
The install went fine :
1) before installing puppetdb, puppet was configured on the puppetdb host and 'puppet agent -t' finished successfully.
2) postgresql and puppetdb were installed and configured. service puppetdb status returns :
[ ok ] puppetdb is running.
But I can't get my puppet server to use puppet db.
Here are the config files that were modified :
/etc/puppetlabs/puppet/puppet.conf
[main]
[master]
dns_alt_names = puppetmaster
vardir = /opt/puppetlabs/server/data/puppetserver
logdir = /var/log/puppetlabs/puppetserver
rundir = /var/run/puppetlabs/puppetserver
pidfile = /var/run/puppetlabs/puppetserver/puppetserver.pid
codedir = /etc/puppetlabs/code
storeconfigs = true
storeconfigs_backend = store,puppetdb
reports = puppetdb
/etc/puppetlabs/puppet/puppetdb.conf
[main]
/etc/puppetlabs/puppet/routes.yaml
---
master:
facts:
terminus: puppetdb
cache: yaml
I changed the ownership of all files and directories under /etc/puppetlabs/puppet to puppet:puppet
But when I run 'puppet agent -t' on any host, I get the following error :
$ puppet agent -t
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to submit 'replace facts' command for
ftp.virt.mydomain.com to PuppetDB at puppetdb:8081: Error executing http request
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
/var/log/puppetlabs/puppetserver/puppetserver.log shows this error :
2015-10-02 10:40:10,530 ERROR [c.p.h.c.i.PersistentSyncHttpClient] Error executing http request
I don't get it.
puppetdb is reachable from puppet server
Trying 10.10.0.8...
Escape character is '^]'.
^CConnection closed by foreign host.
svan@puppetmaster:/etc/puppetlabs/puppet# telnet puppetdb 8081
Trying 10.10.0.8...
Escape character is '^]'.
^CConnection closed by foreign host.
Any help would be appreciated.
Thanks.
Svan.