Add options to set the overcloud's FQDNs and domain
These are set in an environment variable and are applicable since the newton release. They are set in the nodes' /etc/hosts file and can be used for the keystone endpoints depending on the endpoint map environment file that is used. Change-Id: Ida2b8b3964b10c90882b6bbeece057377e81cb68
This commit is contained in:
parent
19933e5f03
commit
060ef5b569
|
@ -16,6 +16,12 @@ A description of the settable variables for this role should go here, including
|
||||||
* `overcloud_ipv6`: enables IPv6 deployment on the overcloud
|
* `overcloud_ipv6`: enables IPv6 deployment on the overcloud
|
||||||
* `enable_cinder_backup`: false/true - enables cinder-backup service.
|
* `enable_cinder_backup`: false/true - enables cinder-backup service.
|
||||||
* `deployed_server`: false/true - enables support for nodepool deployed server deployment (default: false)
|
* `deployed_server`: false/true - enables support for nodepool deployed server deployment (default: false)
|
||||||
|
* `overcloud_cloud_name`: Sets the FQDN for the overcloud's public VIP.
|
||||||
|
* `overcloud_cloud_name_internal`: Sets the FQDN for the overcloud's VIP for the internal network.
|
||||||
|
* `overcloud_cloud_name_storage`: Sets the FQDN for the overcloud's VIP for the storage network.
|
||||||
|
* `overcloud_cloud_name_storage_management`: Sets the FQDN for the overcloud's VIP for the storage management network.
|
||||||
|
* `overcloud_cloud_name_ctlplane`: Sets the FQDN for the overcloud's VIP for the ctlplane network.
|
||||||
|
* `overcloud_cloud_domain`: Sets the domain for the nodes' internal hostnames.
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
------------
|
------------
|
||||||
|
|
|
@ -59,6 +59,7 @@ timeout_args: "--timeout {{deploy_timeout}}"
|
||||||
|
|
||||||
set_overcloud_workers: true
|
set_overcloud_workers: true
|
||||||
|
|
||||||
|
cloud_name_args: ""
|
||||||
network_args: ""
|
network_args: ""
|
||||||
pacemaker_args: ""
|
pacemaker_args: ""
|
||||||
workers_args: ""
|
workers_args: ""
|
||||||
|
@ -77,6 +78,7 @@ deploy_args: >-
|
||||||
{{ libvirt_args }}
|
{{ libvirt_args }}
|
||||||
{{ flavor_args }}
|
{{ flavor_args }}
|
||||||
{{ timeout_args }}
|
{{ timeout_args }}
|
||||||
|
{{ cloud_name_args }}
|
||||||
{{ container_args }}
|
{{ container_args }}
|
||||||
{{ network_args }}
|
{{ network_args }}
|
||||||
{{ pacemaker_args }}
|
{{ pacemaker_args }}
|
||||||
|
|
|
@ -24,3 +24,10 @@
|
||||||
template:
|
template:
|
||||||
src: "overcloud_services.yaml.j2"
|
src: "overcloud_services.yaml.j2"
|
||||||
dest: "{{ working_dir }}/overcloud_services.yaml"
|
dest: "{{ working_dir }}/overcloud_services.yaml"
|
||||||
|
|
||||||
|
- name: Cloud names heat environment
|
||||||
|
when: release not in ['mitaka', 'liberty']
|
||||||
|
template:
|
||||||
|
src: "cloud-names.yaml.j2"
|
||||||
|
dest: "{{ working_dir }}/cloud-names.yaml"
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,12 @@
|
||||||
-e {{ overcloud_templates_path }}/environments/cinder-backup.yaml
|
-e {{ overcloud_templates_path }}/environments/cinder-backup.yaml
|
||||||
when: enable_cinder_backup|bool
|
when: enable_cinder_backup|bool
|
||||||
|
|
||||||
|
- name: Set cloud-name variables
|
||||||
|
set_fact:
|
||||||
|
cloud_name_args: >-
|
||||||
|
-e {{ working_dir }}/cloud-names.yaml
|
||||||
|
when: release not in ['mitaka', 'liberty']
|
||||||
|
|
||||||
- name: set ssl_args fact for master/newton
|
- name: set ssl_args fact for master/newton
|
||||||
set_fact:
|
set_fact:
|
||||||
ssl_args: >-
|
ssl_args: >-
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
# Defines the cloud names based on parameters given.
|
||||||
|
|
||||||
|
parameter_defaults:
|
||||||
|
CloudName: {{overcloud_cloud_name|default('overcloud.localdomain')}}
|
||||||
|
CloudNameInternal: {{overcloud_cloud_name_internal|default('overcloud.internalapi.localdomain')}}
|
||||||
|
CloudNameStorage: {{overcloud_cloud_name_storage|default('overcloud.storage.localdomain')}}
|
||||||
|
CloudNameStorageManagement: {{overcloud_cloud_name_storage_management|default('overcloud.storagemgmt.localdomain')}}
|
||||||
|
CloudNameCtlplane: {{overcloud_cloud_name_ctlplane|default('overcloud.ctlplane.localdomain')}}
|
||||||
|
CloudDomain: {{overcloud_cloud_domain|default('localdomain')}}
|
Loading…
Reference in New Issue