30 lines
566 B
Ruby
30 lines
566 B
Ruby
require 'serverspec'
|
|
|
|
set :backend, :exec
|
|
|
|
puts
|
|
puts '================================'
|
|
puts %x(ansible --version)
|
|
puts '================================'
|
|
|
|
sleep 10
|
|
|
|
describe package('kibana') do
|
|
it { should be_installed }
|
|
end
|
|
|
|
describe file('/etc/kibana/kibana.yml') do
|
|
it { should be_file }
|
|
it { should be_mode 644 }
|
|
it { should be_owned_by 'root' }
|
|
it { should be_grouped_into 'root' }
|
|
end
|
|
|
|
describe service('kibana') do
|
|
it { should be_enabled }
|
|
it { should be_running.under('systemd') }
|
|
end
|
|
|
|
describe port(5601) do
|
|
it { should be_listening }
|
|
end
|