Support the new banner feature in Noggin
See: https://github.com/fedora-infra/noggin/pull/701 Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
8d887b9387
commit
6490c755b2
5 changed files with 21 additions and 0 deletions
0
roles/openshift-apps/noggin/templates/after-navbar.html
Normal file
0
roles/openshift-apps/noggin/templates/after-navbar.html
Normal file
|
@ -15,6 +15,17 @@ items:
|
||||||
{{ load_file('noggin.cfg.py') | indent(6) }}
|
{{ load_file('noggin.cfg.py') | indent(6) }}
|
||||||
gunicorn.conf.py: |-
|
gunicorn.conf.py: |-
|
||||||
{{ load_file('gunicorn.conf.py') | indent(6) }}
|
{{ load_file('gunicorn.conf.py') | indent(6) }}
|
||||||
|
- apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: noggin-templates
|
||||||
|
labels:
|
||||||
|
app: {{ app }}
|
||||||
|
data:
|
||||||
|
after-navbar.html: |-
|
||||||
|
{{ load_file('after-navbar.html') | indent(6) }}
|
||||||
|
head.html: |-
|
||||||
|
{{ load_file('head.html') | indent(6) }}
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
@ -38,6 +38,9 @@ spec:
|
||||||
- name: noggin-config-volume
|
- name: noggin-config-volume
|
||||||
mountPath: "/etc/noggin"
|
mountPath: "/etc/noggin"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: noggin-templates-volume
|
||||||
|
mountPath: "/etc/noggin-templates"
|
||||||
|
readOnly: true
|
||||||
- name: noggin-secrets-volume
|
- name: noggin-secrets-volume
|
||||||
mountPath: "/etc/noggin-secrets"
|
mountPath: "/etc/noggin-secrets"
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -91,6 +94,9 @@ spec:
|
||||||
- name: noggin-config-volume
|
- name: noggin-config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: noggin-config
|
name: noggin-config
|
||||||
|
- name: noggin-templates-volume
|
||||||
|
configMap:
|
||||||
|
name: noggin-templates
|
||||||
- name: noggin-secrets-volume
|
- name: noggin-secrets-volume
|
||||||
secret:
|
secret:
|
||||||
secretName: noggin-secrets
|
secretName: noggin-secrets
|
||||||
|
|
0
roles/openshift-apps/noggin/templates/head.html
Normal file
0
roles/openshift-apps/noggin/templates/head.html
Normal file
|
@ -45,6 +45,10 @@ MAIL_DOMAIN_BLOCKLIST = [
|
||||||
"centosproject.org",
|
"centosproject.org",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Banners
|
||||||
|
TEMPLATES_CUSTOM_DIRECTORIES = ["/etc/noggin-templates"]
|
||||||
|
ACCEPT_IMAGES_FROM = ["pagure.io"]
|
||||||
|
|
||||||
# Those file should be mounted from OpenShift secrets
|
# Those file should be mounted from OpenShift secrets
|
||||||
FREEIPA_ADMIN_PASSWORD = from_file('/etc/noggin-secrets/ipa-admin')
|
FREEIPA_ADMIN_PASSWORD = from_file('/etc/noggin-secrets/ipa-admin')
|
||||||
FERNET_SECRET = from_file('/etc/noggin-secrets/fernet').encode('utf-8')
|
FERNET_SECRET = from_file('/etc/noggin-secrets/fernet').encode('utf-8')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue