mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +00:00
Add bind sls
This commit is contained in:
parent
9c55cc941c
commit
092d39be24
1 changed files with 22 additions and 0 deletions
22
bind/init.sls
Normal file
22
bind/init.sls
Normal 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
|
Loading…
Add table
Reference in a new issue