mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-15 17:20:21 +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:
|
||||
- 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:
|
||||
file.directory:
|
||||
- name: {{ map.named_directory }}
|
||||
|
@ -80,6 +103,7 @@ bind_local_config:
|
|||
map: {{ map }}
|
||||
- require:
|
||||
- pkg: bind
|
||||
- file: {{ map.log_dir }}/query.log
|
||||
- watch_in:
|
||||
- service: bind
|
||||
|
||||
|
@ -109,14 +133,6 @@ bind_default_zones:
|
|||
- watch_in:
|
||||
- service: bind
|
||||
|
||||
{{ map.log_dir }}:
|
||||
file.directory:
|
||||
- user: root
|
||||
- group: bind
|
||||
- mode: 775
|
||||
- template: jinja
|
||||
|
||||
|
||||
/etc/logrotate.d/{{ map.service }}:
|
||||
file.managed:
|
||||
- source: salt://bind/files/debian/logrotate_bind
|
||||
|
|
Loading…
Add table
Reference in a new issue