Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create content for interactive inspec online demo #954

Closed
arlimus opened this issue Aug 23, 2016 · 3 comments
Closed

Create content for interactive inspec online demo #954

arlimus opened this issue Aug 23, 2016 · 3 comments
Assignees
Labels
Type: Chore How can you have any pudding if you don't eat your meat?

Comments

@arlimus
Copy link
Contributor

arlimus commented Aug 23, 2016

#851

Vision: Have a place where users can try their first few inspec steps without download/installation/setup.

Goal and sections:

  • Understand how to use the InSpec CLI
  • Understand how to use the InSpec Shell
  • Create a simple profile
@arlimus arlimus added the Type: Chore How can you have any pudding if you don't eat your meat? label Aug 23, 2016
@arlimus arlimus mentioned this issue Aug 23, 2016
16 tasks
@arlimus arlimus self-assigned this Aug 23, 2016
@arlimus
Copy link
Contributor Author

arlimus commented Sep 6, 2016

All written in pure YAML to be easily parsable and repeatable:
https://gist.github.com/arlimus/00b76b8177b68f24cd7c8ac2514729c4

@arlimus
Copy link
Contributor Author

arlimus commented Sep 6, 2016

A list of all the things being called right now:

inspec
inspec help
inspec help version
inspec help detect
inspec help exec
inspec check example/profile
inspec exec example/profile
inspec exec example/profile -t ssh://bob@host.node -i bob.rsa
inspec exec example/profile -b ssh --host host.node --user bob -i bob.rsa
inspec help exec
inspec exec example/profile -t winrm://alice:pass@windows.node
inspec exec example/profile -t winrm://alice:pass@windows.node --ssl --self-signed
inspec exec example/profile -t docker://abcdef123
inspec detect
inspec detect -t ssh://bob@host.node -i bob.rsa
inspec shell -c 'os.params'
inspec shell -c 'sshd_config.Protocol'
inspec shell -c 'sshd_config.Protocol' -t ssh://bob@host.node -i bob.rsa
inspec shell -c 'os.params' -t docker://abcdef123
inspec shell

And inside of inspec shell:

help
help resources
help file
help command
help os
command('uname -a').stdout
file('/proc/cpuinfo').owner
sshd_config.params
describe file('/root') do
  it { should exist }
  its('mode') { should cmp '0750'}
end
control "id" do
  title "Check permissions on /root!"
  impact 0.5
  describe file('/root') do
    its('mode') { should cmp '0750'}
  end
end

@arlimus arlimus closed this as completed Sep 6, 2016
@chris-rock
Copy link
Contributor

should we add some json love? like

inspec detect --format json
inspec exec example/profile --format json
inspec json example/profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Chore How can you have any pudding if you don't eat your meat?
Projects
None yet
Development

No branches or pull requests

2 participants