Add [designate] section in neutron.conf

If neutron_designate_enabled variable is true,
this will enable the [designate] section and all needed configuration.

Change-Id: I82469a1de6a7ebce8ca2f568c1bb8125bbc57965
Closes-Bug: 1687594
Depends-On: I46316c658a3746f91313641e5a26de49a03b2164
This commit is contained in:
Albert Mikaelyan 2017-10-09 21:35:37 +03:00
parent 87819c9c95
commit 5fe139052a
2 changed files with 39 additions and 0 deletions

View File

@ -549,6 +549,15 @@ neutron_agent_down_time: 120
neutron_agent_polling_interval: 5
neutron_report_interval: "{{ neutron_agent_down_time | int / 2 | int }}"
## Designate integration
neutron_designate_enabled: False
neutron_allow_reverse_dns_lookup: True
neutron_ipv4_ptr_zone_prefix_size: 24
neutron_ipv6_ptr_zone_prefix_size: 116
# Notifications topic for designate
neutron_notifications_designate: notifications_designate
# L3HA configuration options.
neutron_ha_vrrp_auth_type: PASS
neutron_l3_ha_net_cidr: 169.254.192.0/18

View File

@ -100,12 +100,42 @@ dhcp_agents_per_network = {{ dhcp_agents_max }}
dhcp_lease_duration = 86400
{% endif %}
# Driver for external DNS integration. (string value)
{% if neutron_designate_enabled %}
external_dns_driver = designate
{% else %}
#external_dns_driver = <None>
{% endif %}
# Nova notifications
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
send_events_interval = 2
nova_url = {{ nova_service_adminurl|replace('/%(tenant_id)s', '') }}
# End of [DEFAULT] section
{% if neutron_designate_enabled %}
[designate]
# required by current dns integration implementation
url = {{ designate_service_adminurl }}
auth_type = {{ designate_keystone_auth_plugin }}
auth_uri = {{ keystone_service_adminuri }}
auth_url = {{ keystone_service_adminurl }}
region_name = {{ designate_service_region }}
project_domain_id = {{ designate_service_project_domain_id }}
user_domain_id = {{ designate_service_user_domain_id }}
project_name = {{ designate_service_project_name }}
username = {{ designate_service_user_name }}
password = {{ designate_service_password }}
allow_reverse_dns_lookup = {{ neutron_allow_reverse_dns_lookup }}
ipv4_ptr_zone_prefix_size = {{ neutron_ipv4_ptr_zone_prefix_size }}
ipv6_ptr_zone_prefix_size = {{ neutron_ipv6_ptr_zone_prefix_size }}
{% endif %}
[nova]
auth_plugin = {{ nova_keystone_auth_plugin }}
auth_url = {{ keystone_service_adminurl }}