diff options
author | Sylvain Baubeau <sbaubeau@redhat.com> | 2015-11-16 17:24:43 +0100 |
---|---|---|
committer | Sylvain Baubeau <sbaubeau@redhat.com> | 2016-03-14 10:21:03 +0100 |
commit | b5f00c416b767b167bbd3d8f61f2b9a534aa5432 (patch) | |
tree | cb16bdc8134ab1562191a0adf36bda7e7023a6a1 /roles/openshift_cloud_provider/tasks/openstack.yml | |
parent | dc8938e01202db0464e54becf4812c3191ce2d51 (diff) | |
download | openshift-b5f00c416b767b167bbd3d8f61f2b9a534aa5432.tar.gz openshift-b5f00c416b767b167bbd3d8f61f2b9a534aa5432.tar.bz2 openshift-b5f00c416b767b167bbd3d8f61f2b9a534aa5432.tar.xz openshift-b5f00c416b767b167bbd3d8f61f2b9a534aa5432.zip |
Add support for Openstack integration
Diffstat (limited to 'roles/openshift_cloud_provider/tasks/openstack.yml')
-rw-r--r-- | roles/openshift_cloud_provider/tasks/openstack.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_cloud_provider/tasks/openstack.yml b/roles/openshift_cloud_provider/tasks/openstack.yml new file mode 100644 index 000000000..a56f1891a --- /dev/null +++ b/roles/openshift_cloud_provider/tasks/openstack.yml @@ -0,0 +1,9 @@ +- fail: + msg: "The Openstack integration requires OpenShift Enterprise 3.2 or Origin 1.2." + when: not openshift.common.version_gte_3_2_or_1_2 | bool + +- name: Create /etc/cloud.conf + template: + dest: /etc/cloud.conf + src: openstack/cloud.conf.j2 + when: ocp_os_auth_url and ocp_os_username and ocp_os_password and (ocp_os_tenant_id or ocp_os_tenant_name)
\ No newline at end of file |