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
|
Require valid-user
|
||||||
</LimitExcept>
|
</LimitExcept>
|
||||||
</Location>
|
</Location>
|
||||||
{% if deployment_type not in ['local', 'dev'] %}
|
{% if deployment_type is defined and deployment_type not in ['local', 'dev'] %}
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
|
|
|
@ -58,7 +58,7 @@ spec:
|
||||||
- name: httpd-config-volume
|
- name: httpd-config-volume
|
||||||
mountPath: /etc/httpd/conf.d
|
mountPath: /etc/httpd/conf.d
|
||||||
readOnly: true
|
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
|
- name: fedora-messaging-ca-volume
|
||||||
mountPath: /etc/pki/rabbitmq/ca
|
mountPath: /etc/pki/rabbitmq/ca
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
@ -98,7 +98,7 @@ spec:
|
||||||
- name: httpd-config-volume
|
- name: httpd-config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: "resultsdb-httpd-config"
|
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
|
- name: fedora-messaging-config-volume
|
||||||
configMap:
|
configMap:
|
||||||
name: fedora-messaging-configmap
|
name: fedora-messaging-configmap
|
||||||
|
|
|
@ -22,7 +22,7 @@ stringData:
|
||||||
STREAM_LOGGING = True
|
STREAM_LOGGING = True
|
||||||
RUN_HOST= '0.0.0.0'
|
RUN_HOST= '0.0.0.0'
|
||||||
RUN_PORT = 5001
|
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 = False
|
||||||
MESSAGE_BUS_PUBLISH_TASKOTRON = False
|
MESSAGE_BUS_PUBLISH_TASKOTRON = False
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -30,7 +30,7 @@ stringData:
|
||||||
MESSAGE_BUS_PUBLISH_TASKOTRON = True
|
MESSAGE_BUS_PUBLISH_TASKOTRON = True
|
||||||
{% endif %}
|
{% endif %}
|
||||||
MESSAGE_BUS_PLUGIN = 'fedmsg'
|
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
|
# This is for the Testdays deployment
|
||||||
MESSAGE_BUS_PLUGIN = 'dummy'
|
MESSAGE_BUS_PLUGIN = 'dummy'
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue