SRV records not working correctly

22 views
Skip to first unread message

Matthew Ceroni

unread,
Jun 23, 2016, 4:35:42 PM6/23/16
to Puppet Users
I am attempting to load balance two master servers via SRV records.


As you can see at line 6 it finds 2 records for the specified SRV. At line 15 it makes a connection to one of the Puppet servers.

However at line 29 it connects to https://puppet:8140 which is the default puppet server if one isn't specified. 

Further down the connection details you see it does another SRV lookup (line 76), finds 2 records (as it should) and makes a connection to one of them for catalog compilation.

So SRV records appear to be working a little. Not sure what is happening around line 29 to cause it to just try and connect to puppet.

Thanks

Martin Jackson

unread,
Jun 24, 2016, 11:41:04 AM6/24/16
to Puppet Users
You might need:
    pluginsource       = puppet:///plugins
    pluginfactsource   = puppet:///pluginfacts

In your puppet.conf.

Josh Cooper

unread,
Jun 24, 2016, 4:15:44 PM6/24/16
to puppet...@googlegroups.com
On Fri, Jun 24, 2016 at 8:41 AM, Martin Jackson <martin.h...@gmail.com> wrote:
You might need:
    pluginsource       = puppet:///plugins
    pluginfactsource   = puppet:///pluginfacts

In your puppet.conf.

That's good advice if you're using puppet < 4 and the debug output seems to match that (since the host in the URL is "puppet"):

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

Note that issue should be fixed in 4.0 (see https://tickets.puppetlabs.com/browse/PUP-1035).

We've had a report of a related issue in 4.x (see https://tickets.puppetlabs.com/browse/PUP-6297). Maybe related?
 

On Thursday, June 23, 2016 at 3:35:42 PM UTC-5, Matthew Ceroni wrote:
I am attempting to load balance two master servers via SRV records.


As you can see at line 6 it finds 2 records for the specified SRV. At line 15 it makes a connection to one of the Puppet servers.

However at line 29 it connects to https://puppet:8140 which is the default puppet server if one isn't specified. 

Further down the connection details you see it does another SRV lookup (line 76), finds 2 records (as it should) and makes a connection to one of them for catalog compilation.

So SRV records appear to be working a little. Not sure what is happening around line 29 to cause it to just try and connect to puppet.

Thanks

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c358a880-b138-4df1-bdc3-78a792809ce1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Josh Cooper
Developer, Puppet

PuppetConf 2016, October 17-21, San Diego, California
Early Birds save $350 - Register by June 30th
Reply all
Reply to author
Forward
0 new messages