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

Update to run on Ubuntu 20.04 and Tomcat 9 #13

Merged
merged 2 commits into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ fcrepo_version: 5.1.0

User with permissions to install:
```
fcrepo_user: {{ tomcat8_server_user }}
fcrepo_user: {{ tomcat9_server_user }}
```

Path to put Fedora data directory (see the notes section below)
```
fcrepo_data_dir: /var/lib/tomcat8/fcrepo4-data
fcrepo_data_dir: /var/lib/tomcat9/fcrepo4-data
```

A home directory for Fedora
Expand All @@ -33,7 +33,7 @@ fcrepo_home_dir: /opt/fcrepo

Where to put the Fedora war file
```
fcrepo_war_path: "{{ tomcat8_home }}/webapps/fcrepo.war"
fcrepo_war_path: "{{ tomcat9_home }}/webapps/fcrepo.war"
```

The activemq configuration file template name
Expand Down
6 changes: 3 additions & 3 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
fcrepo_version: 5.1.0
fcrepo_user: "{{ tomcat8_server_user }}"
fcrepo_data_dir: /var/lib/tomcat8/fcrepo4-data
fcrepo_user: "{{ tomcat9_server_user }}"
fcrepo_data_dir: /var/lib/tomcat9/fcrepo4-data
fcrepo_binary_directory: "{{ fcrepo_data_dir}}/binaries"
fcrepo_war_path: "{{ tomcat8_home }}/webapps/fcrepo.war"
fcrepo_war_path: "{{ tomcat9_home }}/webapps/fcrepo.war"
fcrepo_home_dir: /opt/fcrepo
fcrepo_activemq_template: activemq.xml.j2
fcrepo_activemq_broker_url: "tcp://localhost:61616"
Expand Down
8 changes: 4 additions & 4 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
with_items:
- claw.cnd
- fcrepo-config.xml
notify: restart tomcat8
notify: restart tomcat9

- name: Copy templated repository.json
template:
src: "{{ fcrepo_persistence }}-repository.json"
dest: "{{ fcrepo_home_dir }}/configs/repository.json"
owner: "{{ fcrepo_user }}"
group: "{{ fcrepo_user }}"
notify: restart tomcat8
notify: restart tomcat9

- name: Copy fedora activemq configuration
template:
src: "{{ fcrepo_activemq_template }}"
dest: "{{ fcrepo_config_dir }}/activemq.xml"
owner: "{{ fcrepo_user }}"
group: "{{ fcrepo_user }}"
notify: restart tomcat8
notify: restart tomcat9

# ADDED by dbernstein
- name: Template out allowed external content paths
Expand All @@ -32,4 +32,4 @@
dest: "{{ fcrepo_allowed_external_content_file }}"
owner: "{{ fcrepo_user }}"
group: "{{ fcrepo_user }}"
notify: restart tomcat8
notify: restart tomcat9
4 changes: 2 additions & 2 deletions tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
- name: Install python dependencies
apt:
pkg:
- python-psycopg2
- python-mysqldb
- python3-psycopg2
- python3-mysqldb
- mysql-client
state: present
update_cache: yes
Expand Down