Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)

Solved2.51K viewsPuppetpuppet

Failed to open TCP connection to puppet:8140 (getaddrinfo: Name or service not known)

I am getting this error while executing the below command

[[email protected] /]# puppetserver ca list
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: Name or service not known)

Share:
vito Selected answer as best September 21, 2021
1

You need to add the public IP of your puppet master instance in both master and slave instances. Execute the below command in both the instances,

sudo nano /etc/hosts

Add the public IP of your master instance and puppetserver name. For example,

3.135.227.10 puppet

Change the public IP as per your instance.

Share:
vito Selected answer as best September 21, 2021
1