mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Implemented pre configuration for pgadmin
This commit is contained in:
14
roles/docker-pgadmin/vars/configuration.yml
Normal file
14
roles/docker-pgadmin/vars/configuration.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
pgadmin_host_server_file: "{{docker_compose.directories.volumes}}servers.json"
|
||||
pgadmin_docker_server_file: "/pgadmin4/servers.json"
|
||||
pgadmin_host_password_file: "{{docker_compose.directories.volumes}}.pgpass"
|
||||
pgadmin_docker_password_file: "/pgpass"
|
||||
|
||||
pgadmin_servers:
|
||||
- name: "Central Postgres Database"
|
||||
host: "{{ database_host }}"
|
||||
port: "{{ database_port }}"
|
||||
username: "postgres"
|
||||
maintenance_db: "postgres"
|
||||
password: "{{ central_postgres_password }}"
|
||||
|
||||
# Here you can add more databases
|
@@ -1,3 +1,6 @@
|
||||
application_id: "pgadmin"
|
||||
database_type: "postgres"
|
||||
database_host: "{{ 'central-' + database_type if applications[application_id].database.central_storage }}"
|
||||
application_id: "pgadmin"
|
||||
database_type: "postgres"
|
||||
database_host: "{{ 'central-' + database_type if applications[application_id].database.central_storage }}"
|
||||
database_var_file: "{{playbook_dir}}/roles/docker-central-database/vars/database.yml"
|
||||
pgadmin_user: 5050
|
||||
pgadmin_group: "{{pgadmin_user}}"
|
Reference in New Issue
Block a user