Skip to content
Snippets Groups Projects
Commit 05c66638 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

Fixed configuration

parent 346742e5
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,20 @@ ...@@ -96,7 +96,20 @@
- -
name: "enabling Karaage configuration" name: "enabling Karaage configuration"
shell: cp -rvpf /root/karaage3.1.7/conf/karaage3-wsgi.conf /etc/httpd/conf.d/karaage3-wsgi.conf shell: cp -rvpf /root/karaage3.1.7/conf/karaage3-wsgi.conf /etc/httpd/conf.d/karaage3-wsgi.conf
sudo: true
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
-
name: "Enable shibboleth, should it be in shibboleth-sp role?"
lineinfile: insertafter="{{ item.after }}" line="{{ item.line }}" dest=/etc/{% if ansible_os_family == 'RedHat' %}httpd{% else %}apache2{% endif %}/conf-available/karaage3-wsgi.conf state=present
with_items:
- { after: 'EOF', line: '<Location /karaage>' }
- { after: '^<Location /karaage>', line: 'AuthType Shibboleth' }
- { after: '^AuthType Shibboleth', line: 'ShibRequireSession On' }
- { after: '^ShibRequireSession On', line: 'ShibUseHeaders On' }
- { after: '^ShibUseHeaders On', line: 'require valid-user' }
- { after: '^require valid-user', line: '</Location>' }
sudo: true
- -
name: "Installing other packages Debian" name: "Installing other packages Debian"
apt: name={{ item }} update_cache=yes apt: name={{ item }} update_cache=yes
......
...@@ -59,12 +59,12 @@ ...@@ -59,12 +59,12 @@
# Note: Inside SSLCACertificatePath you need hash symlinks # Note: Inside SSLCACertificatePath you need hash symlinks
# to point to the certificate files. Use the provided # to point to the certificate files. Use the provided
# Makefile to update the hash symlinks after changes. # Makefile to update the hash symlinks after changes.
{% if ldapCaCertFile is defined and ldapCaCertSrc is defined %} {% if ldapCaCertFile is defined and ldapCaCertDir is defined %}
SSLCACertificatePath {{ ldapCaCertSrc }} SSLCACertificatePath {{ ldapCaCertDir }}
SSLCACertificateFile {{ ldapCaCertSrc }}/{{ ldapCaCertFile }} SSLCACertificateFile {{ ldapCaCertDir }}/{{ ldapCaCertFile }}
{% else %} {% else %}
SSLCACertificatePath /etc/ssl/certs/ SSLCACertificatePath /etc/ssl/certs/
SSLCACertificateFile {{ x509_cacert_file }} SSLCACertificateFile {{ x509_cacert_file }}
{% endif %} {% endif %}
# Certificate Revocation Lists (CRL): # Certificate Revocation Lists (CRL):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment