Guest User

Untitled

a guest
Nov 23rd, 2017
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. # Create a profile (cookbook)
  2. inspec init profile SQLServerSecurity
  3.  
  4. # check profile is valid
  5. insec check SQLServerSecurity
  6.  
  7. # Run single inspec.rb file
  8. inspec exec mytest.rb
  9.  
  10. # Run a profile
  11. inspec exec SQLServerSecurity
  12.  
  13. # test remote machine via ssh
  14. inspec exec SQLServerSecurity --key-files /path/keys/ssh.key --target ssh://root@192.168.1.12
  15. inspec exec mytest.rb --key-files /path/keys/ssh.key --target ssh://root@192.168.1.12
  16.  
  17. # test remote machine via WinRM
  18. insec exec mytest.rb --target winrm://administrator@192.168.1.1 --password SuperSecretPassword
  19.  
  20. # test remote docker
  21. inspec mytest.rb --target docker://containerid
Add Comment
Please, Sign In to add comment