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

Apache Tomcat packages, files, and services

In this recipe, we will learn how to install Tomcat packages, configure the appropriate files needed for Tomcat to function, and configure the Tomcat service.

How to do it...

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

  1. Create and edit /opt/salt-cookbook/development/tomcat/init.sls to have the following entries:
    include: - tomcat.java tomcat-server: archive: - extracted - name: /opt/ - source: http://mirror.nus.edu.sg/apache/tomcat/tomcat- 6/v6.0.43/bin/apache-tomcat-6.0.43.tar.gz - source_hash: md5=0abbb1852a608c8b4ccb7003c700337b - archive_format: tar - if_missing: /opt/apache-tomcat-6.0.43/ - require: - alternatives: set_java_alternative tomcat_symlink: file.symlink: - name: /opt/tomcat - target: ...

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