puppet-tilde
puppet-tilde copied to clipboard
getaddrinfo
When I run the agent, I get this error. Not sure what's wrong.
λ aether ~ → sudo puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: getaddrinfo: Name or service not known
Info: Retrieving pluginfacts
Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/pluginfacts: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Info: Retrieving plugin
Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate': getaddrinfo: Name or service not known
Error: /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo: Name or service not known
Wrapped exception:
getaddrinfo: Name or service not known
Error: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Error: Could not send report: getaddrinfo: Name or service not known
Me too.
I think what fixed this was a mixture of adding server=tilde
to the [main]
section of /etc/puppet/puppet.conf
and having this in /etc/hosts
:
127.0.1.1 matilde.club tilde
And /etc/hostname
:
matilde.club
At least some of that made it work. Good luck!
Okay, then I get these errors:
λ aether ~ → sudo puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Server hostname 'aether.[MYDOMAIN]' did not match server certificate; expected one of aether.[SEARCH DOMAIN], DNS:aether.[SEARCH DOMAIN], DNS:puppet, DNS:puppet.[SEARCH DOMAIN]
I'm here too:
erver hostname 'tilde' did not match server certificate
Okay I have it running :) Make sure you're running the right version of Puppet.
What do you have? I have 3.7.3.
The same.
OK! Got it. You should run 3.4.3 even though it's old. Then I generated a new SSL certificate for the actual hostname/domain. Then it worked! :D
Though 3.4.x+
was not immediately clear that I could not run anything but the 3.4
series. I interpreted it as anything above 3.4
. In retrospect it seems more obvious.