Modify

Ticket #660 (closed enhancement: fixed)

Opened 14 years ago

Last modified 14 years ago

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

comment:1 Changed 14 years ago by somekool <[email protected]…>

comment:2 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed

With the plugin api in 1.0, this can be implemented. (specifically by implementing a Decision plugin, you can selectively set entries to be installed.)

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.