瀏覽代碼

Rename state identifiers

Just for cosmetics
tags/v0.9.0
Gilles Dartiguelongue 7 年之前
父節點
當前提交
0846ae41e3
共有 3 個檔案被更改,包括 6 行新增6 行删除
  1. +2
    -2
      logrotate/config.sls
  2. +2
    -2
      logrotate/jobs.sls
  3. +2
    -2
      logrotate/service.sls

+ 2
- 2
logrotate/config.sls 查看文件

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
- 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) }}

+ 2
- 2
logrotate/jobs.sls 查看文件

include: include:
- logrotate - logrotate


{% for key,value in jobs.items() %}
logrotate_{{key}}:
{% for key, value in jobs.items() %}
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

+ 2
- 2
logrotate/service.sls 查看文件

- enable: True - enable: True
- require: - require:
- pkg: logrotate-pkg - pkg: logrotate-pkg
- file: logrotate_config
- file: logrotate_directory
- file: logrotate-config
- file: logrotate-directory

Loading…
取消
儲存