O'Reilly logo

Salt Cookbook by Anirban Saha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the WAR file in Apache Tomcat

After all the configurations have been completed, the final step is to deploy the WAR files, which contain all the application-related files and are served by the application server. In this recipe, we will learn how to deploy WAR files using Salt.

How to do it...

We will use the same minion as in the previous recipe.

For this example, we will use a sample WAR file called sample.war. Many such example application WAR files can be found online, for example at this location https://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/sample.war.

The file is downloaded and located in the /opt/salt-cookbook/development/tomcat/files/sample.war location.

  1. Create and edit /opt/salt-cookbook/development/tomcat/deploy.sls to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required