mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 10:19:09 +00:00 
			
		
		
		
	Overall optimations for application id naming
This commit is contained in:
		| @@ -6,8 +6,8 @@ _database_central_enabled:        "{{ applications | get_app_conf(database_appli | ||||
|  | ||||
| # Definition | ||||
| database_name:      "{{ applications | get_app_conf( database_application_id, 'database.name', false, _database_consumer_entity_name ) }}"                      # The overwritte configuration is needed by bigbluebutton | ||||
| database_instance:  "{{ _database_central_name if _database_central_enabled else database_name }}"                                                            # This could lead to bugs at dedicated database @todo cleanup | ||||
| database_host:      "{{ _database_central_name if _database_central_enabled else 'database' }}"                                                               # This could lead to bugs at dedicated database @todo cleanup | ||||
| database_instance:  "{{ _database_central_name if _database_central_enabled else database_name }}"                                                              # This could lead to bugs at dedicated database @todo cleanup | ||||
| database_host:      "{{ _database_central_name if _database_central_enabled else 'database' }}"                                                                 # This could lead to bugs at dedicated database @todo cleanup | ||||
| database_username:  "{{ applications | get_app_conf(database_application_id, 'database.username', false, _database_consumer_entity_name)}}"                     # The overwritte configuration is needed by bigbluebutton | ||||
| database_password:  "{{ applications | get_app_conf(database_application_id, 'credentials.database_password', true) }}" | ||||
| database_port:      "{{ ports.localhost.database[ _database_id ] }}" | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| {# This template needs to be included in docker-compose.yml which contain a database and additional volumes #} | ||||
| volumes: | ||||
| {% if not applications | get_app_conf(application_id, 'features.central_database', False)%} | ||||
| {% if not applications | get_app_conf(application_id, 'features.central_database', False) and applications | get_app_conf(application_id, 'docker.services.database.enabled', False) %} | ||||
|   database: | ||||
|     name: {{ database_volume }} | ||||
| {% endif %} | ||||
|   | ||||
| @@ -1,2 +1,2 @@ | ||||
| # @See https://chatgpt.com/share/67a23d18-fb54-800f-983c-d6d00752b0b4 | ||||
| docker_compose: "{{ path_docker_compose_instances | get_docker_paths(application_id) }}" | ||||
| docker_compose: "{{ application_id | get_docker_paths(path_docker_compose_instances) }}" | ||||
		Reference in New Issue
	
	Block a user