Koschei: make admin DB password available to admin Pod
This commit is contained in:
parent
49e9b8c369
commit
045215ec81
3 changed files with 37 additions and 1 deletions
20
roles/openshift-apps/koschei/templates/admin-config.yml
Normal file
20
roles/openshift-apps/koschei/templates/admin-config.yml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: admin-config
|
||||||
|
stringData:
|
||||||
|
config-admin.cfg: |
|
||||||
|
{{ lookup('template', roles_path + '/openshift-apps/koschei/templates/config-admin.cfg.j2') | indent }}
|
||||||
|
config-backend.cfg: |
|
||||||
|
{{ lookup('template', roles_path + '/openshift-apps/koschei/templates/config-backend.cfg.j2') | indent }}
|
||||||
|
fedora-messaging.toml: |
|
||||||
|
{{ lookup('template', roles_path + '/openshift-apps/koschei/templates/fedora-messaging.toml.j2') | indent }}
|
||||||
|
krb5.conf: |
|
||||||
|
{{ lookup('template', roles_path + '/base/templates/krb5.conf.j2') | indent }}
|
||||||
|
data:
|
||||||
|
rabbitmq-ca.crt: |
|
||||||
|
{{ lookup('file', private + '/files/rabbitmq/' + env + '/pki/ca.crt', rstrip=False) | b64encode | indent }}
|
||||||
|
rabbitmq-client.crt: |
|
||||||
|
{{ lookup('file', private + '/files/rabbitmq/' + env + '/pki/issued/' + app + env_suffix + '.crt', rstrip=False) | b64encode | indent }}
|
||||||
|
rabbitmq-client.key: |
|
||||||
|
{{ lookup('file', private + '/files/rabbitmq/' + env + '/pki/private/' + app + env_suffix + '.key', rstrip=False) | b64encode | indent }}
|
|
@ -40,7 +40,7 @@ spec:
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
secret:
|
secret:
|
||||||
secretName: backend-config
|
secretName: admin-config
|
||||||
- name: keytab
|
- name: keytab
|
||||||
secret:
|
secret:
|
||||||
secretName: keytab
|
secretName: keytab
|
||||||
|
|
16
roles/openshift-apps/koschei/templates/config-admin.cfg.j2
Normal file
16
roles/openshift-apps/koschei/templates/config-admin.cfg.j2
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# This is a config file for Koschei that can override values in default
|
||||||
|
# configuration in /usr/share/koschei/config.cfg. It is a python file expecting
|
||||||
|
# assignment to config dictionary which will be recursively merged with the
|
||||||
|
# default one.
|
||||||
|
|
||||||
|
config = {
|
||||||
|
"database_config": {
|
||||||
|
"username": "koscheiadmin",
|
||||||
|
"password": "{{ koscheiadmin_db_password }}",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: Python
|
||||||
|
# End:
|
||||||
|
# vi: ft=python
|
Loading…
Add table
Add a link
Reference in a new issue