Merge "add the ability to set the root passwd on the overcloud-full image"

This commit is contained in:
Zuul 2018-03-27 04:49:36 +00:00 committed by Gerrit Code Review
commit f75a2a98f8
3 changed files with 20 additions and 0 deletions

View File

@ -34,6 +34,11 @@ For example::
$ virsh -c qemu:///session console undercloud
To set the password for the undercloud and overcloud root user you can set
the `overcloud_full_root_pwd` variable.
quickstart.sh <snip> -e overcloud_full_root_pwd=password <snip> virthost
Where are my networks?
----------------------

View File

@ -18,4 +18,8 @@ not needing to maintain/host a specific undercloud image.
* `convert_image_tempest_plugins`: List of tempest plugins to install (This is
separate from the install list so that it can be allowed to fail without
failing the conversion)
* `overcloud_full_root_pwd`: If set the defined password will
set for the root user on the overcloud-full image. The
resulting overcloud and undercloud instances will have
the password set.

View File

@ -8,6 +8,17 @@
path: "{{ convert_image_working_dir}}/overcloud-full.qcow2"
register: overcloud_full_qcow2
# This tasks is not be used in CI or on any public systems
# Only use this option when debugging locally on a secure system
- name: set root password for image
command: >
virt-customize --smp 2 -m {{ convert_image_host_memory }}
-a {{ convert_image_working_dir}}/overcloud-full.qcow2
--root-password password:{{ overcloud_full_root_pwd }}
when:
- overcloud_full_root_pwd is defined
- overcloud_full_qcow2.stat.exists
- name: copy overcloud-full.qcow2 to undercloud.qcow2
command: >
cp {{ convert_image_working_dir}}/overcloud-full.qcow2