Make the noggin theme a parameter

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2020-10-28 11:35:08 +01:00
parent 37f464fed1
commit 096f281528
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
6 changed files with 11 additions and 10 deletions

View file

@ -64,6 +64,7 @@
app: noggin
template: configmap.yml
objectname: configmap.yml
noggin_theme: fas
- role: openshift/ipa-client
app: noggin

View file

@ -3,7 +3,7 @@ kind: BuildConfig
metadata:
name: noggin
labels:
app: noggin
app: {{ app }}
build: noggin
spec:
runPolicy: Serial

View file

@ -9,7 +9,7 @@ items:
metadata:
name: noggin-config
labels:
app: noggin
app: {{ app }}
data:
noggin.cfg: |-
{{ load_file('noggin.cfg.py') | indent(6) }}
@ -20,7 +20,7 @@ items:
metadata:
name: wsgi-script
labels:
app: noggin
app: {{ app }}
data:
wsgi.py: |-
{{ load_file('wsgi.py') | indent(6) }}
@ -30,7 +30,7 @@ items:
metadata:
name: fedora-messaging-config
labels:
app: noggin
app: {{ app }}
data:
config.toml: |-
{{ load_file('fedora-messaging.toml') | indent(6) }}

View file

@ -3,11 +3,11 @@ kind: DeploymentConfig
metadata:
name: noggin
labels:
app: noggin
app: {{ app }}
spec:
replicas: 1
selector:
app: noggin
app: {{ app }}
deploymentconfig: noggin
strategy:
type: Rolling
@ -22,7 +22,7 @@ spec:
metadata:
creationTimestamp: null
labels:
app: noggin
app: {{ app }}
deploymentconfig: noggin
spec:
containers:

View file

@ -31,7 +31,7 @@ MAIL_DEFAULT_SENDER = "Fedora Account System <fas@fedoraproject.org>"
MAIL_SERVER = "bastion.fedoraproject.org"
# Theme
THEME = "fas"
THEME = "{{ noggin_theme }}"
# Those file should be mounted from OpenShift secrets
FREEIPA_ADMIN_PASSWORD = from_file('/etc/noggin-secrets/ipa-admin')

View file

@ -3,12 +3,12 @@ kind: Service
metadata:
name: noggin-web
labels:
app: noggin
app: {{ app }}
spec:
ports:
- name: web
port: 8080
targetPort: 8080
selector:
app: noggin
app: {{ app }}
deploymentconfig: noggin