provision_resources.yml 620 B

1234567891011121314151617
  1. ---
  2. - name: Create the OpenStack resources for cluster installation or scaleup
  3. any_errors_fatal: true
  4. hosts: localhost
  5. tasks:
  6. - name: retrieve cluster name from the environment if present
  7. set_fact:
  8. openshift_openstack_stack_name: "{{ lookup('env', 'OPENSHIFT_CLUSTER') | ternary (lookup('env', 'OPENSHIFT_CLUSTER'), omit) }}"
  9. - name: provision cluster
  10. import_role:
  11. name: openshift_openstack
  12. tasks_from: provision.yml
  13. vars:
  14. l_hostname_domain_suffix: >-
  15. {% if openshift_openstack_fqdn_nodes -%}
  16. .{{ openshift_openstack_full_dns_domain }}
  17. {%- endif -%}