Implemented new seeder function

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-06 14:22:41 +01:00
parent 52873c2e75
commit b909e87228
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@
- name: seed database values - name: seed database values
command: command:
cmd: "python database_entry_seeder.py databases.csv {{docker_compose_project_name}} {{database_host}} {{database_databasename}} {{database_username}} {{database_password}}" cmd: "python database_entry_seeder.py databases.csv {{database_instance}} {{database_databasename}} {{database_username}} {{database_password}}"
chdir: "{{backup_docker_to_local_folder}}" chdir: "{{backup_docker_to_local_folder}}"
when: > when: >
database_host is defined or database_host is defined or

View File

@ -1,6 +1,6 @@
docker_compose_instance_directory: "{{ path_docker_compose_instances + docker_compose_project_name + '/' }}" docker_compose_instance_directory: "{{ path_docker_compose_instances + docker_compose_project_name + '/' }}"
database_instance: "{{ 'central-' + database_type if enable_central_database else docker_compose_project_name }}"
database_host: "{{ 'central-' + database_type if enable_central_database else 'database' }}" database_host: "{{ 'central-' + database_type if enable_central_database else 'database' }}"
database_databasename: "{{ docker_compose_project_name }}" database_databasename: "{{ docker_compose_project_name }}"
database_username: "{{ docker_compose_project_name }}" database_username: "{{ docker_compose_project_name }}"
database_version: "{{ postgres_default_version }}" database_version: "{{ postgres_default_version }}"
# This will lead to problems with bbb and openproject