summaryrefslogtreecommitdiffstats
path: root/playbooks/openstack/openshift-cluster/launch.yml
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-06-08 10:57:35 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-06-08 10:57:35 -0400
commitd30276dac07b3df32aa02711e27e94e90d925c89 (patch)
tree66074483c40a232a00c4cd3b87633d3431bd2ed6 /playbooks/openstack/openshift-cluster/launch.yml
parente03efb3d8570981ab818bf1b18c01e3573977ba3 (diff)
parent901f0ee491efb34f9788e11dd6d572928146da91 (diff)
downloadopenshift-d30276dac07b3df32aa02711e27e94e90d925c89.tar.gz
openshift-d30276dac07b3df32aa02711e27e94e90d925c89.tar.bz2
openshift-d30276dac07b3df32aa02711e27e94e90d925c89.tar.xz
openshift-d30276dac07b3df32aa02711e27e94e90d925c89.zip
Merge pull request #186 from lhuard1A/os
Implement OpenStack provider for openshift-ansible
Diffstat (limited to 'playbooks/openstack/openshift-cluster/launch.yml')
-rw-r--r--playbooks/openstack/openshift-cluster/launch.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/playbooks/openstack/openshift-cluster/launch.yml b/playbooks/openstack/openshift-cluster/launch.yml
new file mode 100644
index 000000000..5c86ade3f
--- /dev/null
+++ b/playbooks/openstack/openshift-cluster/launch.yml
@@ -0,0 +1,31 @@
+---
+- name: Launch instance(s)
+ hosts: localhost
+ connection: local
+ gather_facts: no
+ vars_files:
+ - vars.yml
+ tasks:
+ - fail:
+ msg: "Deployment type not supported for OpenStack provider yet"
+ when: deployment_type in ['online', 'enterprise']
+
+ - include: tasks/configure_openstack.yml
+
+ - include: ../../common/openshift-cluster/set_master_launch_facts_tasks.yml
+ - include: tasks/launch_instances.yml
+ vars:
+ instances: "{{ master_names }}"
+ cluster: "{{ cluster_id }}"
+ type: "{{ k8s_type }}"
+
+ - include: ../../common/openshift-cluster/set_node_launch_facts_tasks.yml
+ - include: tasks/launch_instances.yml
+ vars:
+ instances: "{{ node_names }}"
+ cluster: "{{ cluster_id }}"
+ type: "{{ k8s_type }}"
+
+- include: update.yml
+
+- include: list.yml