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]


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
    when (not(current_exists))
    when !(current_version.empty? and version.empty?)
    when !current_diff.empty?
    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?)

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.



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.


Add a comment

Modify Ticket

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

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

Note: See TracTickets for help on using tickets.