Merge "Add config options to handle SOA records."

This commit is contained in:
Zuul 2021-08-04 09:33:40 +00:00 committed by Gerrit Code Review
commit fa48d3d7cf
4 changed files with 98 additions and 2 deletions

View File

@ -78,9 +78,42 @@ options:
type: int type: int
default: 86400 default: 86400
description: | description: |
Default SOA expire value in seconds to specify how long a Default SOA expire value (in seconds) to specify how long a
secondary will still treat its copy of the zone data as valid if secondary will still treat its copy of the zone data as valid if
it can't contact the primary. it can't contact the primary.
default-soa-minimum:
type: int
default:
description: |
Default SOA minimum value (in seconds) how long should cache a negative
response.
default-soa-refresh-min:
type: int
default:
description: |
SOA refresh indicates the time (in seconds) when the slave will try to
refresh the zone from the master, Designate randomizes the refresh time
using `default-soa-refresh-min` and `default-soa-refresh-max` as lower
and upper boundaries respectively.
default-soa-refresh-max:
type: int
default:
description: |
SOA refresh indicates the time (in seconds) when the slave will try to
refresh the zone from the master, Designate randomizes the refresh time
using `default-soa-refresh-min` and `default-soa-refresh-max` as lower
and upper boundaries respectively.
default-soa-retry:
type: int
default:
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.
default-ttl:
type: int
default:
description: |
Default TTL (in seconds) for newly created zones.
use-policyd-override: use-policyd-override:
type: boolean type: boolean
default: False default: False

View File

@ -28,6 +28,26 @@ debug = {{ options.debug }}
# Which networking API to use, Defaults to neutron # Which networking API to use, Defaults to neutron
#network_api = neutron #network_api = neutron
{%- if options.default_ttl %}
# TTL Value (integer value)
default_ttl = {{ options.default_ttl }}
{%- endif %}
{%- if options.default_soa_refresh_min %}
# SOA refresh-min value (integer value)
default_soa_refresh_min = {{ options.default_soa_refresh_min }}
{%- endif %}
{%- if options.default_soa_refresh_max %}
# SOA max value (integer value)
default_soa_refresh_max = {{ options.default_soa_refresh_max }}
{%- endif %}
{%- if options.default_soa_retry %}
# SOA retry (integer value)
default_soa_retry = {{ options.default_soa_retry }}
{%- endif %}
{%- if options.default_soa_minimum %}
# SOA minimum value (integer value)
default_soa_minimum = {{ options.default_soa_minimum }}
{%- endif %}
# SOA expire (integer value) # SOA expire (integer value)
default_soa_expire = {{ options.default_soa_expire }} default_soa_expire = {{ options.default_soa_expire }}

View File

@ -29,6 +29,26 @@ debug = {{ options.debug }}
# Which networking API to use, Defaults to neutron # Which networking API to use, Defaults to neutron
#network_api = neutron #network_api = neutron
{%- if options.default_ttl %}
# TTL Value (integer value)
default_ttl = {{ options.default_ttl }}
{%- endif %}
{%- if options.default_soa_refresh_min %}
# SOA refresh-min value (integer value)
default_soa_refresh_min = {{ options.default_soa_refresh_min }}
{%- endif %}
{%- if options.default_soa_refresh_max %}
# SOA max value (integer value)
default_soa_refresh_max = {{ options.default_soa_refresh_max }}
{%- endif %}
{%- if options.default_soa_retry %}
# SOA retry (integer value)
default_soa_retry = {{ options.default_soa_retry }}
{%- endif %}
{%- if options.default_soa_minimum %}
# SOA minimum value (integer value)
default_soa_minimum = {{ options.default_soa_minimum }}
{%- endif %}
# SOA expire (integer value) # SOA expire (integer value)
default_soa_expire = {{ options.default_soa_expire }} default_soa_expire = {{ options.default_soa_expire }}

View File

@ -29,6 +29,29 @@ debug = {{ options.debug }}
# Which networking API to use, Defaults to neutron # Which networking API to use, Defaults to neutron
#network_api = neutron #network_api = neutron
{%- if options.default_ttl %}
# TTL Value (integer value)
default_ttl = {{ options.default_ttl }}
{%- endif %}
{%- if options.default_soa_refresh_min %}
# SOA refresh-min value (integer value)
default_soa_refresh_min = {{ options.default_soa_refresh_min }}
{%- endif %}
{%- if options.default_soa_refresh_max %}
# SOA max value (integer value)
default_soa_refresh_max = {{ options.default_soa_refresh_max }}
{%- endif %}
{%- if options.default_soa_retry %}
# SOA retry (integer value)
default_soa_retry = {{ options.default_soa_retry }}
{%- endif %}
{%- if options.default_soa_minimum %}
# SOA minimum value (integer value)
default_soa_minimum = {{ options.default_soa_minimum }}
{%- endif %}
# SOA expire (integer value)
default_soa_expire = {{ options.default_soa_expire }}
{% include "parts/section-transport-url" %} {% include "parts/section-transport-url" %}
#----------------------- #-----------------------