Browse Source

add return support lookup

patch-1
root 10 years ago
parent
commit
e730dc8989
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      logrotate/jobs.sls
  2. +1
    -1
      logrotate/map.jinja

+ 2
- 1
logrotate/jobs.sls View File

# 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
- 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] }}

+ 1
- 1
logrotate/map.jinja View File

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

Loading…
Cancel
Save