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

quiet should control whether converge is reported by Chef #65

mhedgpeth opened this Issue Jun 13, 2016 · 2 comments


None yet
2 participants

mhedgpeth commented Jun 13, 2016

Cookbook version


Chef-client version


Platform Details

Windows 2012 R2


When I run chef-client it always reports that a resource was converged, even when node['audit']['quiet'] = true.

Steps to Reproduce:

Set node['audit']['interval']['enabled'] = true
Run chef-client twice

Expected Result:

0 resources converge

Actual Result:

1 resource converges (the compliance report)

Recipe: audit::default
  * directory[D:/chef/cache/compliance] action create (up to date)
  * file[D:/chef/cache/compliance/windows] action nothing (skipped due to action :nothing)
  * compliance_profile[windows] action fetch (skipped due to only_if)
  * compliance_profile[windows] action execute (skipped due to only_if)
  * compliance_report[chef-server] action execute
    - report compliance profiles' results
Running handlers:
Running handlers complete
Chef Client finished, 1/84 resources updated in 01 minutes 03 seconds

The compliance_report resource in this case is reporting a converge.


This comment has been minimized.


mhedgpeth commented Jun 13, 2016

Looking at the code, it looks like it's written incorrectly. The quiet attribute only controls what goes into the chef-client log. That's not what the variable should be for; it should control whether resources report as converging in chef-client.

I'm not well-versed with this style of resource to know how to pull that off. If you provide direction on how to make the Chef::Resource NOT report a converge, I'd be happy to make the change in a PR.

@chris-rock chris-rock added this to the 2.0 milestone Oct 27, 2016


This comment has been minimized.


chris-rock commented Oct 27, 2016

This is solved with with version 2.0 of this cookbook. We work on the last details, but we use your proposed solution with Chef handler

@chris-rock chris-rock closed this Oct 27, 2016

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