summaryrefslogtreecommitdiffstats
path: root/schemas/nagiosgen.xsd
blob: 24c298885d5f51da9ae1d214feec3e59e0b90f40 (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
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:py="http://genshi.edgewall.org/" xml:lang="en">
  <xsd:annotation>
    <xsd:documentation>
      NagiosGen config schema for bcfg2
      Chris St. Pierre
    </xsd:documentation>
  </xsd:annotation>

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

  <xsd:complexType name="NagiosGenGroupType">
    <xsd:choice minOccurs="1" maxOccurs="unbounded">
      <xsd:group ref="py:genshiElements"/>
      <xsd:element name="Option" type="OptionType"/>
      <xsd:element name="Group" type="NagiosGenGroupType"/>
      <xsd:element name="Client" type="NagiosGenGroupType"/>
    </xsd:choice>
    <xsd:attribute type="xsd:string" name="name" use="required"/>
    <xsd:attribute type="xsd:string" name="negate"/>
    <xsd:attributeGroup ref="py:genshiAttrs"/>
  </xsd:complexType>

  <xsd:complexType name="OptionType" mixed="true">
    <xsd:attribute type="xsd:string" name="name" use="required"/>
    <xsd:attributeGroup ref="py:genshiAttrs"/>
  </xsd:complexType>

  <xsd:element name="NagiosGen">
    <xsd:complexType>
      <xsd:choice minOccurs="1" maxOccurs="unbounded">
        <xsd:group ref="py:genshiElements"/>
        <xsd:element name="Option" type="OptionType"/>
        <xsd:element name="Group" type="NagiosGenGroupType"/>
        <xsd:element name="Client" type="NagiosGenGroupType"/>
      </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:complexType>
  </xsd:element>
</xsd:schema>