Merge pull request #3122 from jbcraig/fix_cacert_feature
resolve issues with new cacert featurepull/3247/head
commit
7e140e5f3c
|
@ -157,6 +157,20 @@
|
||||||
- cloud-provider
|
- cloud-provider
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
|
- name: Write cacert file
|
||||||
|
copy:
|
||||||
|
src: "{{ openstack_cacert }}"
|
||||||
|
dest: "{{ kube_config_dir }}/openstack-cacert.pem"
|
||||||
|
group: "{{ kube_cert_group }}"
|
||||||
|
mode: 0640
|
||||||
|
when:
|
||||||
|
- inventory_hostname in groups['k8s-cluster']
|
||||||
|
- cloud_provider is defined
|
||||||
|
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ]
|
||||||
|
- openstack_cacert is defined
|
||||||
|
tags:
|
||||||
|
- cloud-provider
|
||||||
|
|
||||||
- name: Write cloud-config
|
- name: Write cloud-config
|
||||||
template:
|
template:
|
||||||
src: "{{ cloud_provider }}-cloud-config.j2"
|
src: "{{ cloud_provider }}-cloud-config.j2"
|
||||||
|
|
|
@ -72,17 +72,3 @@
|
||||||
- ansible_distribution in ["CentOS","RedHat"]
|
- ansible_distribution in ["CentOS","RedHat"]
|
||||||
tags:
|
tags:
|
||||||
- bootstrap-os
|
- bootstrap-os
|
||||||
|
|
||||||
- name: Write cacert file
|
|
||||||
copy:
|
|
||||||
content: "{{ openstack_cacert }}"
|
|
||||||
dest: "{{ kube_config_dir }}/openstack-cacert.pem"
|
|
||||||
group: "{{ kube_cert_group }}"
|
|
||||||
mode: 0640
|
|
||||||
when:
|
|
||||||
- inventory_hostname in groups['k8s-cluster']
|
|
||||||
- cloud_provider is defined
|
|
||||||
- cloud_provider in [ 'openstack', 'azure', 'vsphere' ]
|
|
||||||
- openstack_cacert is defined
|
|
||||||
tags:
|
|
||||||
- cloud-provider
|
|
||||||
|
|
Loading…
Reference in New Issue