This post will illustrate how you can set up a Red Hat middleware provisioning environment using Linux (Fedora), KVM (virtualisation), JBoss EAP (application server) and JBoss Operations Network (supervision) and Apache httpd (mod_cluster).
A use case could be : JON detects that the an application deployed on EAP can not handle the charge any more and triggers the creation of a new virtual machine that contains a new JBoss EAP. Via a bundle the application is deployed in EAP who joins the cluster.
Main post :
Here I more or less dumped the technical steps to follow without explaining step by steps (as it's a long post use ctrl+F to be happy)
On host:
- sudo service sshd start
- cd /app/script
- ./initSshId.sh (removing the file /etc/.ssh/know_hosts might be necessary)
- Creation of a soft link for your script from the JON/bin directory to the script directory. As you can see in the next screen shot, this will allow
JON to discover automatically those scripts (without soft link you would need a plugin)
cd /app/jon/jon-server/bin
ln -s /app/script/virsh-start.sh virsh-start.sh

