diff --git a/src/config.yaml b/src/config.yaml index 302a0fd..c7490de 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -34,10 +34,18 @@ options: type: string default: '%(octet0)s-%(octet1)s-%(octet2)s-%(octet3)s.%(zone)s' description: Format of floating IP global records. + neutron-record-formatv6: + type: string + default: '%(hostname)s.%(tenant_id)s.%(zone)s' + description: Format of floating IPv6 global records. nova-record-format: type: string default: '%(hostname)s.%(tenant_id)s.%(zone)s' - description: Format of floating IP global records. + description: Format of instance IPv4 global records. + nova-record-formatv6: + type: string + default: '%(hostname)s.%(tenant_id)s.%(zone)s' + description: Format of floating IPv6 global records. enable-host-header: type: boolean default: false diff --git a/src/templates/newton/neutron_sink.cfg b/src/templates/newton/neutron_sink.cfg new file mode 100644 index 0000000..e13b6d1 --- /dev/null +++ b/src/templates/newton/neutron_sink.cfg @@ -0,0 +1,8 @@ +{% if options.neutron_domain_id %} +[handler:neutron_floatingip] +zone_id = {{ options.neutron_domain_id }} +notification_topics = notifications_designate +control_exchange = 'neutron' +formatv4 = '{{ options.neutron_record_format }}' +formatv6 = '{{ options.neutron_record_formatv6 }}' +{% endif %} diff --git a/src/templates/newton/nova_sink.cfg b/src/templates/newton/nova_sink.cfg new file mode 100644 index 0000000..be4f89d --- /dev/null +++ b/src/templates/newton/nova_sink.cfg @@ -0,0 +1,7 @@ +{% if options.nova_domain_id %} +[handler:nova_fixed] +zone_id = {{ options.nova_domain_id }} +control_exchange = 'nova' +formatv4 = '{{ options.nova_record_format }}' +formatv6 = '{{ options.nova_record_formatv6 }}' +{% endif %}