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

Update hab exporter to use inspec in path over calling to hab sup #1791

Merged
merged 1 commit into from
May 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ pkg_deps=(
core/libxslt
core/ruby
core/net-tools
core/hab
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I can totally see how this is going to cause problems if we leave it in here, and profiles depend on it... especially depending on the workstation that build the InSpec package itself. I'm 👍 removing this and immediately rebuilding the InSpec package on the depot.

)
pkg_build_deps=(
core/bundler
Expand Down
2 changes: 1 addition & 1 deletion lib/bundles/inspec-habitat/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def run_hook_contents

while true; do
echo "Executing InSpec for ${PROFILE_IDENT}"
hab pkg exec chef/inspec inspec exec {{pkg.path}}/dist --format=json > ${RESULTS_FILE} 2>${ERROR_FILE}
inspec exec {{pkg.path}}/dist --format=json > ${RESULTS_FILE} 2>${ERROR_FILE}

if [ $? -eq 0 ]; then
echo "InSpec run completed successfully."
Expand Down