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

Commit

Permalink
Changes for Fedora 5 (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
whikloj authored and dannylamb committed Dec 18, 2018
1 parent 1357703 commit 7b6462b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 28 deletions.
16 changes: 15 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
---

fcrepo_syn_version: 0.1.0
# Version of Syn to install
fcrepo_syn_version: 0.3.0

# Where to store Syn
fcrepo_syn_folder: /opt/syn

# User for the tomcat container
fcrepo_syn_user: tomcat8

# Tomcat home
fcrepo_syn_tomcat_home: /var/lib/tomcat8

# Where to save the public key
fcrepo_syn_default_public_key_path: "{{ fcrepo_syn_tomcat_home }}/conf/public.key"

# The HTTP header to put the roles on
fcrepo_syn_auth_header:

# Configured sites
fcrepo_syn_sites: []
# - url:
# algorithm:
Expand Down
26 changes: 0 additions & 26 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,3 @@
path: "{{ fcrepo_syn_tomcat_home }}/conf/context.xml"
line: "<Valve className=\"ca.islandora.syn.valve.SynValve\" pathname=\"{{ fcrepo_syn_tomcat_home }}/conf/syn-settings.xml\" />"
insertbefore: "</Context>"

- name: Modify web.xml
blockinfile:
path: "{{ fcrepo_syn_tomcat_home }}/webapps/fcrepo/WEB-INF/web.xml"
insertbefore: "^</web-app>$"
marker: "<!-- {mark} ANSIBLE MANAGED BLOCK -->"
block: |
<security-constraint>
<web-resource-collection>
<web-resource-name>Fedora4</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<security-role>
<role-name>islandora</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>fcrepo</realm-name>
</login-config>
2 changes: 1 addition & 1 deletion templates/syn-settings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!-- This file is managed with Ansible -->
<config version='1'>
<config version='1' header='{{ fcrepo_syn_auth_header }}'>
{% for site in fcrepo_syn_sites %}
<site
{%- if site.url is defined %}
Expand Down

0 comments on commit 7b6462b

Please sign in to comment.