summaryrefslogtreecommitdiffstats
path: root/schemas
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-09-26 22:37:59 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-09-26 22:37:59 +0000
commitf69841e038ec81a98f6b3bf870b7ee4ad0e4a5af (patch)
treefdb634e34cc397f120cf3d5cae0607aead7ff528 /schemas
parent1f9e1bbb09409ee70edef1ecdc67580c56668efd (diff)
downloadbcfg2-f69841e038ec81a98f6b3bf870b7ee4ad0e4a5af.tar.gz
bcfg2-f69841e038ec81a98f6b3bf870b7ee4ad0e4a5af.tar.bz2
bcfg2-f69841e038ec81a98f6b3bf870b7ee4ad0e4a5af.zip
schema: Add schema for Path entries
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5466 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'schemas')
-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'/>