I am trying to get access to what port is being used by a client when
it runs. The ultimate goal is to be able to run production puppet on
port 8140, and a staging/test puppet on port 8150. A client could be
converted between one or the other by overriding masterport on the
command line, but once it has been switched it needs to continue to
use that environment.

To do so, we'd like to know which port it's talking to during that
run. I tried to use the custom fact located at
http://svn.inf-ra.uni-jena.de/trac/sysconf/browser/branches/puppet-test/conf/facts/puppet.rb
but that never seems to return anything. I've tested a couple of ways:

[EMAIL PROTECTED] ~]# export FACTER_LIB=/var/lib/puppet/facts/
[EMAIL PROTECTED] ~]# ls /var/lib/puppet/facts/
puppet.rb
[EMAIL PROTECTED] ~]# facter puppetmasterport
[EMAIL PROTECTED] ~]#

I've also tried putting an alert() in, but in both cases no
information is returned.

Can anyone point me in the right direction? Are we going about this in
the wrong manner?

Thanks in advance,
Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to