Inspec WebUI it is Rails app for show result from Inspec
- OS: CentOS 7
- Ruby: 2.3.3
- Rails: 5.0.0.1
# git clone https://github.com/mr-exz/inspec-webui.git
# cd inspec-webui
# cd ./vagrant/
# vagrant up
# vagrant ssh
sudo -s
cd /opt/inspec-webui
gem install bundle
bundle install -V
./bin/rails server -b 0.0.0.0 -p 80
Open http://ip/ and upload Inspec script file and upload server list file.
- inspec_ssh.rb - example inspec scrip
- servers_list.csv - example servers list file
# ls inspec-webui/example/
inspec_ssh.rb servers_list.csv
Example server list format: %CONNECTION_STRING%,%PASSWORD%
ssh://root@127.0.0.1,123456
ssh://root@127.0.0.1,123456
# encoding: utf-8
# copyright: 2016, Nikolay Ilinov
# license: All rights reserved
title 'sshd checks'
control "sshd installed" do
describe service('sshd') do
it { should be_installed }
end
end
control "sshd enabled" do
describe service('sshd') do
it { should be_enabled }
end
end
control "sshd running" do
describe service('sshd') do
it { should be_running }
end
end
if you add a lot of servers, it will be long work.