summaryrefslogtreecommitdiffstats
path: root/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'schemas')
-rw-r--r--schemas/base.xsd1
-rw-r--r--schemas/bundle.xsd19
-rw-r--r--schemas/clients.xsd9
-rw-r--r--schemas/decisions.xsd1
-rw-r--r--schemas/defaults.xsd1
-rw-r--r--schemas/genshi.xsd23
-rw-r--r--schemas/grouppatterns.xsd6
-rw-r--r--schemas/metadata.xsd1
-rw-r--r--schemas/packages.xsd40
-rw-r--r--schemas/pathentry.xsd7
-rw-r--r--schemas/pkglist.xsd1
-rw-r--r--schemas/pkgtype.xsd12
-rw-r--r--schemas/rules.xsd17
-rw-r--r--schemas/services.xsd1
-rw-r--r--schemas/servicetype.xsd9
-rw-r--r--schemas/types.xsd1
16 files changed, 59 insertions, 90 deletions
diff --git a/schemas/base.xsd b/schemas/base.xsd
index 91b7ac8f5..cca665b38 100644
--- a/schemas/base.xsd
+++ b/schemas/base.xsd
@@ -4,7 +4,6 @@
<xsd:documentation>
base schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
diff --git a/schemas/bundle.xsd b/schemas/bundle.xsd
index 6b32434be..4e034ee3c 100644
--- a/schemas/bundle.xsd
+++ b/schemas/bundle.xsd
@@ -1,6 +1,6 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:py="http://genshi.edgewall.org/" xml:lang="en">
-
+
<xsd:annotation>
<xsd:documentation>
bundle schema for bcfg2
@@ -119,13 +119,7 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
- <xsd:element ref="py:def"/>
- <xsd:element ref="py:match"/>
- <xsd:element ref="py:choose"/>
- <xsd:element ref="py:for"/>
- <xsd:element ref="py:if"/>
- <xsd:element ref="py:with"/>
- <xsd:element ref="py:replace"/>
+ <xsd:group ref="py:genshiElements"/>
</xsd:choice>
<xsd:attribute type='xsd:string' name='name' use='required'>
<xsd:annotation>
@@ -235,13 +229,7 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
- <xsd:element ref="py:def"/>
- <xsd:element ref="py:match"/>
- <xsd:element ref="py:choose"/>
- <xsd:element ref="py:for"/>
- <xsd:element ref="py:if"/>
- <xsd:element ref="py:with"/>
- <xsd:element ref="py:replace"/>
+ <xsd:group ref="py:genshiElements"/>
</xsd:choice>
<xsd:attribute type='xsd:string' name='description' />
<xsd:attribute type='xsd:string' name='name'/>
@@ -249,6 +237,7 @@
<xsd:attribute type='xsd:string' name='origin'/>
<xsd:attribute type='xsd:string' name='revision'/>
<xsd:attributeGroup ref="py:genshiAttrs"/>
+ <xsd:attribute ref="xml:base"/>
</xsd:complexType>
<xsd:element name='Bundle' type='BundleType'>
diff --git a/schemas/clients.xsd b/schemas/clients.xsd
index 0a9ce5202..56f458a45 100644
--- a/schemas/clients.xsd
+++ b/schemas/clients.xsd
@@ -1,19 +1,21 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
-
+
<xsd:annotation>
<xsd:documentation>
client schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="xml.xsd"/>
+
<xsd:complexType name='ClientType'>
<xsd:choice minOccurs='0' maxOccurs='unbounded'>
<xsd:element name='Alias'>
<xsd:complexType>
<xsd:attribute type='xsd:string' name='name' use='required'/>
- <xsd:attribute type='xsd:string' name='address'/>
+ <xsd:attribute type='xsd:string' name='address'/>
</xsd:complexType>
</xsd:element>
</xsd:choice>
@@ -35,6 +37,7 @@
<xsd:element name='Clients' type='ClientsType'/>
</xsd:choice>
<xsd:attribute name='version' type='xsd:string'/>
+ <xsd:attribute ref="xml:base"/>
</xsd:complexType>
<xsd:element name='Clients' type='ClientsType'/>
diff --git a/schemas/decisions.xsd b/schemas/decisions.xsd
index a354ec8cb..30115b367 100644
--- a/schemas/decisions.xsd
+++ b/schemas/decisions.xsd
@@ -4,7 +4,6 @@
<xsd:documentation>
decision list schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
diff --git a/schemas/defaults.xsd b/schemas/defaults.xsd
index 27e749470..c7e2edc7e 100644
--- a/schemas/defaults.xsd
+++ b/schemas/defaults.xsd
@@ -4,7 +4,6 @@
<xsd:documentation>
string enumeration definitions for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
diff --git a/schemas/genshi.xsd b/schemas/genshi.xsd
index 4d3ad0e31..35d81e2f1 100644
--- a/schemas/genshi.xsd
+++ b/schemas/genshi.xsd
@@ -8,12 +8,10 @@
<xs:documentation>
Genshi schema
Chris St. Pierre
- $Id$
</xs:documentation>
</xs:annotation>
- <!-- genshi tags -->
- <xs:element name="for" type="py:forType"/>
+ <!-- genshi types -->
<xs:complexType name="forType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -21,7 +19,6 @@
<xs:attribute name="each" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="if" type="py:ifType"/>
<xs:complexType name="ifType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -29,7 +26,6 @@
<xs:attribute name="test" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="match" type="py:matchType"/>
<xs:complexType name="matchType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -40,7 +36,6 @@
<xs:attribute name="recursive" type="xs:boolean" default="true"/>
</xs:complexType>
- <xs:element name="def" type="py:defType"/>
<xs:complexType name="defType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -48,7 +43,6 @@
<xs:attribute name="function" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="with" type="py:withType"/>
<xs:complexType name="withType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -56,7 +50,6 @@
<xs:attribute name="vars" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="replace" type="py:replaceType"/>
<xs:complexType name="replaceType" mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:any processContents="lax"/>
@@ -64,7 +57,6 @@
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
- <xs:element name="choose" type="py:chooseType"/>
<xs:complexType name="chooseType" mixed="true">
<xs:sequence>
<xs:element name="when" type="py:ifType" maxOccurs="unbounded"/>
@@ -80,6 +72,19 @@
</xs:choice>
</xs:complexType>
+ <!-- genshi tags -->
+ <xs:group name="genshiElements">
+ <xs:choice>
+ <xs:element name="with" type="py:withType"/>
+ <xs:element name="replace" type="py:replaceType"/>
+ <xs:element name="choose" type="py:chooseType"/>
+ <xs:element name="for" type="py:forType"/>
+ <xs:element name="if" type="py:ifType"/>
+ <xs:element name="match" type="py:matchType"/>
+ <xs:element name="def" type="py:defType"/>
+ </xs:choice>
+ </xs:group>
+
<!-- genshi attributes -->
<xs:attributeGroup name="genshiAttrs">
<xs:attribute name="if" type="xs:string" form="qualified"/>
diff --git a/schemas/grouppatterns.xsd b/schemas/grouppatterns.xsd
index f2bdceccd..6c63b8694 100644
--- a/schemas/grouppatterns.xsd
+++ b/schemas/grouppatterns.xsd
@@ -1,5 +1,5 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
-
+
<xsd:annotation>
<xsd:documentation>
group patterns config schema for bcfg2
@@ -7,6 +7,9 @@
</xsd:documentation>
</xsd:annotation>
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="xml.xsd"/>
+
<xsd:complexType name="PatternType">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="NameRange" type="xsd:string"/>
@@ -21,6 +24,7 @@
<xsd:element name="GroupPattern" type="PatternType"/>
<xsd:element name="GroupPatterns" type="GroupPatternsType"/>
</xsd:choice>
+ <xsd:attribute ref="xml:base"/>
</xsd:complexType>
<xsd:element name="GroupPatterns" type="GroupPatternsType"/>
diff --git a/schemas/metadata.xsd b/schemas/metadata.xsd
index 58f9e8029..f79039d25 100644
--- a/schemas/metadata.xsd
+++ b/schemas/metadata.xsd
@@ -5,7 +5,6 @@
<xsd:documentation>
metadata schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
diff --git a/schemas/packages.xsd b/schemas/packages.xsd
index 9f16a23c0..c29a85ecf 100644
--- a/schemas/packages.xsd
+++ b/schemas/packages.xsd
@@ -1,5 +1,5 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
-
+
<xsd:annotation>
<xsd:documentation>
packages config schema for bcfg2
@@ -7,30 +7,27 @@
</xsd:documentation>
</xsd:annotation>
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="xml.xsd"/>
+
<xsd:simpleType name="sourceTypeEnum">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="yum"/>
<xsd:enumeration value="apt"/>
<xsd:enumeration value="pac"/>
- <xsd:enumeration value="pulp"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="sourceType">
- <xsd:sequence minOccurs="0" maxOccurs="unbounded">
- <xsd:element name="Component" type="xsd:string" minOccurs="0"
- maxOccurs="unbounded"/>
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
+ <xsd:element name="Component" type="xsd:string"/>
+ <xsd:element name="Arch" type="xsd:string"/>
+ <xsd:element name="GPGKey" type="xsd:string"/>
<xsd:choice>
- <xsd:element name="Blacklist" type="xsd:string" minOccurs="0"
- maxOccurs="unbounded"/>
- <xsd:element name="Whitelist" type="xsd:string" minOccurs="0"
- maxOccurs="unbounded"/>
+ <xsd:element name="Blacklist" type="xsd:string"/>
+ <xsd:element name="Whitelist" type="xsd:string"/>
</xsd:choice>
- <xsd:element name="Arch" type="xsd:string" minOccurs="1"
- maxOccurs="unbounded"/>
- <xsd:element name="GPGKey" type="xsd:string" minOccurs="0"
- maxOccurs="unbounded"/>
- </xsd:sequence>
+ </xsd:choice>
<xsd:attribute type="xsd:boolean" name="recommended"/>
<xsd:attribute type="sourceTypeEnum" name="type"/>
<xsd:attribute type="xsd:string" name="pulp_id"/>
@@ -51,14 +48,13 @@
</xsd:complexType>
<xsd:complexType name="sourcesType">
- <xsd:sequence>
- <xsd:choice minOccurs="1" maxOccurs="unbounded">
- <xsd:element name="Group" type="groupType"/>
- <xsd:element name="Client" type="groupType"/>
- <xsd:element name="Source" type="sourceType"/>
- <xsd:element name="Sources" type="sourcesType"/>
- </xsd:choice>
- </xsd:sequence>
+ <xsd:choice minOccurs="1" maxOccurs="unbounded">
+ <xsd:element name="Group" type="groupType"/>
+ <xsd:element name="Client" type="groupType"/>
+ <xsd:element name="Source" type="sourceType"/>
+ <xsd:element name="Sources" type="sourcesType"/>
+ </xsd:choice>
+ <xsd:attribute ref="xml:base"/>
</xsd:complexType>
<xsd:element name="Sources" type="sourcesType"/>
diff --git a/schemas/pathentry.xsd b/schemas/pathentry.xsd
index 40aa4ff2b..080758d0b 100644
--- a/schemas/pathentry.xsd
+++ b/schemas/pathentry.xsd
@@ -5,7 +5,6 @@
<xsd:documentation>
path entry schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
@@ -30,6 +29,12 @@
<xsd:attribute type='xsd:string' name='sensitive' use='optional'/>
<xsd:attribute type='xsd:string' name='to' use='optional'/>
<xsd:attribute type='xsd:string' name='type' use='optional'/>
+ <!-- device attributes -->
+ <xsd:attribute type='xsd:string' name='dev_type' use='optional'/>
+ <xsd:attribute type='xsd:string' name='major' use='optional'/>
+ <xsd:attribute type='xsd:string' name='minor' use='optional'/>
+ <xsd:attribute type='xsd:string' name='mode' use='optional'/>
+ <!-- end device attributes -->
<xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
</xsd:schema>
diff --git a/schemas/pkglist.xsd b/schemas/pkglist.xsd
index c16ed654e..c0d449f54 100644
--- a/schemas/pkglist.xsd
+++ b/schemas/pkglist.xsd
@@ -4,7 +4,6 @@
<xsd:documentation>
package list schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
diff --git a/schemas/pkgtype.xsd b/schemas/pkgtype.xsd
index 83e3f0e48..0aaea0c22 100644
--- a/schemas/pkgtype.xsd
+++ b/schemas/pkgtype.xsd
@@ -5,7 +5,6 @@
<xsd:documentation>
package list schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
@@ -39,13 +38,7 @@
<xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
</xsd:element>
- <xsd:element ref="py:def"/>
- <xsd:element ref="py:match"/>
- <xsd:element ref="py:choose"/>
- <xsd:element ref="py:for"/>
- <xsd:element ref="py:if"/>
- <xsd:element ref="py:with"/>
- <xsd:element ref="py:replace"/>
+ <xsd:group ref="py:genshiElements"/>
</xsd:choice>
<xsd:attribute type="xsd:string" name="name"/>
<xsd:attribute type="xsd:string" name="group"/>
@@ -57,7 +50,8 @@
<xsd:attribute type="xsd:string" name="srcs"/>
<xsd:attribute type="PackageTypeEnum" name="type"/>
<xsd:attribute type="xsd:string" name="bname"/>
- <xsd:attribute name="pkg_checks" type="xsd:string"/>
+ <xsd:attribute name="pkg_checks" type="xsd:boolean"/>
+ <xsd:attribute name="pkg_verify" type="xsd:boolean"/>
<xsd:attribute name="verify_flags" type="xsd:string"/>
<xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
diff --git a/schemas/rules.xsd b/schemas/rules.xsd
index 193d63c99..924792b18 100644
--- a/schemas/rules.xsd
+++ b/schemas/rules.xsd
@@ -5,7 +5,6 @@
<xsd:documentation>
string enumeration definitions for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
@@ -56,13 +55,7 @@
<xsd:element name='Action' type='ActionType'/>
<xsd:element name='Group' type='RContainerType'/>
<xsd:element name='Client' type='RContainerType'/>
- <xsd:element ref="py:def"/>
- <xsd:element ref="py:match"/>
- <xsd:element ref="py:choose"/>
- <xsd:element ref="py:for"/>
- <xsd:element ref="py:if"/>
- <xsd:element ref="py:with"/>
- <xsd:element ref="py:replace"/>
+ <xsd:group ref="py:genshiElements"/>
</xsd:choice>
<xsd:attribute name='name' type='xsd:string'/>
<xsd:attribute name='negate' type='xsd:boolean'/>
@@ -80,13 +73,7 @@
<xsd:element name='PostInstall' type='PostInstallType'/>
<xsd:element name='Group' type='RContainerType'/>
<xsd:element name='Client' type='RContainerType'/>
- <xsd:element ref="py:def"/>
- <xsd:element ref="py:match"/>
- <xsd:element ref="py:choose"/>
- <xsd:element ref="py:for"/>
- <xsd:element ref="py:if"/>
- <xsd:element ref="py:with"/>
- <xsd:element ref="py:replace"/>
+ <xsd:group ref="py:genshiElements"/>
</xsd:choice>
<xsd:attribute name='priority' type='xsd:integer' use='required'/>
<xsd:attributeGroup ref="py:genshiAttrs"/>
diff --git a/schemas/services.xsd b/schemas/services.xsd
index 828959e82..b91e851d2 100644
--- a/schemas/services.xsd
+++ b/schemas/services.xsd
@@ -4,7 +4,6 @@
<xsd:documentation>
services schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
diff --git a/schemas/servicetype.xsd b/schemas/servicetype.xsd
index f88260c39..af5bc64a6 100644
--- a/schemas/servicetype.xsd
+++ b/schemas/servicetype.xsd
@@ -5,7 +5,6 @@
<xsd:documentation>
services schema for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>
@@ -21,13 +20,7 @@
<xsd:attribute name="mask" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
- <xsd:element ref="py:def"/>
- <xsd:element ref="py:match"/>
- <xsd:element ref="py:choose"/>
- <xsd:element ref="py:for"/>
- <xsd:element ref="py:if"/>
- <xsd:element ref="py:with"/>
- <xsd:element ref="py:replace"/>
+ <xsd:group ref="py:genshiElements"/>
</xsd:choice>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="status" type="StatusEnum"/>
diff --git a/schemas/types.xsd b/schemas/types.xsd
index 689e693b7..ead377192 100644
--- a/schemas/types.xsd
+++ b/schemas/types.xsd
@@ -4,7 +4,6 @@
<xsd:documentation>
string enumeration definitions for bcfg2
Narayan Desai, Argonne National Laboratory
- $Id$
</xsd:documentation>
</xsd:annotation>