summaryrefslogtreecommitdiffstats
path: root/playbooks/openstack/openshift-cluster/provision.yml
blob: ed44d4a3289b0a9d1742bc2c1e22d180bbbdd76f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- 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): 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: Prepare the Nodes in the cluster for installation
  hosts: oo_all_hosts
  become: true
  # 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:

  - 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