Skip to content
Snippets Groups Projects
Verified Commit b3392233 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

Compatibility with both Debian Jessie and Stretch

parent 7e69ab75
No related branches found
No related tags found
No related merge requests found
...@@ -4,17 +4,26 @@ ...@@ -4,17 +4,26 @@
- request-tracker4 - request-tracker4
- rt4-fcgi - rt4-fcgi
- rt4-db-postgresql - rt4-db-postgresql
- cpanminus
- debconf-utils - debconf-utils
tags: tags:
- packages - packages
- rt - rt
- name: Have RT packages needed in Debian Jessie installed
apt: name={{item}} state=present
with_items:
- cpanminus
when: debian_version == 'jessie'
tags:
- packages
- rt
- name: Have RT additional Perl packages installed - name: Have RT additional Perl packages installed
cpanm: name={{item}} system_lib=yes cpanm: name={{item}} system_lib=yes
with_items: with_items:
- RT::Extension::LDAPImport - RT::Extension::LDAPImport
- RT::Authen::ExternalAuth - RT::Authen::ExternalAuth
when: debian_version == 'jessie'
tags: tags:
- rt - rt
- packages - packages
......
...@@ -31,8 +31,10 @@ Set($LDAPMapping, {Name => 'sAMAccountName', # required ...@@ -31,8 +31,10 @@ Set($LDAPMapping, {Name => 'sAMAccountName', # required
WorkPhone => 'telephoneNumber', WorkPhone => 'telephoneNumber',
Organization => 'departmentName'}); Organization => 'departmentName'});
{% if debian_version == 'jessie' %}
# Add to any existing plugins # Add to any existing plugins
Set(@Plugins, qw(RT::Extension::LDAPImport)); Set(@Plugins, qw(RT::Extension::LDAPImport));
{% endif %}
# If you want to sync Groups from LDAP into RT # If you want to sync Groups from LDAP into RT
...@@ -44,7 +46,9 @@ Set($LDAPGroupMapping, {Name => 'cn', ...@@ -44,7 +46,9 @@ Set($LDAPGroupMapping, {Name => 'cn',
Description => 'description'}); Description => 'description'});
### Login ### Login
{% if debian_version == 'jessie' %}
Plugin('RT::Authen::ExternalAuth'); Plugin('RT::Authen::ExternalAuth');
{% endif %}
Set($ExternalAuthPriority, [ 'My_LDAP' ]); Set($ExternalAuthPriority, [ 'My_LDAP' ]);
Set($ExternalInfoPriority, [ 'My_LDAP' ]); Set($ExternalInfoPriority, [ 'My_LDAP' ]);
Set($AutoCreateNonExternalUsers, 1); Set($AutoCreateNonExternalUsers, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment