check if cloud_provider is defined

This commit is contained in:
Spencer Smith 2017-05-31 08:24:24 -04:00
parent fb74fd9e2e
commit 4b955f8e9a

View file

@ -105,7 +105,7 @@ spec:
- mountPath: {{ etcd_cert_dir }}
name: etcd-certs
readOnly: true
{% if cloud_provider == 'aws' and ansible_os_family == 'RedHat' %}
{% if cloud_provider is defined and cloud_provider == 'aws' and ansible_os_family == 'RedHat' %}
- mountPath: /etc/ssl/certs/ca-bundle.crt
name: rhel-ca-bundle
readOnly: true
@ -120,7 +120,7 @@ spec:
- hostPath:
path: {{ etcd_cert_dir }}
name: etcd-certs
{% if cloud_provider == 'aws' and ansible_os_family == 'RedHat' %}
{% if cloud_provider is defined and cloud_provider == 'aws' and ansible_os_family == 'RedHat' %}
- hostPath:
path: /etc/ssl/certs/ca-bundle.crt
name: rhel-ca-bundle