-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-268: Changes needed to allow RHEL based builds via Islandora-pl…
- Loading branch information
Showing
44 changed files
with
435 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ roles/external | |
.project | ||
.github | ||
islandora_base | ||
!inventory/vagrant | ||
inventory/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,6 @@ deprecation_warnings = False | |
|
||
[ssh_connection] | ||
pipelining = True | ||
|
||
[colors] | ||
verbose = bright blue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 23 additions & 8 deletions
31
roles/internal/Islandora-Devops.activemq/tasks/install.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 17 additions & 10 deletions
27
roles/internal/Islandora-Devops.alpaca/templates/startup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
|
||
if [ -z "$JAVA_HOME" ]; then | ||
if [ -d "/usr/lib/jvm/java-11-openjdk-amd64" ]; then | ||
# Make a guess because this is only for Ubuntu | ||
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 | ||
else | ||
echo "Cannot locate JAVA, please define JAVA_HOME." | ||
exit 1 | ||
fi | ||
if [ "$(grep -Ei 'debian|buntu|mint' /etc/*release)" ]; then | ||
if [ -d "/usr/lib/jvm/java-11-openjdk-amd64" ]; then | ||
# Make a guess for Debian based systems. | ||
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 | ||
fi | ||
elif [ "$(grep -Ei 'fedora|redhat' /etc/*release)" ]; then | ||
if [ -d "/usr/lib/jvm/jre" ] || [ -f "/usr/lib/jvm/jre" ] || [ -L "/usr/lib/jvm/jre" ]; then | ||
# Make a guess for RHEL based systems. | ||
export JAVA_HOME=/usr/lib/jvm/jre | ||
fi | ||
else | ||
echo "Cannot locate JAVA, please define JAVA_HOME." | ||
fi | ||
fi | ||
|
||
# Source the config file. | ||
. ${ALPACA_HOME}/${ALPACA_CONFIG} | ||
source ${ALPACA_HOME}/${ALPACA_CONFIG} | ||
|
||
${JAVA_HOME}/bin/java -Dislandora.alpaca.log=${ALPACA_LOG_LEVEL} -Xmx${ALPACA_HEAP} -jar ${ALPACA_JAR} -c ${ALPACA_PROPERTIES} > ${ALPACA_LOG_DIR}/alpaca.log & | ||
${JAVA_HOME}/bin/java -Dislandora.alpaca.log=${ALPACA_LOG_LEVEL} -Xmx${ALPACA_HEAP} -jar ${ALPACA_JAR} -c ${ALPACA_PROPERTIES} > ${ALPACA_LOG_DIR}/alpaca.log & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
46 changes: 46 additions & 0 deletions
46
roles/internal/Islandora-Devops.blazegraph/tasks/config-RedHat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
|
||
- name: Copy templated blazegraph config files | ||
template: | ||
src: "{{ item }}" | ||
dest: "{{ blazegraph_home_dir }}/conf/{{ item }}" | ||
owner: "{{ blazegraph_user }}" | ||
group: "{{ blazegraph_user }}" | ||
with_items: | ||
- RWStore.properties | ||
notify: restart tomcat9 | ||
|
||
- name: Copy blazegraph config files | ||
copy: | ||
src: "{{ item }}" | ||
dest: "{{ blazegraph_home_dir }}/conf/{{ item }}" | ||
owner: "{{ blazegraph_user }}" | ||
group: "{{ blazegraph_user }}" | ||
with_items: | ||
- blazegraph.properties | ||
- inference.nt | ||
notify: restart tomcat9 | ||
|
||
- name: Drop in templated web.xml file | ||
template: | ||
src: web.xml.j2 | ||
dest: "{{ blazegraph_webxml_path }}" | ||
owner: "{{ blazegraph_user }}" | ||
group: "{{ blazegraph_user }}" | ||
notify: restart tomcat9 | ||
when: blazegraph_webxml_template | ||
|
||
- name: Reload systemd daemon | ||
systemd: | ||
daemon-reload: yes | ||
|
||
- name: Stop tomcat9 service | ||
service: | ||
name: tomcat9 | ||
state: stopped | ||
|
||
- name: Start tomcat9 service | ||
service: | ||
name: tomcat9 | ||
state: started | ||
|
11 changes: 11 additions & 0 deletions
11
roles/internal/Islandora-Devops.blazegraph/tasks/define-home.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
|
||
# Include variables and define needed variables. | ||
- name: Include OS-specific variables. | ||
include_vars: "{{ ansible_os_family }}.yml" | ||
|
||
- name: Define blazegraph_log_dir | ||
set_fact: | ||
blazegraph_log_dir: "{{ __blazegraph_log_dir }}" | ||
when: blazegraph_log_dir is not defined | ||
|
File renamed without changes.
31 changes: 31 additions & 0 deletions
31
roles/internal/Islandora-Devops.blazegraph/tasks/install-RedHat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
|
||
- name: Create blazegraph home directory | ||
file: | ||
path: "{{ blazegraph_home_dir }}" | ||
state: directory | ||
owner: "{{ blazegraph_user }}" | ||
group: "{{ blazegraph_user }}" | ||
|
||
- name: Create blazegraph conf directory | ||
file: | ||
path: "{{ blazegraph_home_dir }}/conf" | ||
state: directory | ||
owner: "{{ blazegraph_user }}" | ||
group: "{{ blazegraph_user }}" | ||
|
||
- name: Create blazegraph data directory | ||
file: | ||
path: "{{ blazegraph_home_dir }}/data" | ||
state: directory | ||
owner: "{{ blazegraph_user }}" | ||
group: "{{ blazegraph_user }}" | ||
|
||
- name: Create file with sandbox overrides | ||
copy: | ||
dest: "/etc/systemd/system/tomcat9.service.d/override.conf" | ||
content: | | ||
[Service] | ||
ReadWritePaths={{ blazegraph_home_dir }}/data/ | ||
mode: '0644' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Set variables for Debian | ||
# | ||
__blazegraph_log_dir: /var/log/tomcat9/blazegraph | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Set variables for RedHat | ||
# | ||
__blazegraph_log_dir: /opt/tomcat/logs/blazegraph | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
roles/internal/Islandora-Devops.cantaloupe/tasks/install-RedHat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
|
||
- name: Install Cantaloupe | ||
unarchive: | ||
remote_src: yes | ||
src: https://github.com/medusa-project/cantaloupe/releases/download/v{{ cantaloupe_version }}/cantaloupe-{{ cantaloupe_version }}.zip | ||
dest: "{{ cantaloupe_install_root }}" | ||
owner: "{{ cantaloupe_user }}" | ||
group: "{{ cantaloupe_group }}" | ||
creates: "{{ cantaloupe_install_root }}/cantaloupe-{{ cantaloupe_version }}" | ||
|
||
- name: Create Cantaloupe symlink | ||
file: | ||
state: link | ||
src: "{{ cantaloupe_install_root }}/cantaloupe-{{ cantaloupe_version }}" | ||
dest: "{{ cantaloupe_symlink }}" | ||
owner: "{{ cantaloupe_user }}" | ||
group: "{{ cantaloupe_group }}" | ||
|
||
- name: Create Cantaloupe log path | ||
file: | ||
state: directory | ||
path: "{{ cantaloupe_log_path }}" | ||
owner: "{{ cantaloupe_user }}" | ||
group: "{{ cantaloupe_group }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
roles/internal/Islandora-Devops.cantaloupe/tasks/os-vars.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
|
||
# Include variables and define needed variables. | ||
- name: Include OS-specific variables. | ||
include_vars: "{{ ansible_os_family }}.yml" | ||
|
||
- name: Define cantaloupe_log_path | ||
set_fact: | ||
cantaloupe_log_path: "{{ __cantaloupe_log_path }}" | ||
when: cantaloupe_log_path is not defined | ||
|
||
- name: Define cantaloupe_log_error_FileAppender_pathname | ||
set_fact: | ||
cantaloupe_log_error_FileAppender_pathname: "{{ __cantaloupe_log_error_FileAppender_pathname }}" | ||
when: cantaloupe_log_error_FileAppender_pathname is not defined | ||
|
||
- name: Define cantaloupe_log_access_FileAppender_pathname | ||
set_fact: | ||
cantaloupe_log_access_FileAppender_pathname: "{{ __cantaloupe_log_access_FileAppender_pathname }}" | ||
when: cantaloupe_log_access_FileAppender_pathname is not defined | ||
|
||
|
Oops, something went wrong.