mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-10 14:51:42 +00:00
Generate reverse records for 'any' zone
This commit is contained in:
parent
4623fb5e60
commit
449597241c
2 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
{%- set res = {} %}
|
||||
{%- set net = salt['network.calc_net'](net) %}
|
||||
{% set for_zones = [ for_zones ] if for_zones is string else for_zones %}
|
||||
{% set for_zones = available_zones.keys() if for_zones|length == 1 and for_zones[0] == 'any' else for_zones %}
|
||||
{%- for zone in for_zones %}
|
||||
{%- set A_records = available_zones.get(zone, {}).get('records', {}).get('A', {}) %}
|
||||
{%- for name, addr_list in A_records|dictsort %}
|
||||
|
|
|
@ -326,6 +326,8 @@ bind:
|
|||
for_zones:
|
||||
- example.com # example.com is a zone defined in pillar, see above
|
||||
|
||||
# for_zones:
|
||||
# - any # generate reverse record for any zone
|
||||
|
||||
### Externally defined Zones ###
|
||||
bind:
|
||||
|
|
Loading…
Add table
Reference in a new issue