Modify

Ticket #1130 (closed defect: fixed)

Opened 11 years ago

Last modified 11 years ago

Apt sources no longer contain "components"

Reported by: J. Davis <[email protected]…> Owned by: desai
Priority: major Milestone: Bcfg2 1.3.0 Release
Component: bcfg2-server Version: 1.0
Keywords: Cc:

Description

After upgrading from 1.2.1 to 1.2.3 the following template code ceased to function:

{% for s in metadata.Packages.sources %}\
deb ${s.url}${s.version} {% for comp in s.components %}$comp {% end %}
{% end %}\

The "components" list attribute now appears to be a "component" string.

Not sure if the docs just need updating: http://docs.bcfg2.org/server/plugins/generators/packages.html#generating-client-apt-yum-configurations or if there is also a code change required.

Also not sure if the use of the "groups" attribute in the example is accurate. I don't see it in my environment.

Attachments

Change History

comment:1 Changed 11 years ago by J. Davis <[email protected]…>

Also, all architectures listed in the sources.xml Source entry are applied to the host now.

The following revised code works but produces some unexpected results.

{% for s in metadata.Packages.sources %}\
deb ${s.url} ${s.version} ${s.components}
{% end %}\

On an amd64 host this results in a line for each of the sources and each arch, i.e. I get duplicate amd64 and i386 lines.

comment:2 Changed 11 years ago by https://www.google.com/accounts/o8/id?id=AItOawnSjgovXZr-_V3vGkvMSR0pc5LDykRc1Nc

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

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.