1
0
Fork 0
mirror of synced 2024-12-21 21:51:09 -05:00

Merge pull request #9 from saltstack-formulas/patch-1

Moving logrotate directory setup from jobs.sls and config.sls to init.sls
This commit is contained in:
Niels Abspoel 2015-03-20 21:58:18 +01:00
commit bb8ed4cecc
3 changed files with 11 additions and 20 deletions

View file

@ -3,16 +3,6 @@
include:
- logrotate
logrotate_directory:
file.directory:
- name: {{ logrotate.include_dir }}
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
- mode: 755
- makedirs: True
- require:
- pkg: logrotate
logrotate_config:
file.managed:
- name: {{ logrotate.conf_file }}

View file

@ -7,3 +7,14 @@ logrotate:
- name: {{ logrotate.service }}
- enable: True
- reload: True
logrotate_directory:
file.directory:
- name: {{ logrotate.include_dir }}
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
- mode: 755
- makedirs: True
- require:
- pkg: logrotate

View file

@ -5,16 +5,6 @@
include:
- logrotate
logrotate_directory:
file.directory:
- name: {{ logrotate.include_dir }}
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
- mode: 755
- makedirs: True
- require:
- pkg: logrotate
{% for key,value in jobs.iteritems() %}
{{key}}:
file.managed: