summaryrefslogtreecommitdiffstats
path: root/playbooks/openstack/openshift-cluster/provision.yml
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-11-16 08:53:17 -0500
committerGitHub <noreply@github.com>2017-11-16 08:53:17 -0500
commit8a85bc3a00efb654238a58e1faa2a2629d9360b1 (patch)
tree693186d957899c6e3cd38a6ae5aa66392814ff15 /playbooks/openstack/openshift-cluster/provision.yml
parent7dcc6292e2ca89fe22675491299cf5853860bed8 (diff)
parent2e9d134d4564d87dbbc7853b07204f7f44ee01e6 (diff)
downloadopenshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.tar.gz
openshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.tar.bz2
openshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.tar.xz
openshift-8a85bc3a00efb654238a58e1faa2a2629d9360b1.zip
Merge pull request #6039 from tomassedovic/openstack-provider-githist
Add the OpenStack provider
Diffstat (limited to 'playbooks/openstack/openshift-cluster/provision.yml')
-rw-r--r--playbooks/openstack/openshift-cluster/provision.yml61
1 files changed, 61 insertions, 0 deletions
diff --git a/playbooks/openstack/openshift-cluster/provision.yml b/playbooks/openstack/openshift-cluster/provision.yml
new file mode 100644
index 000000000..fe3057158
--- /dev/null
+++ b/playbooks/openstack/openshift-cluster/provision.yml
@@ -0,0 +1,61 @@
+---
+- name: Create the OpenStack resources for cluster installation
+ hosts: localhost
+ tasks:
+ - name: provision cluster
+ include_role:
+ name: openshift_openstack
+ tasks_from: provision.yml
+
+
+# NOTE(shadower): Bring in the host groups:
+- name: normalize groups
+ include: ../../byo/openshift-cluster/initialize_groups.yml
+- name: evaluate groups
+ include: ../../common/openshift-cluster/evaluate_groups.yml
+
+
+- name: Wait for the nodes and gather their facts
+ hosts: oo_all_hosts
+ become: yes
+ # NOTE: The nodes may not be up yet, don't gather facts here.
+ # They'll be collected after `wait_for_connection`.
+ gather_facts: no
+ tasks:
+ - name: Wait for the the nodes to come up
+ wait_for_connection:
+
+ - name: Gather facts for the new nodes
+ setup:
+
+
+# NOTE(shadower): the (internal) DNS must be functional at this point!!
+# That will have happened in provision.yml if nsupdate was configured.
+
+# TODO(shadower): consider splitting this up so people can stop here
+# and configure their DNS if they have to.
+- name: Populate the DNS entries
+ hosts: localhost
+ tasks:
+ - name: Populate DNS entries
+ include_role:
+ name: openshift_openstack
+ tasks_from: populate-dns.yml
+ when:
+ - openshift_openstack_external_nsupdate_keys is defined
+ - openshift_openstack_external_nsupdate_keys.private is defined or openshift_openstack_external_nsupdate_keys.public is defined
+
+- name: Prepare the Nodes in the cluster for installation
+ hosts: oo_all_hosts
+ become: yes
+ gather_facts: yes
+ tasks:
+ - name: Install dependencies
+ include_role:
+ name: openshift_openstack
+ tasks_from: node-packages.yml
+
+ - name: Configure Node
+ include_role:
+ name: openshift_openstack
+ tasks_from: node-configuration.yml