Ticket #873 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

Attributes for packages pulled in by Packages plugin's prereqs

Reported by: Jack Neely <[email protected]…> Owned by: desai
Priority: major Milestone: Bcfg2 1.2.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc:


I need to be able to add attributes to the packages that the Packages plugin prereq generator adds to my configuration.

For example, my configuration includes the "sendmail-cf" package. The Packages plugin automatically adds the "sendmail" package as its required by "sendmail-cf." I manage in my configuration /etc/mail/ which sendmail will use to recreate the with the sendmail-cf package installed.

However, Bcfg2 insists that the "sendmail" package fails verification because /etc/mail/ has been modified and I'm not directly managing that file. I'd really like to not verify the sendmail package or be able to tell Bcfg2 to ignore the /etc/mail/ file.

A suggested method was to use BoundPackage to set verify='false' but this method just adds a second sendmail package to the configuration and does not affect the attributes for the package added by the Packages prereq generator.


Change History

comment:1 Changed 13 years ago by solj

  • Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.1.0 Release

comment:2 Changed 13 years ago by solj

comment:3 Changed 13 years ago by Jack Neely <[email protected]…>

Desai's patch to make the Packages plugin also include information from the BoundPackage? tags in the specification solves about 98% of this issue. I can now add attributes to control verification and such to packages that the Package plugin brings in as prereqs.

However, I still have a case where Packages brings in prereqs that are virtual. (A differently named RPM package uses the Provides: tag)

As the virtual package doesn't exist the Bcfg2 client still attempts to verify and marks that package as incorrect even though I have a BoundPackage? entry to turn off verification for that virtual package. I need to get Bcfg2 to know what to do in this situation.

comment:4 Changed 13 years ago by solj

comment:5 Changed 13 years ago by solj

  • Milestone changed from Bcfg2 1.1.0 Release to Bcfg2 1.1.1 Release (Bugfix)

comment:6 Changed 13 years ago by solj

  • Milestone changed from Bcfg2 1.1.1 Release (Bugfix) to Bcfg2 1.1.2 Release (Bugfix)

comment:7 Changed 12 years ago by desai

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

I added some code to change the generation of the modified file list to include all paths in all bundles, which should resolve this issue on newer clients.

comment:8 Changed 12 years ago by solj

  • Milestone changed from Bcfg2 1.1.2 Release (Bugfix) to Bcfg2 1.2.0 Release

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.