Configure minion hostname

We should set the minion_hostname in the minion.conf similar to what we
do for the undercloud.

Change-Id: Iacd6e9860b7aabff65b6c2d383d488903a9a0287
Closes-Bug: #1839025
This commit is contained in:
Alex Schultz 2019-08-05 14:05:40 -06:00
parent 02548d8c93
commit 5071d16cea
3 changed files with 2 additions and 5 deletions

View File

@ -48,11 +48,6 @@
shell: "{{ ansible_pkg_mgr }} --enablerepo='gating-repo' update -y"
become: true
when: hostvars['undercloud']['compressed_gating_repo'] is defined
- name: Include hostname tasks
include_role:
name: undercloud-setup
tasks_from: hostname
when: hostname_correction|default(false)|bool or step_set_undercloud_hostname|default(false)|bool
tags:
- undercloud-setup

View File

@ -5,6 +5,7 @@ minion_install_cmd: openstack undercloud minion install
minion_install_cli_options: ""
minion_post_install_script: minion-install-post.sh.j2
minion_install_log: "{{ working_dir }}/minion_install.log"
minion_minion_hostname: minion.localdomain
minion_install_script: minion-install.sh.j2

View File

@ -102,6 +102,7 @@ minion_enable_selinux = {{ minion_selinux_enabled }}
# appropriately. If set, the undercloud install will configure all
# system hostname settings. (string value)
#minion_hostname = <None>
minion_hostname = {{ minion_minion_hostname }}
# Network interface on the Undercloud that will be handling the PXE
# boots and DHCP for Overcloud instances. (string value)