make postgres more tunable

This commit is contained in:
ace 2024-05-06 03:00:42 +03:00
parent d9dd334988
commit d3db3af028
Signed by: ace
GPG Key ID: 2C08973DD37A76FD
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
postgres_enabled: true
postgres_operator_enabled: true
postgres_operator_ui_enabled: true
postgres_operator_chart_ref: "ghp/postgres-operator"
postgres_operator_ui_chart_ref: "ghp/postgres-operator-ui"
postgres_operator_ui_short_name: "postgres-operator-ui"
@ -64,6 +67,7 @@ postgres_db_definitions:
roundcube: []
harbor: []
mastodon: []
keycloak: []
databases:
gitea: gitea
bitwarden: bitwarden
@ -75,6 +79,7 @@ postgres_db_definitions:
harbor_notary_server: harbor
harbor_notary_signer: harbor
mastodon: mastodon
keycloak: keycloak
preparedDatabases:
peertube:
defaultUsers: true

View File

@ -44,6 +44,7 @@
- set_fact:
postgres_operator_combined_values: "{{ postgres_operator_default_values | combine(postgres_operator_values, recursive=true) }}"
when: postgres_operator_enabled
- name: Deploy Postgres Operator
kubernetes.core.helm:
@ -54,9 +55,11 @@
chart_version: "{{ postgres_operator_version | default(omit) }}"
release_values: "{{ postgres_operator_combined_values | from_yaml }}"
wait: true
when: postgres_operator_enabled
- set_fact:
postgres_operator_ui_combined_values: "{{ postgres_operator_ui_default_values | combine(postgres_operator_ui_values, recursive=true) }}"
when: postgres_operator_ui_enabled
- name: Deploy Postgres Operator UI
kubernetes.core.helm:
@ -67,6 +70,7 @@
chart_version: "{{ postgres_operator_ui_version | default(omit) }}"
release_values: "{{ postgres_operator_ui_combined_values | from_yaml }}"
wait: true
when: postgres_operator_ui_enabled
- name: Create Postgres databases
k8s: