Modify ↓
Ticket #478 (closed defect: fixed)
Schemas not updated for freebsd support
Reported by: | [email protected]… | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 0.9.5 Release |
Component: | bcfg2-client | Version: | |
Keywords: | Cc: |
Description
I'm working on getting FreeBSD platforms working properly with bcfg2. The initial FreeBSD support commited so far seems to have forgotten to update the required schemas. The following is reported by bcfg2-repo-validate
/local/bcfg2/Pkgmgr/freebsd-6-base.xml ***FAILS*** to verify <---- /local/bcfg2/Pkgmgr/freebsd-6-base.xml:1: element PackageList: Schemas validity error : Element 'PackageList', attribute 'type': [facet 'enumeration'] The value 'freebsdpkg' is not an element of the set {'deb', 'rpm', 'blast', 'encap', 'sysv', 'portage', 'yum'}. /local/bcfg2/Pkgmgr/freebsd-6-base.xml:1: element PackageList: Schemas validity error : Element 'PackageList', attribute 'type': 'freebsdpkg' is not a valid value of the atomic type 'PackageTypeEnum'. /local/bcfg2/Metadata/groups.xml ***FAILS*** to verify <---- /local/bcfg2/Metadata/groups.xml:11: element Group: Schemas validity error : Element 'Group', attribute 'toolset': [facet 'pattern'] The value 'freebsd' is not accepted by the pattern 'rh|debian|solaris|aix|gentoo|auto'. /local/bcfg2/Metadata/groups.xml:11: element Group: Schemas validity error : Element 'Group', attribute 'toolset': 'freebsd' is not a valid value of the atomic type 'toolsetType'.
This should be easily fixed with the following two schema updates (diffs included):
--- types.xsd Wed Aug 8 13:26:53 2007 +++ types.xsd.orig Wed Aug 8 13:25:39 2007 @@ -14,7 +14,6 @@ <xsd:enumeration value='rpm' /> <xsd:enumeration value='blast' /> <xsd:enumeration value='encap' /> - <xsd:enumeration value='freebsdpkg' /> <xsd:enumeration value='sysv' /> <xsd:enumeration value='portage' /> <xsd:enumeration value='yum' />
--- metadata.xsd Wed Aug 8 13:26:02 2007 +++ metadata.xsd.orig Wed Aug 8 13:25:45 2007 @@ -13,7 +13,7 @@ <xsd:simpleType name='toolsetType'> <xsd:restriction base="xsd:string"> - <xsd:pattern value="rh|debian|solaris|aix|gentoo|freebsd|auto"/> + <xsd:pattern value="rh|debian|solaris|aix|gentoo|auto"/> </xsd:restriction> </xsd:simpleType>
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
Committed in revision [a494480eb34a2aa6b128bb68c1bde9080f5d00d1] (SVN r3616), thanks for the patch.