I am new to setting up Puppet and Puppetmaster... We have puppets setup previously, and new new puppetmaster...
3rd edit
After deleting the ssl files on both master(ghive-ldap) and client (giab10)
The hostname for master is ghive-ldap
and in client's hostname I have that.
On master:
puppet cert clean ghive-ldap
puppet cert generate --dns_alt_names ghive-ldap ghive-ldap
sudo puppetca --sign giab10
err: Could not call sign: Could not find certificate request for giab10
so then on the client:
sudo puppet cert --generate giab10
notice: giab10 has a waiting certificate request
notice: Signed certificate request for giab10
notice: Removing file Puppet::SSL::CertificateRequest giab10 at '/var/lib/puppet/ssl/ca/requests/giab10.pem'
notice: Removing file Puppet::SSL::CertificateRequest giab10 at '/var/lib/puppet/ssl/certificate_requests/giab10.pem'
giabadmin@giab10:~$ sudo puppet cert --list --all
+ giab10 (0F:CB:............)
I ran this on the client
sudo puppetd --test --debug
.....
err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not know
Fine... let me try this on the client
sudo puppet agent --server ghive-ldap --waitforcert 60 --test --verbose
err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
Garrrrr..... I deleted the ssl files and still no luck!! Something must have gone wrong...
How do I start from the beginning? I didn't much help from the documentation...Sorry for being a noob.. Thanks
PS: Also, how do you make sure the two servers have time in sync?