25 lines
434 B
Ruby
25 lines
434 B
Ruby
require 'serverspec'
|
|
|
|
set :backend, :exec
|
|
|
|
puts
|
|
puts '================================'
|
|
puts %x(ansible --version)
|
|
puts '================================'
|
|
|
|
%w[
|
|
cryptsetup
|
|
util-linux
|
|
].each do |package|
|
|
describe package(package) do
|
|
it { should be_installed }
|
|
end
|
|
end
|
|
|
|
describe file('/dev/mapper/data_encrypted') do
|
|
it { should be_block_device }
|
|
end
|
|
|
|
describe file('/mnt/data_decrypted') do
|
|
it { should be_mounted }
|
|
end
|