Hi

I'm using vagrant/puppet to create development environments for our team. 
Part of the set-up is creating a reverse ssh tunnel between the vagrant box 
and a central server. I'd like to be able to automatically allocate that 
port number when 'provision' is run and use it in a couple of resource 
definitions.

Having Googled around I've not found an idiomatic way to do this. I tried 
using a custom fact which exec'd a script to find a free port. The fact 
worked fine when invoked via facter but hung when run via puppet.

For now I've settled on using an exec resource to post-process a file and 
set the port number. Other resources can access the port number by grepping 
that modified file. None of that feels correct.

My best guess is that a custom fact is the way to go but I'd appreciate 
some pointers.

Thanks!
Mark

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to