-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #201 from whikloj/all-in-one
Move it all in-house
- Loading branch information
Showing
173 changed files
with
7,830 additions
and
73 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
roles/external | ||
.DS_Store | ||
.project | ||
.github |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#solr_version: "6.6.0" | ||
#solr_version: "7.7.3" | ||
|
||
solr_cores: | ||
- ISLANDORA | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Ansible Role: ActiveMQ | ||
|
||
An Ansible role that installs [ActiveMQ](http://activemq.apache.org/) on: | ||
|
||
* Centos/RHEL 7.x | ||
* Ubuntu Xenial | ||
|
||
## Role Variables | ||
|
||
Available variables are listed below, along with default values: | ||
|
||
What version to install: | ||
``` | ||
activemq_version: 5.14.5 | ||
``` | ||
|
||
Where to install to: | ||
``` | ||
activemq_install_root: /opt | ||
``` | ||
|
||
User\group to install as: | ||
``` | ||
activemq_user: ubuntu | ||
``` | ||
|
||
Whether to create user if not present: | ||
``` | ||
activemq_create_user: yes | ||
``` | ||
|
||
## Dependencies | ||
|
||
* None | ||
|
||
## Example Playbook | ||
|
||
- hosts: webservers | ||
roles: | ||
- { role: Islandora-Devops.activemq } | ||
|
||
## License | ||
|
||
MIT |
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,6 @@ | ||
--- | ||
|
||
activemq_version: 5.14.5 | ||
activemq_install_root: /opt | ||
activemq_user: activemq | ||
activemq_create_user: yes |
33 changes: 33 additions & 0 deletions
33
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
|
||
- name: Download and unarchive | ||
unarchive: | ||
remote_src: yes | ||
src: http://archive.apache.org/dist/activemq/{{ activemq_version }}/apache-activemq-{{ activemq_version }}-bin.tar.gz | ||
dest: "{{ activemq_install_root }}" | ||
owner: "{{ activemq_user }}" | ||
creates: "{{ activemq_install_root }}/activemq" | ||
|
||
- name: Move activemq | ||
command: mv "{{ activemq_install_root }}/apache-activemq-{{ activemq_version }}" "{{ activemq_install_root }}/activemq" | ||
args: | ||
creates: "{{ activemq_install_root }}/activemq" | ||
|
||
# Transitional removal of old-style init.d symlink | ||
# This task can be removed in the future. | ||
- name: Remove init.d symlink | ||
file: | ||
path: /etc/init.d/activemq | ||
state: absent | ||
|
||
- name: Create systemd unit | ||
template: | ||
src: activemq.service.j2 | ||
dest: /etc/systemd/system/activemq.service | ||
|
||
- name: Reload systemd | ||
systemd: | ||
daemon-reload: yes | ||
enabled: yes | ||
state: started | ||
name: activemq |
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,12 @@ | ||
--- | ||
|
||
- include: user.yml | ||
tags: | ||
- activemq | ||
- activemq-user | ||
|
||
- include: install.yml | ||
tags: | ||
- activemq | ||
- activemq-install | ||
|
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,8 @@ | ||
--- | ||
|
||
- name: Create ActiveMQ system user | ||
user: | ||
name: "{{ activemq_user }}" | ||
system: yes | ||
state: present | ||
when: activemq_create_user |
15 changes: 15 additions & 0 deletions
15
roles/internal/Islandora-Devops.activemq/templates/activemq.service.j2
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,15 @@ | ||
[Unit] | ||
Description=Apache ActiveMQ | ||
After=network-online.target | ||
|
||
[Service] | ||
Type=forking | ||
PIDFile={{activemq_install_root}}/activemq/data/activemq.pid | ||
WorkingDirectory={{activemq_install_root}}/activemq/bin | ||
ExecStart={{activemq_install_root}}/activemq/bin/activemq start | ||
ExecStop={{activemq_install_root}}/activemq/bin/activemq stop | ||
Restart=on-abort | ||
User={{activemq_user}} | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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,87 @@ | ||
# Ansible Role: Alpaca | ||
|
||
An Ansible role that installs [Alpaca](https://github.com/Islandora-CLAW/Alpaca) in a Tomcat 8 servlet container on: | ||
|
||
* Centos/RHEL 7.x | ||
* Ubuntu Xenial | ||
|
||
## Role Variables | ||
|
||
Available variables are listed below, along with default values: | ||
|
||
Install from source or from maven: | ||
``` | ||
alpaca_from_source: no | ||
``` | ||
|
||
Which version to install: | ||
``` | ||
alpaca_version: main | ||
``` | ||
|
||
Where to clone Alpaca to: | ||
``` | ||
alpaca_clone_directory: /opt/alpaca | ||
``` | ||
|
||
Karaf repo: | ||
``` | ||
alpaca_karaf_repos: | ||
- mvn:ca.islandora.alpaca/islandora-karaf/LATEST/xml/features | ||
``` | ||
|
||
Which features to install: | ||
``` | ||
alpaca_features: | ||
- islandora-http-client | ||
- islandora-connector-broadcast | ||
- islandora-indexing-triplestore | ||
- islandora-indexing-fcrepo | ||
``` | ||
|
||
Where Karaf is: | ||
``` | ||
alpaca_karaf_dir: /opt/karaf | ||
``` | ||
|
||
Where the Karaf configuration files are: | ||
``` | ||
alpaca_karaf_etc_dir: "{{ alpaca_karaf_dir }}/etc" | ||
``` | ||
|
||
Karaf user: | ||
``` | ||
alpaca_karaf_user: karaf | ||
``` | ||
|
||
Local path for maven repository: | ||
``` | ||
alpaca_local_mvn_path: /opt/maven/repo | ||
``` | ||
|
||
Configuration settings: | ||
``` | ||
alpaca_settings: | ||
- pid: ca.islandora.alpaca.connector.broadcast | ||
settings: | ||
input.stream: activemq:queue:islandora-connector-broadcast | ||
- pid: ca.islandora.alpaca.indexing.triplestore | ||
settings: | ||
error.maxRedeliveries: 10 | ||
input.stream: activemq:queue:islandora-indexing-triplestore | ||
triplestore.baseUrl: http://localhost:8080/bigdata/namespace/kb/sparql | ||
``` | ||
|
||
## Dependencies | ||
|
||
* Apache Karaf | ||
|
||
## Example Playbook | ||
|
||
- hosts: webservers | ||
roles: | ||
- { role: islandora.alpaca } | ||
|
||
## License | ||
|
||
MIT |
Oops, something went wrong.