Browse Source

check if cloud_provider is defined

pull/1320/head
Spencer Smith 7 years ago
parent
commit
01c0ab4f06
1 changed files with 2 additions and 2 deletions
  1. 4
      roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2

4
roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2

@ -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
Loading…
Cancel
Save