Raj Parpani
04/10/2024, 9:48 PMRaj Parpani
04/10/2024, 9:48 PMRaj Parpani
04/10/2024, 10:03 PMcsharpsteen
04/10/2024, 10:11 PMpuppet
agent run opens a new network connection to the server, so puppet
should eventually resolve to the new IP address after DNS caches expire.
If that isn't happening, that would indicate the hostname data those agents are receiving has not been updated with the new IP address for the puppet
hostname.csharpsteen
04/10/2024, 10:11 PMhttps://www.cyberciti.biz/media/new/cms/2017/04/dns.jpg▾
Raj Parpani
04/10/2024, 10:23 PMpuppet
hostname. How to resolve this issueRaj Parpani
04/10/2024, 10:24 PMbastelfreak
04/10/2024, 10:24 PMpuppet
(which you probably injected in /etc/hosts?)csharpsteen
04/10/2024, 10:24 PMgetent hosts puppet
or nslookup puppet
on the nodes that aren't connecting in. If that returns the old IP address, then you need to update the hostname data.
How to make that update is 100% a site-specific operation. Punching it into an UI, updating a BIND zone database, etc.bastelfreak
04/10/2024, 10:25 PMRaj Parpani
04/10/2024, 10:26 PMnslookup puppet on one of the nodes
Raj Parpani
04/10/2024, 10:27 PMbastelfreak
04/10/2024, 10:27 PMbastelfreak
04/10/2024, 10:27 PMRaj Parpani
04/10/2024, 10:27 PMbastelfreak
04/10/2024, 10:28 PMRaj Parpani
04/10/2024, 10:28 PMbastelfreak
04/10/2024, 10:28 PMserver = <http://foo.local.something.com|foo.local.something.com>
csharpsteen
04/10/2024, 10:28 PMnslookup puppet
returns the new IP address, does puppet agent -t
run without error?Raj Parpani
04/10/2024, 10:28 PMbastelfreak
04/10/2024, 10:28 PMbastelfreak
04/10/2024, 10:28 PMcsharpsteen
04/10/2024, 10:28 PMRaj Parpani
04/10/2024, 10:28 PMbastelfreak
04/10/2024, 10:28 PMbastelfreak
04/10/2024, 10:29 PMRaj Parpani
04/10/2024, 10:29 PMbastelfreak
04/10/2024, 10:29 PMbastelfreak
04/10/2024, 10:29 PMRaj Parpani
04/10/2024, 10:29 PM