Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Commit

Permalink
Document variables, fix README, remove dependency on tomcat8 role
Browse files Browse the repository at this point in the history
  • Loading branch information
whikloj committed Nov 10, 2017
1 parent 6910ec6 commit 367de0f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 33 deletions.
43 changes: 13 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,35 @@ An Ansible role that installs [Cantaloupe](https://github.com/medusa-project/can

Available variables are listed below, along with default values:

Version to install:
```
# Cantaloupe version
cantaloupe_version: 3.3.1
```

Where to install:
```
# Where to extract the cantaloupe archive
cantaloupe_install_root: /opt
```

Name of symlink to create:
```
# Target of a symlink from the extracted cantaloupe archive
cantaloupe_symlink: /opt/cantaloupe
```

Where to put log files:
```
# Path to cantaloupe logs
cantaloupe_log_path: /var/log/cantaloupe
```

Cantaloupe user/group:
```
# Cantaloupe user
cantaloupe_user: cantaloupe
# Cantaloupe group
cantaloupe_group: cantaloupe
```
Whether to deploy the Cantaloupe war to the Tomcat webapps directory:
```
# Whether to automatically deploy the war file
cantaloupe_deploy_war: no
```

Where to deploy wars to:
```
# Where to deploy the war to
cantaloupe_deploy_war_path: /path/to/tomcat/webapps
```

What to name the war (which is also the Tomcat context path):
```
# Name for the deployed war (minus .war), this is the context path
cantaloupe_deploy_war_filename: cantaloupe
# Create the filesystem cache directory automatically
cantaloupe_create_FilesystemCache_dir: no
```

There are many more options documented in the [defaults/main.yml](defaults/main.yml)
There are many more options available and documented in the [defaults/main.yml](defaults/main.yml)

## Dependencies

* [islandora.tomcat8](https://github.com/Islandora-DevOps/ansible-role-tomcat8)
* A tomcat 8 container like [islandora.tomcat8](https://github.com/Islandora-DevOps/ansible-role-tomcat8)

## Example Playbook

Expand Down
11 changes: 10 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
---

# Cantaloupe version
cantaloupe_version: 3.3.1
# Where to extract the cantaloupe archive
cantaloupe_install_root: /opt
# Target of a symlink from the extracted cantaloupe archive
cantaloupe_symlink: /opt/cantaloupe
# Path to cantaloupe logs
cantaloupe_log_path: /var/log/cantaloupe
# Cantaloupe user
cantaloupe_user: cantaloupe
# Cantaloupe group
cantaloupe_group: cantaloupe

# Whether to automatically deploy the war file
cantaloupe_deploy_war: no
# Where to deploy the war to
cantaloupe_deploy_war_path: /path/to/tomcat/webapps
# Name for the deployed war (minus .war), this is the context path
cantaloupe_deploy_war_filename: cantaloupe

# Create the filesystem cache directory automatically
cantaloupe_create_FilesystemCache_dir: no

###########################################################################
Expand Down
3 changes: 1 addition & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ galaxy_info:
- server
- web
- installer
dependencies:
- { role: islandora.tomcat8 }
dependencies: []

0 comments on commit 367de0f

Please sign in to comment.