openstack.yml 994 B

123456789101112131415161718
  1. ---
  2. - name: Copy cloud CA certificate
  3. copy:
  4. content: "{{ openshift_cloudprovider_openstack_ca_file }}"
  5. dest: "{{ openshift_openstack_ca_file_path }}"
  6. when: openshift_cloudprovider_openstack_ca_file is defined
  7. - name: Create cloud config from template
  8. template:
  9. dest: "{{ openshift.common.config_base }}/cloudprovider/openstack.conf"
  10. src: openstack.conf.j2
  11. when: openshift_cloudprovider_openstack_auth_url is defined and openshift_cloudprovider_openstack_username is defined and openshift_cloudprovider_openstack_password is defined and (openshift_cloudprovider_openstack_tenant_id is defined or openshift_cloudprovider_openstack_tenant_name is defined) and openshift_cloudprovider_openstack_conf_file is not defined
  12. - name: Create cloud config from local file
  13. copy:
  14. dest: "{{ openshift.common.config_base }}/cloudprovider/openstack.conf"
  15. src: "{{ openshift_cloudprovider_openstack_conf_file }}"
  16. when: openshift_cloudprovider_openstack_conf_file is defined