Commit c335f5ed authored by nmadhok's avatar nmadhok
Browse files

Moving logrotate directory setup from jobs.sls and config.sls to init.sls. Closes #8

parent dc491d65
......@@ -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 }}
......
......@@ -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
......@@ -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:
......
Markdown is supported
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