diff --git a/defaults/main.yml b/defaults/main.yml index 1a57b9f4..2f20322b 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -187,6 +187,10 @@ nova_keystone_auth_plugin: password ## Nova enabled apis nova_enabled_apis: "osapi_compute,metadata" +## Domain name used to configure FQDN for instances. When empty, only the hostname without +## a domain will be configured. +nova_dhcp_domain: "{{ dhcp_domain | default('') }}" + ## Nova v2.1 nova_service_name: nova nova_service_type: compute diff --git a/releasenotes/notes/nova_dhcp_domain-6e1d4192fb6c7909.yaml b/releasenotes/notes/nova_dhcp_domain-6e1d4192fb6c7909.yaml new file mode 100644 index 00000000..9f1cc901 --- /dev/null +++ b/releasenotes/notes/nova_dhcp_domain-6e1d4192fb6c7909.yaml @@ -0,0 +1,7 @@ +--- + +features: + - | + Re-added ``nova_dhcp_domain`` variable that defaults to the + ``dhcp_domain``. When set to empty string, only the hostname without + a domain will be configured for the instances. diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index f3813e20..7b385103 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -273,6 +273,7 @@ secure_proxy_ssl_header = {{ nova_secure_proxy_ssl_header }} [api] use_forwarded_for = {{ nova_network_services[nova_network_type]['use_forwarded_for'] | bool }} vendordata_jsonfile_path = /etc/nova/vendor_data.json +dhcp_domain = {{ nova_dhcp_domain }} [scheduler] workers = {{ nova_scheduler_workers | default(nova_api_threads) }}