diff options
author | Bogdan Dobrelya <bdobreli@redhat.com> | 2017-07-20 16:53:05 +0200 |
---|---|---|
committer | Tomas Sedovic <tomas@sedovic.cz> | 2017-07-20 16:53:05 +0200 |
commit | e7a7d1642c1ffbfe23cd5ad2d920e842f0cae4b2 (patch) | |
tree | fe57c5ca9743a2c641ab04ebe1131a8cd6942167 /playbooks/provisioning/openstack/provision-openstack.yml | |
parent | 1975fb57b4ddee77eec6f849f2c7677e2ee3d6df (diff) | |
download | openshift-e7a7d1642c1ffbfe23cd5ad2d920e842f0cae4b2.tar.gz openshift-e7a7d1642c1ffbfe23cd5ad2d920e842f0cae4b2.tar.bz2 openshift-e7a7d1642c1ffbfe23cd5ad2d920e842f0cae4b2.tar.xz openshift-e7a7d1642c1ffbfe23cd5ad2d920e842f0cae4b2.zip |
Static inventory autogeneration (#550)
* At the provisioning stage, allow users to auto-generate a static
inventory w/o manual steps needed. The alternative to
go fully dynamic TBD.
* Move openshift pre-install playbook to the post provision playbook,
where the second part of the pre install tasks is already placed.
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Diffstat (limited to 'playbooks/provisioning/openstack/provision-openstack.yml')
-rw-r--r-- | playbooks/provisioning/openstack/provision-openstack.yml | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/playbooks/provisioning/openstack/provision-openstack.yml b/playbooks/provisioning/openstack/provision-openstack.yml index 0c673af2f..0cac37aaf 100644 --- a/playbooks/provisioning/openstack/provision-openstack.yml +++ b/playbooks/provisioning/openstack/provision-openstack.yml @@ -8,6 +8,10 @@ - include: pre_tasks.yml roles: - role: openstack-stack + - role: static_inventory + when: openstack_inventory|default('static') == 'static' + inventory_path: "{{ openstack_inventory_path|default(inventory_dir) }}" + private_ssh_key: "{{ openstack_private_ssh_key|default('~/.ssh/id_rsa') }}" - name: Refresh Server inventory hosts: localhost @@ -17,19 +21,4 @@ tasks: - meta: refresh_inventory -- hosts: cluster_hosts - name: Wait for the the nodes to come up - become: False - gather_facts: False - tasks: - - wait_for_connection: - -- hosts: cluster_hosts - gather_facts: True - tasks: - - name: Debug hostvar - debug: - msg: "{{ hostvars[inventory_hostname] }}" - verbosity: 2 - - include: post-provision-openstack.yml |