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 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

View file

@ -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

View file

@ -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 %}