summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cloud_provider/tasks/main.yml
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2016-03-31 11:48:36 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2016-03-31 11:48:36 -0400
commit272ee48caeeab8692f40f0f667e931879f9a0494 (patch)
tree45115294ea2abb78c2a1ccbbd36cbfbca581ca32 /roles/openshift_cloud_provider/tasks/main.yml
parentf7a9a0ce7a5057a25cea7e9f66576101a9e9f43a (diff)
parent67fda43df08a260571eb9b1d7f1ecdab5e323c41 (diff)
downloadopenshift-272ee48caeeab8692f40f0f667e931879f9a0494.tar.gz
openshift-272ee48caeeab8692f40f0f667e931879f9a0494.tar.bz2
openshift-272ee48caeeab8692f40f0f667e931879f9a0494.tar.xz
openshift-272ee48caeeab8692f40f0f667e931879f9a0494.zip
Merge pull request #1634 from abutcher/aws-cloud-provider
AWS cloud provider
Diffstat (limited to 'roles/openshift_cloud_provider/tasks/main.yml')
-rw-r--r--roles/openshift_cloud_provider/tasks/main.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/roles/openshift_cloud_provider/tasks/main.yml b/roles/openshift_cloud_provider/tasks/main.yml
index e14f944e8..471fd686b 100644
--- a/roles/openshift_cloud_provider/tasks/main.yml
+++ b/roles/openshift_cloud_provider/tasks/main.yml
@@ -1,3 +1,24 @@
---
+- name: Set cloud provider facts
+ openshift_facts:
+ role: cloudprovider
+ openshift_env: "{{ item | oo_openshift_env }}"
+ openshift_env_structures:
+ - 'openshift.cloudprovider.aws.*'
+ - 'openshift.cloudprovider.openstack.*'
+ no_log: true
+ with_items:
+ - "{{ hostvars[inventory_hostname] }}"
+ - "{{ hostvars }}"
+
+- name: Create cloudprovider config dir
+ file:
+ path: "{{ openshift.common.config_base }}/cloudprovider"
+ state: directory
+ when: has_cloudprovider | bool
+
- include: openstack.yml
- when: "openshift_cloud_provider is defined and openshift_cloud_provider == 'openstack' and 'provider' in openshift and openshift.provider.name == 'openstack'"
+ when: cloudprovider_is_openstack | bool
+
+- include: aws.yml
+ when: cloudprovider_is_aws | bool