commit
6692c23a8b
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
||||||
# vim: sts=2 ts=2 sw=2 et ai
|
# vim: sts=2 ts=2 sw=2 et ai
|
||||||
{% from "logrotate/map.jinja" import logrotate with context %}
|
{% from "logrotate/map.jinja" import logrotate with context %}
|
||||||
{% set jobs = salt['pillar.get']('logrotate:jobs') %}
|
{% set jobs = salt['pillar.get']('logrotate:jobs', {}) %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- logrotate
|
- logrotate
|
||||||
|
|
||||||
{% for key,value in jobs.iteritems() %}
|
{% for key,value in jobs.items() %}
|
||||||
logrotate_{{key}}:
|
logrotate_{{key}}:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}
|
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}
|
||||||
|
|
Loading…
Reference in a new issue