Quellcode durchsuchen

Rename state identifiers

Just for cosmetics
master
Gilles Dartiguelongue vor 7 Jahren
Ursprung
Commit
0846ae41e3
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. +2
    -2
      logrotate/config.sls
  2. +2
    -2
      logrotate/jobs.sls
  3. +2
    -2
      logrotate/service.sls

+ 2
- 2
logrotate/config.sls Datei anzeigen

@@ -3,7 +3,7 @@
include:
- logrotate

logrotate_config:
logrotate-config:
file.managed:
- name: {{ logrotate.conf_file }}
- 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) }}
- mode: {{ salt['pillar.get']('logrotate:config:mode', '644') }}

logrotate_directory:
logrotate-directory:
file.directory:
- name: {{ logrotate.include_dir }}
- user: {{ salt['pillar.get']('logrotate:config:user', logrotate.user) }}

+ 2
- 2
logrotate/jobs.sls Datei anzeigen

@@ -5,8 +5,8 @@
include:
- logrotate

{% for key,value in jobs.items() %}
logrotate_{{key}}:
{% for key, value in jobs.items() %}
logrotate-{{ key }}:
file.managed:
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }}
- source: salt://logrotate/templates/job.tmpl

+ 2
- 2
logrotate/service.sls Datei anzeigen

@@ -13,5 +13,5 @@ logrotate:
- enable: True
- require:
- pkg: logrotate-pkg
- file: logrotate_config
- file: logrotate_directory
- file: logrotate-config
- file: logrotate-directory

Laden…
Abbrechen
Speichern