checks if deployment_type var is defined
This commit is contained in:
parent
e56d0b6809
commit
3ba84f6b97
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue