I am trying to automate creation of ServiceMix instances. I can login to a root instance and run commands to create child instances, and I can extract the SSH port number of the instances created. Next step is to login to the newly created instance.
However, SSH connections are non-dynamic as far as I can see, I can't seem to create new SSH connections as a task.
I also tried to put a variable as the port on a SSH connection, but it wont accept that (clears it and puts back the numeric value).
Any ideas how this can be done?