On Tue, 2017-09-26 at 07:10 -0700, Matt Cahill wrote: > Something in node.rb is doing a DNS query > for newserver.samplecompany.com and using the answer to get the > config from foreman and deliver the facts. See no. 2.
That's not quite right, I'm afraid. We treat the incoming argument to node.rb as canonical, and don't do any further lookups, see [1]. Once we have the certname, we use it directly in the the call to Foreman, see [2] The test I would make is this - if you call "/etc/puppetlabs/puppet/node.rb newserver.samplecompany.com" yourself, what answer do you get from Foreman? I would *strongly* hope it's not the result for "someserver.samplecompany.com". Assuming so, then the focus needs to be on how Puppet decides what argument to use with node.rb ... [1] https://github.com/theforeman/puppet-foreman/blob/master/files/exte rnal_node_v2.rb#L361 [2] https://github.com/theforeman/puppet-foreman/blob/master/files/exte rnal_node_v2.rb#L197 -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
