2019-10-12 02:19:52 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-05-10 01:49:38 +02:00
|
|
|
control 'Keepalived configuration' do
|
|
|
|
title 'should match desired lines'
|
|
|
|
|
|
|
|
describe file('/etc/keepalived/keepalived.conf') do
|
|
|
|
# Default config
|
|
|
|
its('content') { should include 'smtp_server 192.168.200.1' }
|
|
|
|
|
|
|
|
# Custom config from pillar
|
|
|
|
its('content') { should include 'acassen@firewall.loc' }
|
|
|
|
end
|
|
|
|
end
|