summaryrefslogtreecommitdiffstats
path: root/schemas/pkgtype.xsd
blob: 7ad7606b2d051a405b2ec8a1243c80be08d7a05b (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:py="http://genshi.edgewall.org/" xml:lang="en">

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

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

  <xsd:complexType name="PackageStructure">
    <xsd:annotation>
      <xsd:documentation>
        Abstract description of a package or package group to be
        installed.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:attribute type="xsd:string" name="name">
      <xsd:annotation>
        <xsd:documentation>
          Install the named package. Either ``name`` or
          :xml:attribute:`PackageStructure:group` must be specified.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="group">
      <xsd:annotation>
        <xsd:documentation>
          Install the named package group. Package groups are only
          supported for Yum :xml:element:`Source` repositories, and
          only if the :ref:`yum libraries
          &lt;native-yum-libraries&gt;` are in use.  Either ``group``
          or :xml:attribute:`PackageStructure:name` must be specified.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:boolean" name="verify" default="true">
      <xsd:annotation>
        <xsd:documentation>
          Whether or not to verify the package.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="PackageGroupTypeEnum" name="type" default="default">
      <xsd:annotation>
        <xsd:documentation>
          The package set to select from a given package group. Only
          meaningful if :xml:attribute:`PackageStructure:group` is
          specified.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute name="recommended" type="xsd:boolean">
      <xsd:annotation>
        <xsd:documentation>
          Whether also the recommended packages should be installed.
          This is currently only used with the :ref:`APT
          &lt;client-tools-apt&gt;` driver.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attributeGroup ref="py:genshiAttrs"/>
  </xsd:complexType>

  <xsd:complexType name="PackageType">
    <xsd:annotation>
      <xsd:documentation>
        Concrete specification of a package to be installed.  A
        package can be specified in one of two ways:

        * A single Package tag that lists all of the attributes for
          the single instance of the package that should be installed.

        * A Package tag with any number of :xml:element:`Instance`
          children, each of which lists the attributes of an instance
          of the package that should be installed.  In this case, the
          Package tag should only have
          :xml:attribute:`PackageType:name` and
          :xml:attribute:`PackageType:type`.

        Note that many of the attributes listed below are specific to
        one or a few package drivers.
      </xsd:documentation>
    </xsd:annotation>
    <xsd:choice minOccurs="0" maxOccurs="unbounded">
      <xsd:element name="Instance">
        <xsd:annotation>
          <xsd:documentation>
            An Instance element describes a single instance of a
            package that may have several different versions, arches,
            etc., installed at once.
          </xsd:documentation>
        </xsd:annotation>
        <xsd:complexType>
          <xsd:attribute type="xsd:string" name="arch">
            <xsd:annotation>
              <xsd:documentation>
                The architecture of the package to be installed.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute name="epoch" type="xsd:integer">
            <xsd:annotation>
              <xsd:documentation>
                The epoch of the package to be installed.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute type="xsd:string" name="version">
            <xsd:annotation>
              <xsd:documentation>
                The version of the package to be installed. See
                :xml:attribute:`PackageType:version` for details.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute type="xsd:string" name="release">
            <xsd:annotation>
              <xsd:documentation>
                The release of the package to be installed.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute type="xsd:string" name="simplefile">
            <xsd:annotation>
              <xsd:documentation>
                Package file name. No name parsing is performed, so no
                extra fields get set.  This is only used for manual
                maintenance of ``gpg-pubkey`` packages with the
                :ref:`YUM, YUM24, or RPM &lt;client-tools-yum&gt;`
                driver.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute name="pkg_verify" type="xsd:boolean">
            <xsd:annotation>
              <xsd:documentation>
                Whether or not to perform full package verification (file
                integrity, etc.) on this package with the :ref:`YUM, YUM24,
                or RPM &lt;client-tools-yum&gt;` driver.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute name="verify_flags" type="xsd:string">
            <xsd:annotation>
              <xsd:documentation>
                Comma-separated list of flags to pass to the package
                verification routines of the :ref:`YUM, YUM24, or RPM
                &lt;client-tools-yum&gt;` driver.  See ``man rpm`` for
                details on the flags.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute name="install_missing" type="xsd:boolean"
                         default="true">
            <xsd:annotation>
              <xsd:documentation>
                Whether or not to install missing packages. This is
                only honored by the the :ref:`RPM
                &lt;client-tools-yum&gt;` driver.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute name="fix_version" type="xsd:boolean" default="true">
            <xsd:annotation>
              <xsd:documentation>
                Whether or not to upgrade or downgrade packages that
                are installed, but have the wrong version. This is
                only honored by the :ref:`RPM
                &lt;client-tools-yum&gt;` driver.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attribute name="reinstall_broken" type="xsd:boolean"
                         default="true">
            <xsd:annotation>
              <xsd:documentation>
                Whether or not to reinstall packages that fail
                verification. This is only honored by the :ref:`RPM
                &lt;client-tools-yum&gt;` driver.
              </xsd:documentation>
            </xsd:annotation>
          </xsd:attribute>
          <xsd:attributeGroup ref="py:genshiAttrs"/>
        </xsd:complexType>
      </xsd:element>
      <xsd:group ref="py:genshiElements"/>
    </xsd:choice>
    <xsd:attribute type="xsd:string" name="name" use="required">
      <xsd:annotation>
        <xsd:documentation>
          Package name.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="arch">
      <xsd:annotation>
        <xsd:documentation>
          The architecture of the package to be installed.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="version">
      <xsd:annotation>
        <xsd:documentation>
          The version of the package to be installed. This should
          *only* be the version, i.e., not the release. Release should
          be specified in :xml:attribute:`PackageType:release`, and it
          is an error to append the release to this.

          This can also be one of two "special" values:

          * ``auto`` will select the newest version of the package
            available.
          * ``any`` will select any version of the package, and can be
            used to ensure that a package is installed without
            requiring any particular version.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="release">
      <xsd:annotation>
        <xsd:documentation>
          The release of the package to be installed.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="file">
      <xsd:annotation>
        <xsd:documentation>
          Package file name.  Several other attributes (name, version)
          can be automatically defined based on regular expressions
          defined in the :ref:`server-plugins-generators-pkgmgr`
          plugin, which is the only plugin with which this is useful.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:boolean" name="verify" default="false">
      <xsd:annotation>
        <xsd:documentation>
          Whether or not to perform package verification.  This is not
          supported by the :ref:`YUM &lt;client-tools-yum&gt;` driver.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="simplefile">
      <xsd:annotation>
        <xsd:documentation>
          Package file name. No name parsing is performed, so no extra
          fields get set.  This is only used for some edge cases with
          :ref:`server-plugins-generators-pkgmgr`.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="multiarch">
      <xsd:annotation>
        <xsd:documentation>
          Comma-separated list of architectures of this package that
          should be installed.  This is only used by the
          :ref:`server-plugins-generators-pkgmgr` plugin.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="srcs">
      <xsd:annotation>
        <xsd:documentation>
          Filename creation rules for multiarch packages. This is only
          used by the :ref:`server-plugins-generators-pkgmgr` plugin.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="PackageTypeEnum" name="type" use="required">
      <xsd:annotation>
        <xsd:documentation>
          The package type, which determines which client driver will
          handle installation of this package.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute type="xsd:string" name="bname">
      <xsd:annotation>
        <xsd:documentation>
          The name of the package for installing (as opposed to the
          name when verifying) with the Blast and OpenCSW drivers.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute name="pkg_checks" type="xsd:boolean">
      <xsd:annotation>
        <xsd:documentation>
          Whether or not to perform basic package checks (version,
          release, etc.) on this package with the :ref:`YUM, YUM24, or
          RPM &lt;client-tools-yum&gt;` driver.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute name="pkg_verify" type="xsd:boolean" default="true">
      <xsd:annotation>
        <xsd:documentation>
          Whether or not to perform full package verification (file
          integrity, etc.) on this package with the :ref:`YUM, YUM24,
          or RPM &lt;client-tools-yum&gt;` driver.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attribute name="verify_flags" type="xsd:string">
      <xsd:annotation>
        <xsd:documentation>
          Flags to pass to the package verification routines of the
          :ref:`YUM, YUM24, or RPM &lt;client-tools-yum&gt;` driver.
        </xsd:documentation>
      </xsd:annotation>
    </xsd:attribute>
    <xsd:attributeGroup ref="py:genshiAttrs"/>
  </xsd:complexType>
</xsd:schema>