provision.yml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ---
  2. - name: Create the OpenStack resources for cluster installation
  3. hosts: localhost
  4. tasks:
  5. - name: provision cluster
  6. include_role:
  7. name: openshift_openstack
  8. tasks_from: provision.yml
  9. # NOTE(shadower): the (internal) DNS must be functional at this point!!
  10. # That will have happened in provision.yml if nsupdate was configured.
  11. # TODO(shadower): consider splitting this up so people can stop here
  12. # and configure their DNS if they have to.
  13. - name: Prepare the Nodes in the cluster for installation
  14. hosts: oo_all_hosts
  15. become: true
  16. # NOTE: The nodes may not be up yet, don't gather facts here.
  17. # They'll be collected after `wait_for_connection`.
  18. gather_facts: no
  19. tasks:
  20. - name: Wait for the the nodes to come up
  21. wait_for_connection:
  22. - name: Gather facts for the new nodes
  23. setup:
  24. - name: Install dependencies
  25. include_role:
  26. name: openshift_openstack
  27. tasks_from: node-packages.yml
  28. - name: Configure Node
  29. include_role:
  30. name: openshift_openstack
  31. tasks_from: node-configuration.yml