mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 11:36:10 +08:00
checks if deployment_type var is defined
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user