puppetserver ca commands fail connecting to https://puppet:8140 when using SRV record solution
Asked Answered
C

2

5

I use SRV solution in my puppet architecture. When trying to setup a new puppet master and CA and view my certificates I get this error:

puppetserver ca list --all
Fatal error when running action 'list'
  Error: Failed connecting to https://puppet:8140/puppet-ca/v1/certificate_statuses/any_key
  Root cause: Failed to open TCP connection to puppet:8140 (getaddrinfo: No address associated with hostname)

My puppet.conf file has the following configuration:

   use_srv_records = true
   srv_domain = mypuppetrecord.com

What am I missing ?

Christophany answered 23/10, 2019 at 12:10 Comment(0)
C
8

I managed to find the solution here. I needed to add to my /etc/hosts file the following:

xxx.xx.xx.xx (IP of the host) puppet

Christophany answered 24/10, 2019 at 11:32 Comment(0)
A
0

The error is confusing. I had the same "puppet" error when my SSL private key needed a passphrase. After using a SSL key without a passphrase there was no error.

Accounting answered 14/10 at 12:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.