Instack.json for undercloud VM image
Do not try to copy the instackenv.json configuration file to the undercloud VM image, if it wasn't generated in the overcloud setup role. This may be the case if there are no overcloud nodes defined and the overcloud setup role is missing in the play, f.e. the containerized undercloud use case. Partial-bug: #1676373 Change-Id: I7a5a564aacdfa2153ad727baf0b5259cb723ec69 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
1415164248
commit
34bd210a55
|
@ -115,4 +115,3 @@
|
||||||
template:
|
template:
|
||||||
src: "{{ undercloud_instackenv_template }}"
|
src: "{{ undercloud_instackenv_template }}"
|
||||||
dest: "{{ working_dir }}/instackenv.json"
|
dest: "{{ working_dir }}/instackenv.json"
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
environment:
|
environment:
|
||||||
LIBGUESTFS_BACKEND: direct
|
LIBGUESTFS_BACKEND: direct
|
||||||
LIBVIRT_DEFAULT_URI: "{{ libvirt_uri }}"
|
LIBVIRT_DEFAULT_URI: "{{ libvirt_uri }}"
|
||||||
|
when: overcloud_nodes
|
||||||
|
|
||||||
# Copy the undercloud public key to the virthost, because we're going
|
# Copy the undercloud public key to the virthost, because we're going
|
||||||
# to inject it into the undercloud image in the next task.
|
# to inject it into the undercloud image in the next task.
|
||||||
|
|
Loading…
Reference in New Issue