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

audit::default: read profiles from attributes, push report to chefserver #2

Merged
merged 4 commits into from Mar 15, 2016

Conversation

Projects
None yet
2 participants
@srenatus
Collaborator

srenatus commented Mar 9, 2016

Fixes #1.

Also addresses the change in inspec's interface, i.e., we need 0.15.0 now. Note that I only got it working after /opt/chef/embedded/gem uninstall inspec (choosing the old version); not sure how to do this properly.

@chris-rock

This comment has been minimized.

Collaborator

chris-rock commented Mar 15, 2016

This PR supports profiles stored in Chef Compliance

# server URI.parse('http://192.168.33.1:2134')
# token 'foo' # NOTE(sr) currently ignored
# fetch and execute all requested profiles
node['audit']['profiles'].each do |owner_profile, enabled|

This comment has been minimized.

@chris-rock

chris-rock Mar 15, 2016

Collaborator

we should not crash if node audit does not exist, lets cover this in a separate PR

@chris-rock

This comment has been minimized.

Collaborator

chris-rock commented Mar 15, 2016

Thanks @srenatus It so easy to run profiles now! No change of the cookbook required. YEAH

chris-rock added a commit that referenced this pull request Mar 15, 2016

Merge pull request #2 from chef/sr/profiles-from-attributes
audit::default: read profiles from attributes, push report to chefserver

@chris-rock chris-rock merged commit 6b18c58 into master Mar 15, 2016

@chris-rock chris-rock deleted the sr/profiles-from-attributes branch Mar 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment