mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 09:40:22 +00:00
22 lines
426 B
Text
22 lines
426 B
Text
bind9:
|
|
pkg.installed:
|
|
{% if grains['os_family'] == 'Debian' %}
|
|
- pkgs:
|
|
- bind9
|
|
- bind9-doc
|
|
- bind9utils
|
|
{% else %}
|
|
- name: bind
|
|
file.managed:
|
|
- name: /etc/named.conf
|
|
- source: salt://bind/files/named.conf
|
|
- user: root
|
|
- group: named
|
|
- mode: 640
|
|
- require:
|
|
- pkg: bind9
|
|
service.running:
|
|
- name: named
|
|
- enable: True
|
|
- watch:
|
|
- file: bind9
|