Generate /etc/hosts early on both under and overcloud
Prior to this patch, the /etc/hosts was generated only on the overcloud nodes, leading to some issues when it comes to TLS-Everywhere, as raised in associated bug. Depends-On: https://review.opendev.org/706242 Change-Id: I836ab1a23c8aea35c0cea54d0765c7313a4b9038 Closes-Bug: 1861782
This commit is contained in:
parent
4f0c6aac2a
commit
96c40f89be
|
@ -482,7 +482,7 @@ outputs:
|
||||||
- facts
|
- facts
|
||||||
|
|
||||||
- hosts: all
|
- hosts: all
|
||||||
name: Manage SELinux
|
name: Manage SELinux and generate /etc/hosts
|
||||||
gather_facts: {{ '"{{' }} gather_facts | default(false) {{ '}}"' }}
|
gather_facts: {{ '"{{' }} gather_facts | default(false) {{ '}}"' }}
|
||||||
any_errors_fatal: yes
|
any_errors_fatal: yes
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -490,6 +490,13 @@ outputs:
|
||||||
selinux:
|
selinux:
|
||||||
policy: targeted
|
policy: targeted
|
||||||
state: SELINUX_MODE
|
state: SELINUX_MODE
|
||||||
|
- name: Configure Hosts Entries
|
||||||
|
include_role:
|
||||||
|
name: tripleo_hosts_entries
|
||||||
|
vars:
|
||||||
|
tripleo_hosts_entries_undercloud_hosts_entries: {{ '"{{ ' }} undercloud_hosts_entries {{ ' }}"' }}
|
||||||
|
tripleo_hosts_entries_extra_hosts_entries: {{ '"{{ ' }} extra_hosts_entries {{ ' }}"' }}
|
||||||
|
tripleo_hosts_entries_vip_hosts_entries: {{ '"{{ ' }} vip_hosts_entries {{ ' }}"' }}
|
||||||
|
|
||||||
- hosts: DEPLOY_TARGET_HOST
|
- hosts: DEPLOY_TARGET_HOST
|
||||||
name: Common roles for TripleO servers
|
name: Common roles for TripleO servers
|
||||||
|
@ -693,16 +700,6 @@ outputs:
|
||||||
environment:
|
environment:
|
||||||
artifact_urls: {{ '"{{' }} deploy_artifact_urls {{ '}}"' }}
|
artifact_urls: {{ '"{{' }} deploy_artifact_urls {{ '}}"' }}
|
||||||
|
|
||||||
- name: Configure Hosts Entries
|
|
||||||
include_role:
|
|
||||||
name: tripleo_hosts_entries
|
|
||||||
vars:
|
|
||||||
tripleo_hosts_entries_undercloud_hosts_entries: {{ '"{{ ' }} undercloud_hosts_entries {{ ' }}"' }}
|
|
||||||
tripleo_hosts_entries_extra_hosts_entries: {{ '"{{ ' }} extra_hosts_entries {{ ' }}"' }}
|
|
||||||
tripleo_hosts_entries_vip_hosts_entries: {{ '"{{ ' }} vip_hosts_entries {{ ' }}"' }}
|
|
||||||
tags:
|
|
||||||
- tripleo_hosts_entries
|
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- overcloud
|
- overcloud
|
||||||
- pre_deploy_steps
|
- pre_deploy_steps
|
||||||
|
|
Loading…
Reference in New Issue