volanja / ansible_spec

It's ruby gem that connect Ansible & Serverspec for Test Driven Server Configuration(or TDD).
MIT License
228 stars 57 forks source link

Support inspec #63

Closed conorsch closed 6 years ago

conorsch commented 8 years ago

Do you plan to support discovery for tests written in the inspec format, as well as serverspec? Since you've already done so much work on parsing the Ansible inventory and variable files in Ruby, I'd hate to see inspec support relegated to project separate from ansible_spec.

Inspec seems to offer backward compatibility with serverspec tests, but without the need for a lot of spec_helper/Rakefile boilerplate.

volanja commented 8 years ago

I don't know inspec. As far as l research, inspec need some variables(e.g. --host) to decide target host, when inspec exec running. Do you know sample rakefile to run inspec exec? If you have sample rakefile, I hope you upload it.

chris-rock commented 7 years ago

@volanja if inspec is executed locally, you do not need a host option. What do you need from InSpec to get this into this project?

conorsch commented 7 years ago

@chris-rock FWIW I've switched to using Molecule, which supports "verifiers":

But not yet inspec as far as I'm aware.

chris-rock commented 7 years ago

@conorsch Thank you for the update

volanja commented 6 years ago

This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.