Hi Ramin, Is this feature/variable turned on by default in PE 3.3? I am unable to see a fact for 'servername'. I am probably trying to access it incorrectly. To test, I issue an mco command:
mco inventory <hostname> I don't see servername available. Thanks for any additional help you can provide. Daren On Wednesday, December 3, 2014 2:40:14 PM UTC-5, Ramin K wrote: > > There is already a set of server facts available during a Puppet run. > > > https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#puppet-master-variables > > > Because you're running PE you should be able to query which servers are > using which server through mcollective. > > Ramin > > > On 12/3/14 11:20 AM, Daren Arnold wrote: > > Tony, > > > > Thanks for your reply. I was hoping to avoid inspecting all of the > > agents (either puppet.conf files or running puppet agent -t --debug) > > manually. I am looking into an approach that involves creating an > > external fact to query the value of 'server' in the puppet.conf. That > > may be what you were suggesting? Either way, I'll post how that option > > goes. > > > > -Daren > > > > > > On Wednesday, December 3, 2014 1:38:12 PM UTC-5, Tony Thayer wrote: > > > > The agents should have the master defined in their puppet.conf file. > > Failing that, you can manually run the agent on a system with > > "puppet agent -t --debug" and look for entries that look like > > "Caching connection for https://puppet.local:8140" > > > > - Tony > > > > On Wednesday, December 3, 2014 7:25:36 AM UTC-8, Daren Arnold wrote: > > > > Hello, > > > > Newb question here. I have inherited a PE 3.3 setup that uses a > > Puppet master hub, spoke and about 100 agents. The agents were > > installed at various times - some were connected directly to the > > hub and others connected to the spoke. > > > > Is there a way to determine which agents are connected to the > > hub versus the spoke? I couldn’t find a fact that reflected the > > Puppet master. Also, the console doesn’t seem to provide this > > information. > > > > Thanks for any help you can provide. > > > > Daren > > > > -- > > 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 <javascript:> > > <mailto:puppet-users+unsubscr...@googlegroups.com <javascript:>>. > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/puppet-users/770bda3a-3797-4469-8f07-ce68955b1d84%40googlegroups.com > > > < > https://groups.google.com/d/msgid/puppet-users/770bda3a-3797-4469-8f07-ce68955b1d84%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > > For more options, visit https://groups.google.com/d/optout. > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/c2ab756e-8404-4cfd-8099-a28c82c6cd71%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.