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_chart_ref: "ghp/postgres-operator"
postgres_operator_ui_chart_ref: "ghp/postgres-operator-ui" postgres_operator_ui_chart_ref: "ghp/postgres-operator-ui"
postgres_operator_ui_short_name: "postgres-operator-ui" postgres_operator_ui_short_name: "postgres-operator-ui"
@ -64,6 +67,7 @@ postgres_db_definitions:
roundcube: [] roundcube: []
harbor: [] harbor: []
mastodon: [] mastodon: []
keycloak: []
databases: databases:
gitea: gitea gitea: gitea
bitwarden: bitwarden bitwarden: bitwarden
@ -75,6 +79,7 @@ postgres_db_definitions:
harbor_notary_server: harbor harbor_notary_server: harbor
harbor_notary_signer: harbor harbor_notary_signer: harbor
mastodon: mastodon mastodon: mastodon
keycloak: keycloak
preparedDatabases: preparedDatabases:
peertube: peertube:
defaultUsers: true defaultUsers: true

View File

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