mirror of
https://github.com/saltstack-formulas/bind-formula.git
synced 2025-04-16 01:30:22 +00:00
version check for logrotate
This commit is contained in:
parent
40c9d1de6f
commit
282f022d3d
2 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,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
|
||||||
|
|
||||||
|
|
|
@ -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 %}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue