diff --git a/bind/config.sls b/bind/config.sls index 63208a7..8bb5771 100644 --- a/bind/config.sls +++ b/bind/config.sls @@ -129,6 +129,7 @@ bind_default_zones: file: - managed - source: salt://bind/files/debian/logrotate_bind + - template: jinja - user: root - group: root - template: jinja diff --git a/bind/files/debian/logrotate_bind b/bind/files/debian/logrotate_bind index 396e1a7..cbc1417 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 %} }