Skip to content
Snippets Groups Projects
Commit 01c0ab4f authored by Spencer Smith's avatar Spencer Smith
Browse files

check if cloud_provider is defined

parent 7713f353
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,7 @@ spec: ...@@ -105,7 +105,7 @@ spec:
- mountPath: {{ etcd_cert_dir }} - mountPath: {{ etcd_cert_dir }}
name: etcd-certs name: etcd-certs
readOnly: true 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 - mountPath: /etc/ssl/certs/ca-bundle.crt
name: rhel-ca-bundle name: rhel-ca-bundle
readOnly: true readOnly: true
...@@ -120,7 +120,7 @@ spec: ...@@ -120,7 +120,7 @@ spec:
- hostPath: - hostPath:
path: {{ etcd_cert_dir }} path: {{ etcd_cert_dir }}
name: etcd-certs 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: - hostPath:
path: /etc/ssl/certs/ca-bundle.crt path: /etc/ssl/certs/ca-bundle.crt
name: rhel-ca-bundle name: rhel-ca-bundle
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment