<p>On the agent I needed to set the server ip set to puppet in 
/etc/hosts </p>

<p>I had accidentally put it on the agents ip address and then been incorrectly assuming i'd done something wrong on the master rather than the agent.</p>

<p>(server ip)  (domian name)   puppet </p>

CC BY-SA 4.0
2019-12-12T21:08:53.203Z
2019-12-12T21:08:53.203Z
doug
<p>I am using:</p>

<ul>
<li>Puppet server version: 1.2.0</li>
<li>Amazon Linux 2</li>
</ul>

<p>I have master and agent set in /etc/puppet/puppet.conf and currently I get back only the certificate for the master on the master. The agent's DNS name under [agent] and [main] is</p>

<p>certname = doug2c.mylabserver.com</p>

<p>but </p>

<p><code>puppet cert list -all</code>   returns:</p>

<pre><code>+ "doug1c.mylabserver.com" (SHA256) C2:AE:78:00:8D:EE:40:09:06:26:10:AD:82:47:58:26:C7:86:F5:A1:8A:D8:B1:BE:81:C2:AF:D1:70:F9:04:EF (alt names: "DNS:doug1c.mylabserver.com", "DNS:puppet", "DNS:puppet.mylabserver.com")
</code></pre>

<p>I tried useing find to locate where it was set to puppet with</p>

<pre><code>find / -name doug1c
</code></pre>

<p>but that didn't work.</p>

<dns><puppet>
Where do I set that agent certificate for Puppet on Amazon Linux?
doug
# Where do I set that agent certificate for Puppet on Amazon Linux?

(Asked by: username_0 on 2019-12-12)

I am using:

Puppet server version: 1.2.0
Amazon Linux 2

I have master and agent set in /etc/puppet/puppet.conf and currently I get back only the certificate for the master on the master. The agent's DNS name under [agent] and [main] is
certname = username_02c.mylabserver.com
but 
puppet cert list -all   returns:
+ "username_01c.mylabserver.com" (SHA256) C2:AE:78:00:8D:EE:40:09:06:26:10:AD:82:47:58:26:C7:86:F5:A1:8A:D8:B1:BE:81:C2:AF:D1:70:F9:04:EF (alt names: "DNS:username_01c.mylabserver.com", "DNS:puppet", "DNS:puppet.mylabserver.com")

I tried useing find to locate where it was set to puppet with
find / -name username_01c

but that didn't work.

**Tags:** dns, puppet


---

## 1 answers

### Answer by username_0 on 2019-12-12. Score: 1

On the agent I needed to set the server ip set to puppet in
/etc/hosts

I had accidentally put it on the agents ip address and then been incorrectly assuming i'd done something wrong on the master rather than the agent.

(server ip) (domian name) puppet


---

