blob: b55d5d4884c2e480b61c00440e65848a58d016bb [file] [log] [blame]
{%- from "bind/map.jinja" import client with context %}
{%- if client.get('enabled', True) %}
bind_client_packages:
pkg.installed:
- pkgs: {{ client.pkgs }}
bind_rndc_config:
file.managed:
- name: {{ client.rndc_config }}
- source: 'salt://bind/files/rndc.conf'
- template: jinja
- user: root
- group: root
- mode: 640
- require:
- pkg: bind_client_packages
{%- endif %}