Rex::Apache::Deploy::JBoss - Deploy application to JBoss.
With this module you can deploy EAR/WAR archives to JBoss.
use Rex::Apache::Deploy qw/JBoss/; context_path "/myapp"; task "dodeploy", "j01", "j02", sub { deploy "myapp.ear", deploy_path => "/opt/jboss/server/default/deploy"; };
This function deploys the given WAR archive. For that it will connect to the Tomcat manager. You have to define username and password for the Tomcat manager in the %option hash. If the Tomcat manager isn't available under its default location /manager you can also define the location with the manager_url option.
task "dodeploy", "j01", "j02", sub { deploy "myapp.war", context_path => "/myapp", deploy_path => "/opt/jboss/server/default/deploy"; };
This function sets the context path for the application that gets deployed. This is a global setting. If you want to specify a custom context path for your application you can also do this as an option for the deploy function.
context_path "/myapp";
To install Rex::Apache::Deploy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex::Apache::Deploy
CPAN shell
perl -MCPAN -e shell install Rex::Apache::Deploy
For more information on module installation, please visit the detailed CPAN module installation guide.