Am trying to get DNS records auto adding to designate across multiple tenants into a single zone in designate for public IPs e.g. instances.region.example.cloud
my_instance1.instances.region.example.cloud.
your_instance1.instances.region.example.cloud. …
I can enforce global unique names, but am attempting to avoid that as clients may have many simple names and will create a lot of “name already in use” occurrences. It would be much easier to have the instance_name used in the DNS entry, rather than hostname.
| OS-EXT-SRV-ATTR:hostname | my-instance
| OS-EXT-SRV-ATTR:instance_name | instance-00000022
e.g. instance-00000022.instances.region.example.cloud
Alternatively it would have been useful to keep the hostname used, but add in the project / tenant into the name in DNS. The Designate charm used to allow for this, but that setting is deprecated.
nova-record-format | string
Default: %(hostname)s.%(tenant_id)s.%(zone)s
Format of floating IP global records. (NOTE: This option is obsolete starting from OpenStack Mitaka release)
I seems like Designate Sink would be useful here, but no existing charms or config in Designate charm.
Is there a way to achieve this, or am I looking at creating a custom charm?