Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Create a profile (cookbook)
- inspec init profile SQLServerSecurity
- # check profile is valid
- insec check SQLServerSecurity
- # Run single inspec.rb file
- inspec exec mytest.rb
- # Run a profile
- inspec exec SQLServerSecurity
- # test remote machine via ssh
- inspec exec SQLServerSecurity --key-files /path/keys/ssh.key --target ssh://root@192.168.1.12
- inspec exec mytest.rb --key-files /path/keys/ssh.key --target ssh://root@192.168.1.12
- # test remote machine via WinRM
- insec exec mytest.rb --target winrm://administrator@192.168.1.1 --password SuperSecretPassword
- # test remote docker
- inspec mytest.rb --target docker://containerid
Add Comment
Please, Sign In to add comment