mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 22:21:04 +01:00
Implemented new seeder function
This commit is contained in:
parent
52873c2e75
commit
b909e87228
@ -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
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user