Puppet: puppet agent --configprint server doesn't return a valid DNS name.

0 votes

On running the command puppet agent --configprint server doesn't return a valid DNS name. How do i correct this?

Aug 2, 2019 in Puppet by Sam
• 6,260 points
94 views

1 answer to this question.

0 votes

Agents trust the master only if they contact it at one of the valid hostnames specified when the master was installed.

On the node, if the results of puppet agent --configprint server don't return one of the valid DNS names you chose during installation of the master, the node and master can't establish communication.

  1. To edit the master's hostname on nodes, in /etc/puppetlabs/puppet/puppet.conf, change the server setting to a valid DNS name.
  2. To reset the master's valid DNS names, run:
/etc/init.d/pe-nginx stop
puppet cert clean <MASTER_CERTNAME> 
puppet cert generate <MASTER_CERTNAME> --dns_alt_names=<COMMA-SEPARATED_LIST_OF_DNS_NAMES>
/etc/init.d/pe-nginx start
answered Aug 2, 2019 by Sirajul
• 57,760 points

Related Questions In Puppet

0 votes
1 answer

How do I start a puppet server?

Hey if you're using Ubuntu, you can ...READ MORE

answered Feb 21, 2019 in Puppet by Kavyashri
81 views
0 votes
1 answer

Is it possible to install puppet agent in a docker container on linux?

Hey @Janice, this is pretty simple. Create ...READ MORE

answered Mar 12, 2019 in Puppet by Jason
481 views
0 votes
1 answer

Puppet: Upgrading a Puppet server

Upgrading the puppetserver package effectively upgrades Puppet Server.  The puppetserver package, in turn, ...READ MORE

answered Aug 2, 2019 in Puppet by Sirajul
• 57,760 points
56 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
669 views
+2 votes
1 answer
0 votes
1 answer

Managing a Domain Name System (DNS) nameserver file with Puppet.

In this case, you could  build a private ...READ MORE

answered Jul 26, 2019 in Puppet by Sirajul
• 57,760 points
109 views