Modify ↓
Ticket #1130 (closed defect: fixed)
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]…>
Note: See
TracTickets for help on using
tickets.
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.
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.