From 282f022d3de75a9fead6c58523a253db2196aa49 Mon Sep 17 00:00:00 2001 From: Cosmin Dumitru Date: Sun, 19 Oct 2014 15:24:41 +0200 Subject: [PATCH] version check for logrotate --- bind/config.sls | 1 + bind/files/debian/logrotate_bind | 2 ++ 2 files changed, 3 insertions(+) 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 %} }