Merge "Generate/inject instack.json if overcloud nodes"

This commit is contained in:
Jenkins 2017-04-03 10:34:25 +00:00 committed by Gerrit Code Review
commit 6ff6c12faa
2 changed files with 5 additions and 9 deletions

View File

@ -107,12 +107,7 @@
- "{{ overcloud_nodes }}"
- "{{ extradisks_list }}"
# Generate the `instackenv.json` configuration file. Note that this
# task *must* occur after the above overcloud tasks, because if
# `overcloud_nodes` is defined the template depends on the
# `node_mac_map` variable.
- name: Write instackenv script
template:
src: "{{ undercloud_instackenv_template }}"
dest: "{{ working_dir }}/instackenv.json"
- name: Write instackenv script
template:
src: "{{ undercloud_instackenv_template }}"
dest: "{{ working_dir }}/instackenv.json"

View File

@ -78,6 +78,7 @@
environment:
LIBGUESTFS_BACKEND: direct
LIBVIRT_DEFAULT_URI: "{{ libvirt_uri }}"
when: overcloud_nodes
# Copy the undercloud public key to the virthost, because we're going
# to inject it into the undercloud image in the next task.