|
|
@ -157,6 +157,20 @@ |
|
|
|
- cloud-provider |
|
|
|
- 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 |
|
|
|
template: |
|
|
|
src: "{{ cloud_provider }}-cloud-config.j2" |
|
|
|