mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-17 02:00:23 +00:00
Fix creation of logfile (query.log) during first install.
This commit is contained in:
parent
c9a480c992
commit
0de651043f
1 changed files with 24 additions and 8 deletions
|
@ -3,6 +3,29 @@
|
||||||
include:
|
include:
|
||||||
- bind
|
- bind
|
||||||
|
|
||||||
|
{{ map.log_dir }}:
|
||||||
|
file.directory:
|
||||||
|
- user: root
|
||||||
|
- group: bind
|
||||||
|
- mode: 775
|
||||||
|
|
||||||
|
bind_restart:
|
||||||
|
service.running:
|
||||||
|
- name: bind9
|
||||||
|
- reload: False
|
||||||
|
- watch:
|
||||||
|
- file: {{ map.log_dir }}/query.log
|
||||||
|
- require:
|
||||||
|
- file: {{ map.log_dir }}/query.log
|
||||||
|
|
||||||
|
{{ map.log_dir }}/query.log:
|
||||||
|
file.managed:
|
||||||
|
- user: bind
|
||||||
|
- group: bind
|
||||||
|
- mode: 644
|
||||||
|
- require:
|
||||||
|
- file: {{ map.log_dir }}
|
||||||
|
|
||||||
named_directory:
|
named_directory:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: {{ map.named_directory }}
|
- name: {{ map.named_directory }}
|
||||||
|
@ -80,6 +103,7 @@ bind_local_config:
|
||||||
map: {{ map }}
|
map: {{ map }}
|
||||||
- require:
|
- require:
|
||||||
- pkg: bind
|
- pkg: bind
|
||||||
|
- file: {{ map.log_dir }}/query.log
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: bind
|
- service: bind
|
||||||
|
|
||||||
|
@ -109,14 +133,6 @@ bind_default_zones:
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: bind
|
- service: bind
|
||||||
|
|
||||||
{{ map.log_dir }}:
|
|
||||||
file.directory:
|
|
||||||
- user: root
|
|
||||||
- group: bind
|
|
||||||
- mode: 775
|
|
||||||
- template: jinja
|
|
||||||
|
|
||||||
|
|
||||||
/etc/logrotate.d/{{ map.service }}:
|
/etc/logrotate.d/{{ map.service }}:
|
||||||
file.managed:
|
file.managed:
|
||||||
- source: salt://bind/files/debian/logrotate_bind
|
- source: salt://bind/files/debian/logrotate_bind
|
||||||
|
|
Loading…
Add table
Reference in a new issue