Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Java Tomcat

This project installs a Tomcat instance based on the cookbook of opscode-cookbooks with minor changes. If you do no other modifications and use vagrant you will find your tomcat server under 192.168.33.11:8080. If you use any other infrastructure you will find your Tomcat-Server under the servers ip:8080. This project installs a standard management user which can be used for the Web-Management-Portal of the Tomcat-Server: Username: admin password: password A normal user will also be created. The credentials are: Username: user password: password

The credentials can be modified before the installation in the admin.json file file.

The credentials can be modified after the installation in the tomcat-users.xml. For this use case follow the official documentation.

Dependencies of needed Software or existing Chef recieps (Cookbooks)

###Needed Software If you use the Vagrant solution you only have to install Vagrant and Virtualbox. Additional you will need the Vagrant-Berkshelf Plugin. For installation tutorials read the Vagrant-Berkshelf Plugin README. If you use this cookbook as a standalone project you have to install Chef first.

Cookbooks

Installation of this project

Check first if you have installed Vagrant and Virtualbox. After that check out the project in an user writeable folder. Open the commandline in this folder and just type: vagrant up

Manual installation of this project

If you use this project as a standalone project, keep in mind that is only tested and verified with the Linux hashicorp/precise32 vagrant box. If you have a vm, where you want to setup this project, you should have the chefdk installed on your vm. Berkshelf is need for the Dependency Management ( this is already included in the chefdk). When you have installed the chefdk (or Chef + Berkshelf),you should switch to the git repo. Now you can resolve the dependencies by typing:

  • berks install

After that you can start the Chef installation with: sudo chef-client --local-mode --runlist 'recipe[apt::default],recipe[java::default],recipe[tomcat::default],recipe[tomcat::users]'

Configuration of the Tomcat-Server

This project configure a management user for the management Tomcat-Web-Interface. The Username is "admin" and the password is "password" both without the quotes. If you want to change these credentials you have to edit the admin.json file file. The normal user configuration can be found and changed with the file user.json

License and Author

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.