Przeglądaj źródła

integrating patch from danny-smit, fixes #33

tags/v0.9.0
Eric Veiras Galisson 6 lat temu
rodzic
commit
0d039778f8
2 zmienionych plików z 3 dodań i 4 usunięć
  1. +2
    -2
      logrotate/jobs.sls
  2. +1
    -2
      test/integration/default/controls/jobs.rb

+ 2
- 2
logrotate/jobs.sls Wyświetl plik

@@ -22,10 +22,10 @@ logrotate-{{ key }}:
- template: jinja
- context:
{% if value is mapping %}
path: {{ value.get('path', []) }}
path: {{ value.get('path', [key]) }}
data: {{ value.get('config', []) }}
{% else %}
path: {{ key }}
path: [ {{ key }} ]
data: {{ value }}
{% endif %}
{% endif %}

+ 1
- 2
test/integration/default/controls/jobs.rb Wyświetl plik

@@ -7,8 +7,7 @@ describe file('/etc/logrotate.d/error') do
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its('mode') { should cmp '0644' }
# FIXME
#its('content') { should include '/tmp/var/log/mysql/error' }
its('content') { should include '/tmp/var/log/mysql/error' }
its('content') { should include 'weekly' }
its('content') { should include 'missingok' }
its('content') { should include 'rotate 52' }

Ładowanie…
Anuluj
Zapisz