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

@ -69,7 +69,10 @@ gitea_default_values:
USER: "{{ gitea_ldap_user | default('gitea') }}"
PASSWD: "{{ gitea_ldap_pass | default(gitea_ldap_password) }}"
MAILER_TYPE: "smtp"
gitea_external_db_values:
gitea:
config:
database:
DB_TYPE: postgres
HOST: "{{ postgres_db_team | default(namespace) }}-postgres.{{ postgres_db_namespace | default(namespace) }}.svc.cluster.local:5432"

View File

@ -7,6 +7,10 @@
- set_fact:
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:
gitea_dns_combined_values: "{{ gitea_dns_default_values | combine(gitea_dns_values, recursive=true) }}"