Commit e730dc89 authored by root's avatar root
Browse files

add return support lookup

parent cfc24f6e
# vim: sts=2 ts=2 sw=2 et ai
{% from "logrotate/map.jinja" import logrotate with context %}
{% set jobs = salt['pillar.get']('logrotate:jobs') %}
include:
- logrotate
......@@ -14,7 +15,7 @@ logrotate_directory:
- require:
- pkg: logrotate
{% for key,value in logrotate.jobs.iteritems() %}
{% for key,value in jobs.iteritems() %}
{{key}}:
file.managed:
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}
......
......@@ -23,4 +23,4 @@
'user' : 'root',
'group' : 'root',
},
}, merge=salt['pillar.get']('logrotate')) %}
}, merge=salt['pillar.get']('logrotate:lookup')) %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment