diff --git a/bind/config.sls b/bind/config.sls index 1dc68c1..aa43db0 100644 --- a/bind/config.sls +++ b/bind/config.sls @@ -127,6 +127,7 @@ bind_default_zones: file: - managed - source: salt://bind/files/debian/logrotate_bind + - template: jinja - user: root - group: root diff --git a/bind/files/debian/logrotate_bind b/bind/files/debian/logrotate_bind index 9677a5a..a17b4ae 100644 --- a/bind/files/debian/logrotate_bind +++ b/bind/files/debian/logrotate_bind @@ -7,5 +7,7 @@ copytruncate compress create 0664 bind root + {% if not salt['pkg.version']('logrotate').startswith('3.7')-%} su + {% endif %} }