summaryrefslogtreecommitdiffstats
path: root/schemas/packages.xsd
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-03-22 17:06:25 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-03-22 17:06:25 +0000
commit2f2396a24d5771f49a186494df661034dd87d473 (patch)
tree338a473ba3743adec290e7e53355cd7ccca60d6d /schemas/packages.xsd
parent73a9ba83a73cd58ef3c0d935dd50d2e467c392fe (diff)
downloadbcfg2-2f2396a24d5771f49a186494df661034dd87d473.tar.gz
bcfg2-2f2396a24d5771f49a186494df661034dd87d473.tar.bz2
bcfg2-2f2396a24d5771f49a186494df661034dd87d473.zip
Packages: Implement schema verification
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5137 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'schemas/packages.xsd')
-rw-r--r--schemas/packages.xsd32
1 files changed, 32 insertions, 0 deletions
diff --git a/schemas/packages.xsd b/schemas/packages.xsd
new file mode 100644
index 000000000..843e5ee68
--- /dev/null
+++ b/schemas/packages.xsd
@@ -0,0 +1,32 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+
+ <xsd:annotation>
+ <xsd:documentation>
+ bundle schema for bcfg2
+ Narayan Desai, Argonne National Laboratory
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <xsd:complexType name='SourceType'>
+ <xsd:sequence>
+ <xsd:element name="Group" type="xsd:string" minOccurs='1'
+ maxOccurs='unbounded'/>
+ <xsd:element name="URL" type="xsd:string" minOccurs='1'
+ maxOccurs='unbounded'/>
+ <xsd:element name="Version" type="xsd:string"/>
+ <xsd:element name="Component" type="xsd:string" minOccurs='1'
+ maxOccurs='unbounded'/>
+ <xsd:element name="Arch" type="xsd:string" minOccurs='1'
+ maxOccurs='unbounded'/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name='Sources'>
+ <xsd:complexType>
+ <xsd:choice minOccurs='1' maxOccurs='unbounded'>
+ <xsd:element name='APTSource' type='SourceType'/>
+ <xsd:element name='YUMSource' type='SourceType'/>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+</xsd:schema> \ No newline at end of file