Renamed general and mode constants and implemented a check to verify that constants are just defined ones over the whole repository

This commit is contained in:
2025-08-13 19:10:44 +02:00
parent 004507e233
commit db0e030900
171 changed files with 474 additions and 345 deletions

View File

@@ -27,7 +27,7 @@ server:
unsafe-inline: true
domains:
canonical:
- "project.{{ primary_domain }}"
- "project.{{ PRIMARY_DOMAIN }}"
docker:
services:

View File

@@ -83,12 +83,12 @@
login_port: "{{ database_port }}"
query: "SELECT id, name FROM ldap_auth_sources"
register: ldap_entries
when: enable_debug | bool
when: MODE_DEBUG | bool
- name: Debug LDAP entries
debug:
var: ldap_entries
when: enable_debug | bool
when: MODE_DEBUG | bool
# This works just after the first admin login
# @todo Remove and replace trough LDAP RBAC group
@@ -96,7 +96,7 @@
shell: >
docker compose exec web bash -c "
cd /app &&
RAILS_ENV={{ INFINITO_ENVIRONMENT | lower }} bundle exec rails runner \"
RAILS_ENV={{ ENVIRONMENT | lower }} bundle exec rails runner \"
user = User.find_by(mail: '{{ users.administrator.email }}');
if user.nil?;
puts 'User with email {{ users.administrator.email }} not found.';

View File

@@ -29,7 +29,7 @@
- name: Set settings in OpenProject
shell: >
docker compose exec web bash -c "cd /app &&
RAILS_ENV={{ INFINITO_ENVIRONMENT | lower }} bundle exec rails runner \"Setting[:{{ item.key }}] = '{{ item.value }}'\""
RAILS_ENV={{ ENVIRONMENT | lower }} bundle exec rails runner \"Setting[:{{ item.key }}] = '{{ item.value }}'\""
args:
chdir: "{{ docker_compose.directories.instance }}"
loop: "{{ openproject_rails_settings | dict2items }}"

View File

@@ -1,5 +1,5 @@
openproject_ldap:
name: "{{ primary_domain }}" # Display name for the LDAP connection in OpenProject
name: "{{ PRIMARY_DOMAIN }}" # Display name for the LDAP connection in OpenProject
host: "{{ ldap.server.domain }}" # LDAP server address
port: "{{ ldap.server.port }}" # LDAP server port (typically 389 or 636)
account: "{{ ldap.dn.administrator.data }}" # Bind DN (used for authentication)