diff --git a/src/config.yaml b/src/config.yaml index d835324..aaf4a1f 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -109,6 +109,12 @@ options: description: | Defines the time (in seconds) between retries for the SOA record if the slave (secondary) fails to contact the master when refresh has expired. + managed-resource-email: + type: string + default: hostmaster@example.com + description: | + Define a email to use for managed resources like domains created by the + FloatingIP. default-ttl: type: int default: diff --git a/src/templates/mitaka/designate.conf b/src/templates/mitaka/designate.conf index cdbb167..9f8ab17 100644 --- a/src/templates/mitaka/designate.conf +++ b/src/templates/mitaka/designate.conf @@ -84,7 +84,7 @@ workers = {{ options.workers }} ## Managed resources settings # Email to use for managed resources like domains created by the FloatingIP API -#managed_resource_email = hostmaster@example.com. +managed_resource_email = {{ options.managed_resource_email }} {%- if options.managed_resource_tenant_id %} # Tenant ID to own all managed resources - like auto-created records etc. diff --git a/src/templates/queens/designate.conf b/src/templates/queens/designate.conf index 3c6b605..cf328f7 100644 --- a/src/templates/queens/designate.conf +++ b/src/templates/queens/designate.conf @@ -87,7 +87,7 @@ workers = {{ options.workers }} ## Managed resources settings # Email to use for managed resources like domains created by the FloatingIP API -#managed_resource_email = hostmaster@example.com. +managed_resource_email = {{ options.managed_resource_email }} {%- if options.managed_resource_tenant_id %} # Tenant ID to own all managed resources - like auto-created records etc. diff --git a/src/templates/rocky/designate.conf b/src/templates/rocky/designate.conf index 11c406e..8b04a78 100644 --- a/src/templates/rocky/designate.conf +++ b/src/templates/rocky/designate.conf @@ -87,7 +87,7 @@ workers = {{ options.workers }} ## Managed resources settings # Email to use for managed resources like domains created by the FloatingIP API -#managed_resource_email = hostmaster@example.com. +managed_resource_email = {{ options.managed_resource_email }} {%- if options.managed_resource_tenant_id %} # Tenant ID to own all managed resources - like auto-created records etc.