redmine: set the secret token, configure the log level.

This commit is contained in:
Andrea Dell'Amico 2017-09-27 20:46:33 +02:00
parent 436c7d6829
commit 950e8e4d27
4 changed files with 15 additions and 2 deletions

View File

@ -14,6 +14,7 @@ redmine_db_host: localhost
redmine_inst_dir: redmine redmine_inst_dir: redmine
redmine_user: redmine redmine_user: redmine
redmine_group: redmine redmine_group: redmine
redmine_log_level: warn
# Minutes, from 1 to 60 # Minutes, from 1 to 60
redmine_ldap_sync_freq: 10 redmine_ldap_sync_freq: 10
# users, groups, all # users, groups, all

View File

@ -57,7 +57,14 @@
tags: redmine tags: redmine
- name: Install the configuration file. Needed to send email - name: Install the configuration file. Needed to send email
copy: src=redmine-configuration.yml dest=/{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/config/configuration.yml owner=root group={{ redmine_group }} mode=0440 template: src=redmine-configuration.yml.j2 dest=/{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/config/configuration.yml owner=root group={{ redmine_group }} mode=0440
notify:
- apache2 reload when needed
- Reload unicorn when needed
tags: redmine
- name: Install the additional environment file
template: src=redmine_additional_environment.rb.j2 dest=/{{ redmine_glob_root_dir }}/{{ redmine_inst_dir }}/config/additional_environment.rb owner=root group={{ redmine_group }} mode=0440
notify: notify:
- apache2 reload when needed - apache2 reload when needed
- Reload unicorn when needed - Reload unicorn when needed

View File

@ -34,7 +34,9 @@ production:
# #
# If you have a load-balancing Redmine cluster, you have to use the # If you have a load-balancing Redmine cluster, you have to use the
# same secret token on each machine. # same secret token on each machine.
#secret_token: 'change it to a long random string' {% if redmine_secret_token is defined %}
secret_token: '{{ redmine_secret_token }}'
{% endif %}
# specific configuration options for development environment # specific configuration options for development environment
# that overrides the default ones # that overrides the default ones

View File

@ -0,0 +1,3 @@
config.action_controller.allow_forgery_protection = false
config.log_level = :{{ redmine_log_level }}