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' }
|
2020-04-06 22:40:52 +02:00
|
|
|
|
|
|
|
# Check config from example pillar -- example vrrp sync group
|
|
|
|
its('content') { should include 'EXAMPLE_GROUP' }
|
|
|
|
|
|
|
|
# Check config from example pillar -- vrrp sync group item
|
|
|
|
its('content') { should include 'VI_IPV6' }
|
2019-05-10 01:49:38 +02:00
|
|
|
end
|
|
|
|
end
|