Merge pull request #15 from cosu/master

detect logrotate version and pass correct option
This commit is contained in:
Wolodja Wentland 2014-11-22 08:48:45 +01:00
commit b7da1a30ef
2 changed files with 3 additions and 0 deletions

View file

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

View file

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