diff --git a/group_vars/all/09_ports.yml b/group_vars/all/09_ports.yml index 8560abc6..e4346d23 100644 --- a/group_vars/all/09_ports.yml +++ b/group_vars/all/09_ports.yml @@ -8,6 +8,7 @@ ports: ldap: 4182 openproject: 4183 yourls: 4184 + pgadmin: 4185 ldap: openldap: 389 http: diff --git a/roles/docker-pgadmin/templates/env.j2 b/roles/docker-pgadmin/templates/env.j2 index dc9a84ea..ec1e7a17 100644 --- a/roles/docker-pgadmin/templates/env.j2 +++ b/roles/docker-pgadmin/templates/env.j2 @@ -1,5 +1,5 @@ # Configuration @see https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html PGADMIN_DEFAULT_EMAIL={{ applications[application_id].users.administrator.email }} -PGADMIN_DEFAULT_PASSWORD={{ applications.[application_id].users.administrator.password }} +PGADMIN_DEFAULT_PASSWORD={{ applications[application_id].users.administrator.password }} PGADMIN_DISABLE_POSTFIX=True \ No newline at end of file diff --git a/roles/docker-pgadmin/vars/main.yml b/roles/docker-pgadmin/vars/main.yml index eaf271b1..674ad11b 100644 --- a/roles/docker-pgadmin/vars/main.yml +++ b/roles/docker-pgadmin/vars/main.yml @@ -1,3 +1,3 @@ application_id: "pgadmin" -database_type: "postgresql" +database_type: "postgres" database_host: "{{ 'central-' + database_type if applications[application_id].database.central_storage }}" \ No newline at end of file diff --git a/roles/docker-portfolio/templates/config.yaml.j2 b/roles/docker-portfolio/templates/config.yaml.j2 index 65737811..c661fdfc 100644 --- a/roles/docker-portfolio/templates/config.yaml.j2 +++ b/roles/docker-portfolio/templates/config.yaml.j2 @@ -451,6 +451,19 @@ cards: iframe: {{ applications | get_landingpage_iframe_enabled('phpmyadmin') }} {% endif %} + +{% if "pgadmin" in group_names %} + +- icon: + class: "fa-solid fa-database" + title: "pgAdmin" + text: "Take control of your PostgreSQL databases with pgAdmin — the most advanced and feature-rich administration tool available. Streamline your workflows with an elegant UI and comprehensive capabilities tailored for professionals." + url: https://{{domains.pgadmin}} + link_text: "Launch Your PostgreSQL Dashboard!" + iframe: {{ applications | get_landingpage_iframe_enabled('pgadmin') }} + +{% endif %} + {% if "snipe_it" in group_names %} - icon: @@ -523,7 +536,7 @@ navigation: children: - link: accounts -{% if ["discourse","moodle","listmonk","openproject","taiga","snipe_it","matrix","bigbluebutton","mailu", "matomo","phpadmin","keycloak", "ldap", "baserow","yourls","nextcloud"] | any_in(group_names) %} +{% if ["discourse","moodle","listmonk","openproject","taiga","snipe_it","matrix","bigbluebutton","mailu", "matomo","phpmyadmin","keycloak", "ldap", "baserow","yourls","nextcloud"] | any_in(group_names) %} - name: Solution Hub description: Curated collection of self hosted tools @@ -647,7 +660,7 @@ navigation: {% endif %} {% endif %} - {% if ["matomo","phpadmin","keycloak", "ldap"] | any_in(group_names) %} + {% if ["matomo","phpmyadmin","keycloak", "ldap"] | any_in(group_names) %} - name: Administration icon: @@ -674,6 +687,18 @@ navigation: iframe: {{ applications | get_landingpage_iframe_enabled('phpmyadmin') }} {% endif %} + + {% if "pgadmin" in group_names %} + + - name: pgAdmin + description: Administrate PostgreSQL databases with ease and precision + icon: + class: fas fa-database + url: https://{{domains.pgadmin}}/ + iframe: {{ applications | get_landingpage_iframe_enabled('pgadmin') }} + + {% endif %} + {% if "keycloak" in group_names %} - name: Keycloak