26 lines
593 B
Ruby
26 lines
593 B
Ruby
require 'serverspec'
|
|
|
|
set :backend, :exec
|
|
|
|
puts
|
|
puts '================================'
|
|
puts %x(ansible --version)
|
|
puts '================================'
|
|
|
|
describe package('keepalived') do
|
|
it { should be_installed }
|
|
end
|
|
|
|
describe file('/etc/keepalived/keepalived.conf') do
|
|
it { should be_file }
|
|
it { should be_mode 600 }
|
|
it { should be_owned_by 'root' }
|
|
it { should be_grouped_into 'root' }
|
|
it { should contain 'priority 200' }
|
|
it { should contain 'interval 10' }
|
|
end
|
|
|
|
describe service('keepalived') do
|
|
it { should be_enabled }
|
|
it { should be_running.under('systemd') }
|
|
end
|