1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00

add return support lookup

This commit is contained in:
root 2015-01-22 09:08:21 +08:00
parent cfc24f6ead
commit e730dc8989
2 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,6 @@
# 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') %}
include: include:
- logrotate - logrotate
@ -14,7 +15,7 @@ logrotate_directory:
- require: - require:
- pkg: logrotate - pkg: logrotate
{% for key,value in logrotate.jobs.iteritems() %} {% for key,value in jobs.iteritems() %}
{{key}}: {{key}}:
file.managed: file.managed:
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }} - name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}

View file

@ -23,4 +23,4 @@
'user' : 'root', 'user' : 'root',
'group' : 'root', 'group' : 'root',
}, },
}, merge=salt['pillar.get']('logrotate')) %} }, merge=salt['pillar.get']('logrotate:lookup')) %}