forked from ISTI-ansible-roles/ansible-roles
simplesaml: fix a problem in the main configuration. It's now possible to enable/disable debug and error output.
This commit is contained in:
parent
62539644e8
commit
47ce8bf05c
|
@ -24,6 +24,11 @@ simplesaml_protectindexpage: 'true'
|
||||||
simplesaml_protectmetadata: 'false'
|
simplesaml_protectmetadata: 'false'
|
||||||
# ERR, WARNING, NOTICE, INFO, DEBUG
|
# ERR, WARNING, NOTICE, INFO, DEBUG
|
||||||
simplesaml_loglevel: NOTICE
|
simplesaml_loglevel: NOTICE
|
||||||
|
simplesaml_debug_saml: 'false'
|
||||||
|
simplesaml_debug_backtraces: 'true'
|
||||||
|
simplesaml_debug_validatexml: 'false'
|
||||||
|
simplesaml_php_show_errors: 'false'
|
||||||
|
simplesaml_error_reporting: 'false'
|
||||||
|
|
||||||
# Change this one when we are setting up a cluster of simplesaml servers
|
# Change this one when we are setting up a cluster of simplesaml servers
|
||||||
simplesaml_create_self_signed_cert_host: '{{ ansible_fqdn }}'
|
simplesaml_create_self_signed_cert_host: '{{ ansible_fqdn }}'
|
||||||
|
|
|
@ -63,19 +63,19 @@
|
||||||
tags: [ 'simplesaml', 'simplesaml_php', 'simplesaml_config' ]
|
tags: [ 'simplesaml', 'simplesaml_php', 'simplesaml_config' ]
|
||||||
|
|
||||||
- name: Install the simplesaml config files
|
- name: Install the simplesaml config files
|
||||||
template: src={{ item }}.php dest={{ simplesaml_install_dir }}/config/{{ item }}.php owner=root group={{ simplesaml_user }} mode=0640
|
template: src={{ item }}.php.j2 dest={{ simplesaml_install_dir }}/config/{{ item }}.php owner=root group={{ simplesaml_user }} mode=0640
|
||||||
with_items:
|
with_items:
|
||||||
- config
|
- config
|
||||||
- authsources
|
- authsources
|
||||||
tags: [ 'simplesaml', 'simplesaml_php', 'simplesaml_config' ]
|
tags: [ 'simplesaml', 'simplesaml_php', 'simplesaml_config' ]
|
||||||
|
|
||||||
- name: Install some metadata files
|
- name: Install some metadata files
|
||||||
template: src={{ item }}.php dest={{ simplesaml_install_dir }}/metadata/{{ item }}.php owner=root group={{ simplesaml_user }} mode=0640
|
template: src={{ item }}.php.j2 dest={{ simplesaml_install_dir }}/metadata/{{ item }}.php owner=root group={{ simplesaml_user }} mode=0640
|
||||||
with_items:
|
with_items:
|
||||||
- saml20-idp-hosted
|
- saml20-idp-hosted
|
||||||
|
|
||||||
- name: Install some metadata files
|
- name: Install some metadata files
|
||||||
template: src={{ item }}.php dest={{ simplesaml_install_dir }}/metadata/{{ item }}.php owner=root group={{ simplesaml_user }} mode=0640
|
template: src={{ item }}.php.j2 dest={{ simplesaml_install_dir }}/metadata/{{ item }}.php owner=root group={{ simplesaml_user }} mode=0640
|
||||||
with_items:
|
with_items:
|
||||||
- saml20-sp-remote
|
- saml20-sp-remote
|
||||||
when: simplesaml_global_sp_remote_template
|
when: simplesaml_global_sp_remote_template
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Install the nginx virtualhosts
|
- name: Install the nginx virtualhosts
|
||||||
template: src=nginx-virthost.conf dest=/etc/nginx/sites-available/{{ item.virthost }} owner=root group=root mode=0444
|
template: src=nginx-virthost.conf.j2 dest=/etc/nginx/sites-available/{{ item.virthost }} owner=root group=root mode=0444
|
||||||
with_items: '{{ phpfpm_pools }}'
|
with_items: '{{ phpfpm_pools }}'
|
||||||
notify: Reload nginx
|
notify: Reload nginx
|
||||||
|
|
||||||
|
|
|
@ -96,8 +96,6 @@ $config = [
|
||||||
*/
|
*/
|
||||||
'timezone' => null,
|
'timezone' => null,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************
|
/**********************************
|
||||||
| SECURITY CONFIGURATION OPTIONS |
|
| SECURITY CONFIGURATION OPTIONS |
|
||||||
**********************************/
|
**********************************/
|
||||||
|
@ -231,10 +229,11 @@ $config = [
|
||||||
* If you want to disable debugging completely, unset this option or set it to an
|
* If you want to disable debugging completely, unset this option or set it to an
|
||||||
* empty array.
|
* empty array.
|
||||||
*/
|
*/
|
||||||
|
{% endraw %}
|
||||||
'debug' => [
|
'debug' => [
|
||||||
'saml' => false,
|
'saml' => {{ simplesaml_debug_saml}},
|
||||||
'backtraces' => true,
|
'backtraces' => {{ simplesaml_debug_backtraces }},
|
||||||
'validatexml' => false,
|
'validatexml' => {{ simplesaml_debug_validatexml }},
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -244,9 +243,9 @@ $config = [
|
||||||
* When 'errorreporting' is enabled, a form will be presented for the user to report
|
* When 'errorreporting' is enabled, a form will be presented for the user to report
|
||||||
* the error to 'technicalcontact_email'.
|
* the error to 'technicalcontact_email'.
|
||||||
*/
|
*/
|
||||||
'showerrors' => true,
|
'showerrors' => {{ simplesaml_php_show_errors }},
|
||||||
'errorreporting' => true,
|
'errorreporting' => {{ simplesaml_error_reporting }},
|
||||||
|
{% raw %}
|
||||||
/*
|
/*
|
||||||
* Custom error show function called from SimpleSAML\Error\Error::show.
|
* Custom error show function called from SimpleSAML\Error\Error::show.
|
||||||
* See docs/simplesamlphp-errorhandling.txt for function code example.
|
* See docs/simplesamlphp-errorhandling.txt for function code example.
|
||||||
|
@ -730,7 +729,9 @@ $config = [
|
||||||
'et', 'he', 'id', 'sr', 'lv', 'ro', 'eu', 'el', 'af', 'zu', 'xh',
|
'et', 'he', 'id', 'sr', 'lv', 'ro', 'eu', 'el', 'af', 'zu', 'xh',
|
||||||
],
|
],
|
||||||
'language.rtl' => ['ar', 'dv', 'fa', 'ur', 'he'],
|
'language.rtl' => ['ar', 'dv', 'fa', 'ur', 'he'],
|
||||||
|
{% endraw %}
|
||||||
'language.default' => '{{ simplesaml_language_default }}',
|
'language.default' => '{{ simplesaml_language_default }}',
|
||||||
|
{% raw %}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Options to override the default settings for the language parameter
|
* Options to override the default settings for the language parameter
|
Loading…
Reference in New Issue