-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for a test CAS server
We are using https://github.com/django-cas-ng/demo-cas-server By default, settings are hardcoded, so it will listen on port 8100 of localhost. In order to install it, ansible variable archivematica_src_install_cas needs to be se to true
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
|
||
# Install django cas auth server | ||
|
||
- name: "Clone CAS server code" | ||
git: | ||
repo: "https://github.com/django-cas-ng/demo-cas-server" | ||
dest: "{{ archivematica_src_dir }}/demo-cas-server" | ||
version: "master" | ||
accept_hostkey: "yes" | ||
|
||
- name: "Create virtualenv and install requirements" | ||
pip: | ||
requirements: "{{ archivematica_src_dir }}/demo-cas-server/requirements.txt" | ||
virtualenv: "/usr/share/archivematica/virtualenvs/demo-cas-server" | ||
virtualenv_python: python3.6 | ||
|
||
- name: "Create systemd template" | ||
template: | ||
src: etc/systemd/system/demo-cas-server.service | ||
dest: "/etc/systemd/system/demo-cas-server.service" | ||
|
||
- name: "Start/Restart CAS server" | ||
service: | ||
name: "demo-cas-server" | ||
state: "restarted" | ||
enabled: "yes" | ||
daemon_reload: "yes" |
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