summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--schemas/bundle.xsd5
-rw-r--r--schemas/pathentry.xsd17
-rw-r--r--schemas/types.xsd12
3 files changed, 34 insertions, 0 deletions
diff --git a/schemas/bundle.xsd b/schemas/bundle.xsd
index 3c0bc1eb8..d9a711a84 100644
--- a/schemas/bundle.xsd
+++ b/schemas/bundle.xsd
@@ -8,6 +8,7 @@
</xsd:annotation>
<xsd:include schemaLocation="atom.xsd"/>
+ <xsd:include schemaLocation="pathentry.xsd"/>
<xsd:include schemaLocation="pkglist.xsd"/>
<xsd:include schemaLocation="rules.xsd"/>
<xsd:include schemaLocation="services.xsd"/>
@@ -15,6 +16,7 @@
<xsd:complexType name='GroupType'>
<xsd:choice minOccurs='0' maxOccurs='unbounded'>
<xsd:element name='Package' type='StructureEntry'/>
+ <xsd:element name='Path' type='PathEntry'/>
<xsd:element name='Service' type='StructureEntry'/>
<xsd:element name='ConfigFile' type='StructureEntry'/>
<xsd:element name='Directory' type='StructureEntry'/>
@@ -22,6 +24,7 @@
<xsd:element name='Permissions' type='StructureEntry'/>
<xsd:element name='Action' type='StructureEntry'/>
<xsd:element name='BoundPackage' type='PackageType'/>
+ <xsd:element name='BoundPath' type='PathEntry'/>
<xsd:element name='BoundService' type='ServiceType'/>
<xsd:element name='BoundDirectory' type='DirectoryType'/>
<xsd:element name='BoundSymLink' type='SymLinkType'/>
@@ -37,6 +40,7 @@
<xsd:complexType>
<xsd:choice minOccurs='0' maxOccurs='unbounded'>
<xsd:element name='Package' type='StructureEntry'/>
+ <xsd:element name='Path' type='PathEntry'/>
<xsd:element name='Service' type='StructureEntry'/>
<xsd:element name='ConfigFile' type='StructureEntry'/>
<xsd:element name='Directory' type='StructureEntry'/>
@@ -44,6 +48,7 @@
<xsd:element name='Permissions' type='StructureEntry'/>
<xsd:element name='Action' type='StructureEntry'/>
<xsd:element name='BoundPackage' type='PackageType'/>
+ <xsd:element name='BoundPath' type='PathEntry'/>
<xsd:element name='BoundService' type='ServiceType'/>
<xsd:element name='BoundDirectory' type='DirectoryType'/>
<xsd:element name='BoundSymLink' type='SymLinkType'/>
diff --git a/schemas/pathentry.xsd b/schemas/pathentry.xsd
new file mode 100644
index 000000000..5e129fa75
--- /dev/null
+++ b/schemas/pathentry.xsd
@@ -0,0 +1,17 @@
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+
+ <xsd:annotation>
+ <xsd:documentation>
+ path entry schema for bcfg2
+ Narayan Desai, Argonne National Laboratory
+ $Id$
+ </xsd:documentation>
+ </xsd:annotation>
+
+ <xsd:include schemaLocation="types.xsd"/>
+
+ <xsd:complexType name='PathEntry'>
+ <xsd:attribute type='xsd:string' name='name' use='required'/>
+ <xsd:attribute name='type' use='required' type='PathTypeEnum' />
+ </xsd:complexType>
+</xsd:schema>
diff --git a/schemas/types.xsd b/schemas/types.xsd
index 460fcabd0..db85bbaab 100644
--- a/schemas/types.xsd
+++ b/schemas/types.xsd
@@ -21,6 +21,18 @@
</xsd:restriction>
</xsd:simpleType>
+ <xsd:simpleType name='PathTypeEnum'>
+ <xsd:restriction base='xsd:string'>
+ <xsd:enumeration value='ConfigFile' />
+ <xsd:enumeration value='Device' />
+ <xsd:enumeration value='Directory' />
+ <xsd:enumeration value='HardLink' />
+ <xsd:enumeration value='Perms' />
+ <xsd:enumeration value='SymLink' />
+ <xsd:enumeration value='nonexistent' />
+ </xsd:restriction>
+ </xsd:simpleType>
+
<xsd:simpleType name='StatusEnum'>
<xsd:restriction base='xsd:string'>
<xsd:enumeration value='on'/>