1
0
Fork 0
mirror of synced 2024-12-22 06:01:08 -05:00

Merge pull request #30 from daks/kitchen-tests

adding Inspec tests ran with Kitchen and Vagrant on Debian Stretch
This commit is contained in:
Niels Abspoel 2018-07-06 23:09:50 +02:00 committed by GitHub
commit 42d68051a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 3 deletions

View file

@ -1,8 +1,10 @@
# vim: sts=2 ts=2 sw=2 et ai # vim: sts=2 ts=2 sw=2 et ai
logrotate: logrotate:
lookup: # default OS values can be overridden in 'lookup' dict
pkg: logrotate #lookup:
service: crond #pkg: logrotate
#service: crond
default_config: default_config:
weekly: True weekly: True
rotate: 52 rotate: 52

View file

@ -0,0 +1,27 @@
# 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

View file

@ -0,0 +1,10 @@
name: shorewall
title: Shorewall Profile
maintainer: Eric Veiras Galisson
copyright: Eric Veiras Galisson
copyright_email: eric AT sietch-tabr DOT com
license: MIT
summary: Logrotate Compliance Profile
version: 0.1.0
supports:
- os-family: linux