Add bind sls

This commit is contained in:
Thomas S Hatch 2013-06-13 00:00:04 -04:00
parent 9c55cc941c
commit 092d39be24

22
bind/init.sls Normal file
View file

@ -0,0 +1,22 @@
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