Shell How to open a connection from one jail to another jail

Hello,

I am writting a shell script to automaticaly download and install wordpress.
I my setup is made out of 2 FreeBSD jails..
1 for web server
1 for database server

The script is run from the webserver and I want to know if I can somehow create the database on the other jail at the same time?

From from I understand, the jail cannot see each other and one way would be to run the script from the host and then jexec to the database jail but this is not what I want as the admin responsible for this task will not be allowed access to the host..

Thank you in advance
 
Jails cannot see each other on a file or process based level, they certainly can 'see' each other using the network. Simply run the script on Jail A and have it connect to the IP address of Jail B. It works the same way as a PHP script would running on Jail A.
 
Back
Top