@@ -0,0 +1,18 @@ | |||
control 'SyslogNG configuration' do | |||
title 'should match desired lines' | |||
describe file('/etc/syslog-ng/syslog-ng.conf') do | |||
# # Default config | |||
# its('content') { should include '[inputs.diskio]' } | |||
# its('content') { should include '[inputs.kernel]' } | |||
# its('content') { should include '[inputs.mem]' } | |||
# its('content') { should include '[inputs.processes]' } | |||
# its('content') { should include '[inputs.swap]' } | |||
# its('content') { should include '[inputs.system]' } | |||
# # Custom config from pillar (default: nothing) | |||
# its('content') { should include '[outputs.discard]' } | |||
it { should exist } | |||
end | |||
end |
@@ -0,0 +1,7 @@ | |||
control 'SyslogNG package' do | |||
title 'should be installed' | |||
describe package('syslog-ng') do | |||
it { should be_installed } | |||
end | |||
end |
@@ -0,0 +1,9 @@ | |||
control 'SyslogNG service' do | |||
title 'should be running and enabled' | |||
describe service('syslog-ng') do | |||
it { should be_enabled } | |||
it { should be_running } | |||
end | |||
end |
@@ -1,17 +0,0 @@ | |||
# encoding: utf-8 | |||
title 'Test SyslogNG installation' | |||
describe package('syslog-ng') do | |||
it { should be_installed } | |||
end | |||
describe file('/etc/syslog-ng/syslog-ng.conf') do | |||
it { should exist } | |||
end | |||
describe sysv_service('syslog-ng') do | |||
it { should be_installed } | |||
it { should be_enabled } | |||
it { should be_running } | |||
end |