Skip to content
Snippets Groups Projects
Commit 6ac1c1c8 authored by Spencer Smith's avatar Spencer Smith Committed by GitHub
Browse files

Merge pull request #1320 from rsmitty/centos-cert-fix

check if cloud_provider is defined
parents 7713f353 01c0ab4f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment