Sfoglia il codice sorgente

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

tags/v0.9.0
nmadhok 9 anni fa
parent
commit
c335f5edbc
3 ha cambiato i file con 11 aggiunte e 20 eliminazioni
  1. +0
    -10
      logrotate/config.sls
  2. +11
    -0
      logrotate/init.sls
  3. +0
    -10
      logrotate/jobs.sls

+ 0
- 10
logrotate/config.sls Vedi 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 }}

+ 11
- 0
logrotate/init.sls Vedi 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


+ 0
- 10
logrotate/jobs.sls Vedi 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:

Loading…
Annulla
Salva