title: puppet agent broke after manual run
body: <p>I had to 2 agent nodes with one master configuration. Certificates were signed normally. I ran the manifest on the master <code>puppet apply site.pp</code>, and everything went fine. However, no agents executed the manifest so I ran on one of them : </p>
  
  <p><code>sudo puppet agent -t</code> with the output <code>Notice: Skipping run of Puppet configuration client; administratively disabled (Reason: 'Disabled by default on new or unconfigured old installations');
  Use 'puppet agent --enable' to re-enable.</code></p>
  
  <p>So that I ran, <code>sudo puppet agent --enable</code> and then again <code>sudo puppet agent -t --debug</code>. And here's the output</p>
  
  <p><code>Warning: Unable to fetch my node definition, but the agent run will continue:
  Warning: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cluster-b665-m.c.some_project-182409.internal]
  Info: Retrieving pluginfacts
  Debug: Failed to load library 'msgpack' for feature 'msgpack'
  Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
  Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
  Debug: Creating new connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Debug: Starting connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cluster-b665-m.c.some_project-182409.internal]
  Debug: Failed to load library 'msgpack' for feature 'msgpack'
  Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
  Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
  Debug: Creating new connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Debug: Starting connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://cluster-b665-m.europe-west1-b.c.some_project-182409.internal/pluginfacts: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cluster-b665-m.c.some_project-182409.internal]
  Wrapped exception:
  ...
  Wrapped exception:
  SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cluster-b665-m.c.some_project-182409.internal]
  Debug: Finishing transaction 29645260
  Debug: Loading external facts from /var/lib/puppet/facts.d
  Debug: Failed to load library 'msgpack' for feature 'msgpack'
  Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
  Debug: catalog supports formats: pson b64_zlib_yaml yaml dot raw
  Debug: Creating new connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Debug: Starting connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Error: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cluster-b665-m.c.some_project-182409.internal]
  Warning: Not using cache on failed catalog
  Error: Could not retrieve catalog; skipping run
  Debug: Executing '/etc/puppet/etckeeper-commit-post'
  Debug: Creating new connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Debug: Starting connection for https://cluster-b665-m.europe-west1-b.c.some_project-182409.internal:8140
  Error: Could not send report: SSL_connect returned=1 errno=0 state=error: certificate verify failed: [unable to get local issuer certificate for /CN=cluster-b665-m.c.some_project-182409.internal]</code></p>
  
  <p>How can I deal with that ? </p>