bind-formula/bind/init.sls
2013-06-13 00:04:08 -04:00

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