Saltstack Official Logrotate Formula
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- # encoding: utf-8
-
- title 'Test logrotate installation'
-
- describe package('logrotate') do
- it { should be_installed }
- end
-
- describe file('/etc/logrotate.conf') do
- it { should exist }
- it { should be_owned_by 'root' }
- it { should be_grouped_into 'root' }
- its('mode') { should cmp '0644' }
- end
-
- describe file('/etc/logrotate.d') do
- it { should be_directory }
- it { should be_owned_by 'root' }
- it { should be_grouped_into 'root' }
- its('mode') { should cmp '0755' }
- end
-
- describe service('cron') do
- it { should be_installed }
- it { should be_enabled }
- it { should be_running }
- end
|