bind-formula/bind/init.sls
Thomas S Hatch 092d39be24 Add bind sls
2013-06-13 00:00:04 -04:00

22 lines
425 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: root
- mode: 644
- require:
- pkg: bind9
service.running:
- name: named
- enable: True
- watch:
- file: bind9