puppet agent

35 views
Skip to first unread message

Joaquin Henriquez

unread,
Jul 11, 2016, 6:06:39 PM7/11/16
to Puppet Users
Hi List

Puppet agent (after puupet agent -t) is not sending th CSR to the Puppet master:

Agent:
/etc/hosts
172.16.173.31   spark-slave1 puppetmaster01 puppetmaster01.lebara.com testbedocg
172.16.173.24   spark-slave2 preproi2000 preproi2000.lebara.com


hadoop@preproi2000:~/.puppetlabs/etc/puppet> more puppet.conf 
[main]
server = puppetmaster01
environment = production
runinterval = 1h
strict_variables = true

[agent]
server = puppetmaster01

hadoop@preproi2000:~/.puppetlabs/etc/puppet/ssl/certificate_requests> ls
preproi2000.lebara.com.pem

Any agent requet doesn't show the fingerprint (3rd line)
hadoop@preproi2000:~/.puppetlabs/etc/puppet> puppet agent --no-daemonize --server puppetmaster01.lebara.com --onetime --verbose
Info: Creating a new SSL key for preproi2000.lebara.com
Info: Caching certificate for ca
Info: Caching certificate_request for preproi2000.lebara.com
Info: Caching certificate for ca  <-- here no fingerprint
Exiting; no certificate found and waitforcert is disabled

Master:
/etc/hosts
172.16.173.31   spark-slave1 puppetmaster01 puppetdb puppetmaster01.lebara.com testbedocg
172.16.173.24   spark-slave2 preproi2000 preproi2000.lebara.com

hadoop@testbedocg:~/.puppetlabs/etc/puppet> more puppet.conf 
[main]
certname = testbedocg
server = puppetmaster01
environment = production
runinterval = 1h
strict_variables = true

[master]
dns_alt_names = puppet,puppetmaster01,puppetmaster01.lebara.com,testbedocg
reports = puppetdb
storeconfigs_backend = puppetdb
storeconfigs = true
environment_timeout = unlimited

hadoop@testbedocg:~/.puppetlabs/etc/puppet/ssl/certificate_requests> ls
hadoop@testbedocg:~/.puppetlabs/etc/puppet/ssl/certificate_requests> 

It seems as the CSR is send only to the local agent machine not to the Master puppet server.
Why is this happending?

BR

Joaquin

jiminfote...@gmail.com

unread,
Jul 12, 2016, 3:13:24 AM7/12/16
to Puppet Users
When you do puppet agent -t check out your puppetserver.log. Post the output from puppetserver.log file .

Thanks
Jim

Joaquin Henriquez

unread,
Jul 26, 2016, 12:31:22 PM7/26/16
to Puppet Users
Finally manage to install puppet and make it work from source.
I have to tell you the instructions are almost non existant for that.
Reply all
Reply to author
Forward
0 new messages