mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation
This commit is contained in:
25
roles/web-app-pgadmin/vars/configuration.yml
Normal file
25
roles/web-app-pgadmin/vars/configuration.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: "latest"
|
||||
server_mode: False # If true then the preconfigured database file is loaded. Recommended False. True is a security risk.
|
||||
master_password_required: True # Master password is required. Recommended True. False is a security risk.
|
||||
oauth2_proxy:
|
||||
application: "application"
|
||||
port: "80"
|
||||
features:
|
||||
matomo: true
|
||||
css: true
|
||||
portfolio_iframe: true
|
||||
central_database: true
|
||||
oauth2: true
|
||||
csp:
|
||||
flags:
|
||||
style-src:
|
||||
unsafe-inline: true
|
||||
script-src-elem:
|
||||
unsafe-inline: true
|
||||
whitelist:
|
||||
font-src:
|
||||
- "data:"
|
||||
docker:
|
||||
services:
|
||||
database:
|
||||
enabled: true
|
14
roles/web-app-pgadmin/vars/db_config.yml
Normal file
14
roles/web-app-pgadmin/vars/db_config.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: "{{ applications.postgres.credentials.postgres_password }}"
|
||||
|
||||
# Here you can add more databases
|
5
roles/web-app-pgadmin/vars/main.yml
Normal file
5
roles/web-app-pgadmin/vars/main.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
application_id: "pgadmin"
|
||||
database_type: "postgres"
|
||||
database_host: "{{ 'central-' + database_type if applications | is_feature_enabled('central_database',application_id) }}"
|
||||
pgadmin_user: 5050
|
||||
pgadmin_group: "{{pgadmin_user}}"
|
Reference in New Issue
Block a user