/usr/share/bcfg2/schemas/packages.xsd is in bcfg2-server 1.4.0~pre2+git141-g6d40dace6358-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:py="http://genshi.edgewall.org/" xml:lang="en">
<xsd:annotation>
<xsd:documentation>
packages config schema for bcfg2
Narayan Desai, Argonne National Laboratory
</xsd:documentation>
</xsd:annotation>
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd"/>
<xsd:import namespace="http://genshi.edgewall.org/"
schemaLocation="genshi.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="pkgng"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="RepoOptionsType">
<xsd:annotation>
<xsd:documentation>
**RepoOptionsType** can be used to specify arbitrary
repository options.
</xsd:documentation>
</xsd:annotation>
<xsd:attribute type="xsd:boolean" name="serveronly">
<xsd:annotation>
<xsd:documentation>
The options given in this tag will only be used on the Bcfg2
server, not on the clients.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:boolean" name="clientonly">
<xsd:annotation>
<xsd:documentation>
The options given in this tag will only be used on the Bcfg2
clients, not on the server.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="py:genshiAttrs"/>
<xsd:anyAttribute processContents="lax">
<xsd:annotation>
<xsd:documentation>
All other (arbitrary) attributes will be added to the
repository configuration.
</xsd:documentation>
</xsd:annotation>
</xsd:anyAttribute>
</xsd:complexType>
<xsd:complexType name="SourceType">
<xsd:annotation>
<xsd:documentation>
**SourceType** elements are used to specify software sources
(i.e., repositories) for the Packages plugin.
</xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:group ref="py:genshiElements"/>
<xsd:element name="Component" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Components are used to build multiple repository URLs from
a single :xml:element:`Source` tag. This is only
meaningful if the :xml:attribute:`SourceType:url`
attribute is specified; see that attribute above for more
detail.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Arch" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
The architecture(s) of the repository. A client must be a
member of one of the listed architecture groups in order
for this source to apply to the client. Additionally, if
the :xml:attribute:`SourceType:url` attribute is
specified, the :xml:element:`Arch` tag is used to generate
URLs. See :xml:attribute:`the url attribute
<SourceType:url>` for more detail.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GPGKey" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
The GPG key(s) for the repository. This only applies to
sources with :xml:attribute:`SourceType:type` = ``yum``.
If GPG keys are specified, then GPG checking will be
automatically enabled for the repository, both on the
Bcfg2 server (if :ref:`yum libraries
<native-yum-libraries>` are in use) and on the Bcfg2
client (if you use
:ref:`server-plugins-generators-packages` to
:ref:`generate your Yum config
<generating-client-configs>`).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Options" type="RepoOptionsType">
<xsd:annotation>
<xsd:documentation>
Arbitrary options to be used in the repository
configuration.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:choice>
<xsd:element name="Blacklist" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
Blacklist the given package(s) from the
:ref:`server-plugins-generators-packages` plugin. This
prevents them from being included in
automatically-resolved dependencies.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Whitelist" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
If **Whitelist** is specified, *only* packages listed
will be included by the
:ref:`server-plugins-generators-packages` plugin.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:choice>
</xsd:choice>
<xsd:attribute type="xsd:boolean" name="recommended" default="false">
<xsd:annotation>
<xsd:documentation>
Include packages recommended as dependencies by APT. This
only applies to sources with
:xml:attribute:`SourceType:type` = ``apt``. You must
regenerate the Packages cache after changing this attribute.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:boolean" name="essential" default="true">
<xsd:annotation>
<xsd:documentation>
Include essential packages from this repo by default (i.e.,
without needing to specify them in a bundle). This only
applies to sources with :xml:attribute:`SourceType:type` =
``apt``.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="SourceTypeEnum" name="type" use="required">
<xsd:annotation>
<xsd:documentation>
The type of the repository. This corresponds to the
Packages plugin driver that will handle the source.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:string" name="pulp_id">
<xsd:annotation>
<xsd:documentation>
The :ref:`Pulp <pulp-source-support>` repository ID
for this repo. This only applies to sources with
:xml:attribute:`SourceType:type` = ``yum``. Due to the
amount of data that can be queried directly from Pulp,
there's rarely a need to supply other attributes.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:boolean" name="debsrc" default="false">
<xsd:annotation>
<xsd:documentation>
Include ``deb-src`` lines in the generated APT
configuration. This only applies to sources with
:xml:attribute:`SourceType:type` = ``apt``.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:string" name="url">
<xsd:annotation>
<xsd:documentation>
The base URL to use when generating URLs for this source.
If :xml:attribute:`SourceType:url` is used, you must also
provide the :xml:element:`Arch` tag, at least one
:xml:element:`Component` tag, and the
:xml:attribute:`SourceType:version` attribute. You must not
specify :xml:attribute:`SourceType:rawurl`. For each
combination of component and Arch tag, a URL is created in
the format::
<url>/<version>/<component>/<arch>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:string" name="rawurl">
<xsd:annotation>
<xsd:documentation>
The raw URL to the (single) repository defined by this
source. :xml:element:`Component` and
:xml:attribute:`SourceType:version` are ignored if this is
given.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:string" name="version">
<xsd:annotation>
<xsd:documentation>
The OS version this source applies to. This is used to
generate URLs if the :xml:attribute:`SourceType:url`
attribute is given, and ignored otherwise.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute type="xsd:string" name="name">
<xsd:annotation>
<xsd:documentation>
Specifiy an explicit name for the source and do not generate
it automatically.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
<xsd:complexType name="PackagesGroupType">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:group ref="py:genshiElements"/>
<xsd:element name="Group" type="PackagesGroupType"/>
<xsd:element name="Client" type="PackagesGroupType"/>
<xsd:element name="Sources" type="SourcesType"/>
<xsd:element name="Source" type="SourceType"/>
</xsd:choice>
<xsd:attribute type="xsd:string" name="name" use="required"/>
<xsd:attribute type="xsd:boolean" name="negate"/>
<xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
<xsd:complexType name="SourcesType">
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:group ref="py:genshiElements"/>
<xsd:element name="Group" type="PackagesGroupType"/>
<xsd:element name="Client" type="PackagesGroupType"/>
<xsd:element name="Source" type="SourceType"/>
<xsd:element name="Sources" type="SourcesType"/>
</xsd:choice>
<xsd:attribute name="lax_decryption" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation>
Override the global lax_decryption setting in
``bcfg2.conf``.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute ref="xml:base"/>
<xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
<xsd:element name="Sources" type="SourcesType"/>
</xsd:schema>
|