简体   繁体   中英

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

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?

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

https is missing installation page on redhat? https://www.redhat.com/sysadmin/webserver-use-https

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM