summaryrefslogtreecommitdiffstats
path: root/schemas/pathentry.xsd
blob: 44c86f9bc863159e51fa589d554c807e0a7d6ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:py="http://genshi.edgewall.org/" xml:lang="en">

  <xsd:annotation>
    <xsd:documentation>
      path entry schema for bcfg2
      Narayan Desai, Argonne National Laboratory
    </xsd:documentation>
  </xsd:annotation>

  <xsd:import namespace="http://genshi.edgewall.org/"
              schemaLocation="genshi.xsd"/>

  <xsd:complexType name='PathEntry'>
    <xsd:annotation>
      <xsd:documentation>
        Abstract description of a path to be installed.  This can
        either be a single explicit path (e.g., ``&lt;Path
        name="/etc/foo.conf"/&gt;``) or a glob that matches a set of
        paths (e.g., ``&lt;Path glob="/etc/foo/*"/&gt;``).  Path
        globbing may not work for some dynamically handled Path
        entries, for instance :ref:`Packages client configs
        &lt;generating-client-configs&gt;`.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:attribute type='xsd:string' name='name'>
      <xsd:annotation>
        <xsd:documentation>
          Install the single named path. Either ``name`` or
          :xml:attribute:`PathEntry:glob` must be specified.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="glob">
      <xsd:annotation>
        <xsd:documentation>
          Install all Cfg entries matching the given glob. Either
          ``glob`` or :xml:attribute:`PathEntry:name` must be
          specified.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type='xsd:string' name='altsrc' use='optional'/>
    <xsd:attributeGroup ref="py:genshiAttrs"/>
  </xsd:complexType>
</xsd:schema>