File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ bind_rndc_client_config:
226
226
# }
227
227
{%- set zone_source = ' salt://bind/files/zone.jinja' if zone_records != {} else ' salt://' ~ map .zones_source_dir ~ ' /' ~ file % }
228
228
{%- set serial_auto = salt[' pillar.get' ](' bind:available_zones:' + zone + ' :soa:serial' , ' ' ) == ' auto' % }
229
- {% if file and zone_data[' type' ] == ' master' -% }
229
+ {% if file and zone_data[' type' ] == ' master' and (zone_data[ ' managed ' ] is not defined or zone_data[ ' managed ' ]) -% }
230
230
zones{{ dash_view }}- {{ zone }}{{ ' .include' if serial_auto else ' ' }}:
231
231
file .managed:
232
232
- name: {{ zones_directory }}/ {{ file }}{{ ' .include' if serial_auto else ' ' }}
Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ bind:
173
173
type : master # Yo don't have define zone again in available_zones.
174
174
# This feature is backward compatibile and only available in debian
175
175
notify : false # if type master you need specify notify true/false
176
+ managed : true # Set this to false if you don't want Salt to manage this zone file
177
+ # If this parameter is set to true or is not set at all, the zone will be managed through salt
176
178
177
179
sub2.domain.com :
178
180
file : sub2.domain.com
You can’t perform that action at this time.
0 commit comments