d4science-gcube/group_vars/redmine/all.yml: install the wiki-external plugin.

library/roles/redmine/defaults/main.yml: manage the wiki-external plugin.
library/roles/ubuntu-deb-general/tasks/manage_su_limits.yml: Change the pam su configuration to load pam_limits.
This commit is contained in:
Andrea Dell'Amico 2015-09-07 16:08:11 +02:00
parent 1cc6b453ea
commit 049716ddf2
4 changed files with 19 additions and 7 deletions

View File

@ -3,17 +3,17 @@
# Note: this plugin depends on apache. It's not usable with nginx yet # Note: this plugin depends on apache. It's not usable with nginx yet
# #
redmine_version: 2.5.2 redmine_version: 2.5.2
redmine_inst_name: nemis redmine_inst_name: redmine
redmine_main_project: nemis redmine_main_project: redmine
redmine_db_user: redm_nemis redmine_db_user: redm_db_user
redmine_db_name: redm_nemis redmine_db_name: redm_db_name
redmine_db_host: localhost redmine_db_host: localhost
# The commented variables need to be set on the playbooks # The commented variables need to be set on the playbooks
#redmine_glob_root_dir: /srv/redmine #redmine_glob_root_dir: /srv/redmine
# It is a redmine_glob_root_dir subdirectory # It is a redmine_glob_root_dir subdirectory
redmine_inst_dir: nemis redmine_inst_dir: redmine
redmine_user: nemis redmine_user: redmine
redmine_group: nemis redmine_group: redmine
redmine_glob_user: www-data redmine_glob_user: www-data
redmine_glob_group: www-data redmine_glob_group: www-data
@ -45,6 +45,7 @@ rm_unreadissues_plugin: False
rm_usability_plugin: False rm_usability_plugin: False
rm_mylynconnector_plugin: False rm_mylynconnector_plugin: False
rm_addsubversionlinks_plugin: False rm_addsubversionlinks_plugin: False
rm_wiki_external_plugin: False
# #
# IMPORTANT: these are mutually exclusive. One of the two needs to be set to True # IMPORTANT: these are mutually exclusive. One of the two needs to be set to True
ruby_use_mod_passenger: True ruby_use_mod_passenger: True

View File

@ -383,4 +383,9 @@
- redmine_plugins - redmine_plugins
- redmine_plugins_mentions - redmine_plugins_mentions
- name: Install the external wiki plugin
git: repo=https://github.com/nutso/redmine-plugin-wiki-external.git dest={{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/plugins/wiki_external update=no
when: rm_wiki_external_plugin
notify: Bundle install and reconfigure redmine
tags: [ 'redmine', 'redmine_plugins', 'redmine_plugins_wiki_external' ]

View File

@ -21,4 +21,6 @@
when: is_precise and ansible_kernel != "3.2.0-4-amd64" when: is_precise and ansible_kernel != "3.2.0-4-amd64"
- include: unattended-upgrades.yml - include: unattended-upgrades.yml
- include: install_external_ca_cert.yml - include: install_external_ca_cert.yml
- include: manage_su_limits.yml

View File

@ -0,0 +1,4 @@
---
- name: Fix debian/ubuntu broke behaviour. The su pam config does not load pam_limits
lineinfile: dest=/etc/pam.d/su line="session required pam_limits.so" insertafter="^#\ \(Replaces\ the\ use\ of\ /etc/limits.*$"
tags: [ 'su', 'pam_limits']