checks if deployment_type var is defined

This commit is contained in:
lrossett 2021-08-23 14:04:25 -03:00
parent e56d0b6809
commit 3ba84f6b97
No known key found for this signature in database
GPG key ID: A073363F751EEE2B
3 changed files with 5 additions and 5 deletions

View file

@ -25,7 +25,7 @@ data:
Require valid-user
</LimitExcept>
</Location>
{% if deployment_type not in ['local', 'dev'] %}
{% if deployment_type is defined and deployment_type not in ['local', 'dev'] %}
---
apiVersion: v1
kind: ConfigMap

View file

@ -58,7 +58,7 @@ spec:
- name: httpd-config-volume
mountPath: /etc/httpd/conf.d
readOnly: true
{% if deployment_type not in ['local', 'dev']%}
{% if deployment_type is defined and deployment_type not in ['local', 'dev']%}
- name: fedora-messaging-ca-volume
mountPath: /etc/pki/rabbitmq/ca
readOnly: true
@ -98,7 +98,7 @@ spec:
- name: httpd-config-volume
configMap:
name: "resultsdb-httpd-config"
{% if deployment_type not in ['local', 'dev']%}
{% if deployment_type is defined and deployment_type not in ['local', 'dev']%}
- name: fedora-messaging-config-volume
configMap:
name: fedora-messaging-configmap

View file

@ -22,7 +22,7 @@ stringData:
STREAM_LOGGING = True
RUN_HOST= '0.0.0.0'
RUN_PORT = 5001
{% if deployment_type in ['local', 'dev']%}
{% if deployment_type is defined and deployment_type in ['local', 'dev']%}
MESSAGE_BUS_PUBLISH = False
MESSAGE_BUS_PUBLISH_TASKOTRON = False
{% else %}
@ -30,7 +30,7 @@ stringData:
MESSAGE_BUS_PUBLISH_TASKOTRON = True
{% endif %}
MESSAGE_BUS_PLUGIN = 'fedmsg'
{% if deployment_type in ['local'] %}
{% if deployment_type is defined and deployment_type in ['local'] %}
# This is for the Testdays deployment
MESSAGE_BUS_PLUGIN = 'dummy'
{% endif %}