Rename state identifiers
Just for cosmetics
This commit is contained in:
parent
f0cf823177
commit
0846ae41e3
3 changed files with 6 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
||||||
include:
|
include:
|
||||||
- logrotate
|
- logrotate
|
||||||
|
|
||||||
logrotate_config:
|
logrotate-config:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ logrotate.conf_file }}
|
- name: {{ logrotate.conf_file }}
|
||||||
- source: salt://logrotate/files/{{ salt['grains.get']('os_family') }}/logrotate.conf
|
- source: salt://logrotate/files/{{ salt['grains.get']('os_family') }}/logrotate.conf
|
||||||
|
@ -12,7 +12,7 @@ logrotate_config:
|
||||||
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
|
- group: {{ salt['pillar.get']('logrotate:config:group', logrotate.group) }}
|
||||||
- mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }}
|
- mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }}
|
||||||
|
|
||||||
logrotate_directory:
|
logrotate-directory:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: {{ logrotate.include_dir }}
|
- name: {{ logrotate.include_dir }}
|
||||||
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
|
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
include:
|
include:
|
||||||
- logrotate
|
- logrotate
|
||||||
|
|
||||||
{% for key,value in jobs.items() %}
|
{% for key, value in jobs.items() %}
|
||||||
logrotate_{{key}}:
|
logrotate-{{ key }}:
|
||||||
file.managed:
|
file.managed:
|
||||||
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}
|
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}
|
||||||
- source: salt://logrotate/templates/job.tmpl
|
- source: salt://logrotate/templates/job.tmpl
|
||||||
|
|
|
@ -13,5 +13,5 @@ logrotate:
|
||||||
- enable: True
|
- enable: True
|
||||||
- require:
|
- require:
|
||||||
- pkg: logrotate-pkg
|
- pkg: logrotate-pkg
|
||||||
- file: logrotate_config
|
- file: logrotate-config
|
||||||
- file: logrotate_directory
|
- file: logrotate-directory
|
||||||
|
|
Loading…
Reference in a new issue