Modify ↓
Ticket #660 (closed enhancement: fixed)
being able to whitelist an item for a specific reason.
Reported by: | somekool <[email protected]…> | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.0.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: | [email protected]… |
Description
I have made myself a function that reads the fields in the reports_reason table row to determine a "cause" for the bad item.
def cause case when (not(current_exists)) "Missing" when !(current_version.empty? and version.empty?) "Version" when !current_diff.empty? "NDiff" when !(current_owner.empty? and current_group.empty? and current_perms.empty?) "File attributes" when current_status.to_s == "on" "Unrequired Service" when current_status.to_s == "off" "Service down" when !current_status.empty? "Status problem" when !(current_to.empty? and to.empty?) "To" else "Unknown" end end
I wish I could set whitelist element to act upon this cause. for example, I want to install all missing packages but I do not want to upgrade any package that would be bad per version.
missing configfile could also be install harmlessly but I do not want to overwrite configfile for those I have a diff entry in the reason table.
and so on.
thanks
Attachments
Change History
Note: See
TracTickets for help on using
tickets.