update gitea role - separate external db values

This commit is contained in:
ace 2021-01-25 21:24:14 +03:00
parent 131a1acc84
commit cb137fb890
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
2 changed files with 8 additions and 1 deletions

View File

@ -70,6 +70,9 @@ gitea_default_values:
PASSWD: "{{ gitea_ldap_pass | default(gitea_ldap_password) }}" PASSWD: "{{ gitea_ldap_pass | default(gitea_ldap_password) }}"
MAILER_TYPE: "smtp" MAILER_TYPE: "smtp"
gitea_external_db_values:
gitea:
config:
database: database:
DB_TYPE: postgres DB_TYPE: postgres
HOST: "{{ postgres_db_team | default(namespace) }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local:5432" HOST: "{{ postgres_db_team | default(namespace) }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local:5432"

View File

@ -7,6 +7,10 @@
- set_fact: - set_fact:
gitea_combined_values: "{{ gitea_default_values | combine(gitea_values, recursive=true) }}" gitea_combined_values: "{{ gitea_default_values | combine(gitea_values, recursive=true) }}"
- set_fact:
gitea_combined_values: "gitea_combined_values | combine(gitea_external_db_values, recursive=true) }}"
when: gitea_use_external_db
- set_fact: - set_fact:
gitea_dns_combined_values: "{{ gitea_dns_default_values | combine(gitea_dns_values, recursive=true) }}" gitea_dns_combined_values: "{{ gitea_dns_default_values | combine(gitea_dns_values, recursive=true) }}"