version check for logrotate

This commit is contained in:
Cosmin Dumitru 2014-10-19 15:24:41 +02:00
parent 40c9d1de6f
commit 282f022d3d
2 changed files with 3 additions and 0 deletions

View file

@ -127,6 +127,7 @@ bind_default_zones:
file:
- managed
- source: salt://bind/files/debian/logrotate_bind
- template: jinja
- user: root
- group: root

View file

@ -7,5 +7,7 @@
copytruncate
compress
create 0664 bind root
{% if not salt['pkg.version']('logrotate').startswith('3.7')-%}
su
{% endif %}
}