summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <asulfrian@zedat.fu-berlin.de>2021-06-10 20:18:44 +0200
committerAlexander Sulfrian <asulfrian@zedat.fu-berlin.de>2022-01-29 20:10:27 +0100
commit37a8ebdd792ed279fff14944570e09896c616e3e (patch)
treeafcb4fc66f6685ee614df4ac959bfc3a0eca4dd6
parent8605cd3d0cb4d549cb8b43de945d447f6d82892a (diff)
downloadbcfg2-37a8ebdd792ed279fff14944570e09896c616e3e.tar.gz
bcfg2-37a8ebdd792ed279fff14944570e09896c616e3e.tar.bz2
bcfg2-37a8ebdd792ed279fff14944570e09896c616e3e.zip
debconf: Add schema
-rw-r--r--schemas/bundle.xsd14
-rw-r--r--schemas/rules.xsd7
-rw-r--r--schemas/types.xsd38
3 files changed, 59 insertions, 0 deletions
diff --git a/schemas/bundle.xsd b/schemas/bundle.xsd
index 4a11a1d1b..7d7a141b7 100644
--- a/schemas/bundle.xsd
+++ b/schemas/bundle.xsd
@@ -69,6 +69,13 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
+ <xsd:element name='Conf' type='StructureEntry'>
+ <xsd:annotation>
+ <xsd:documentation>
+ Abstract description of a Conf entry.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
<xsd:element name='SEBoolean' type='SELinuxStructure'>
<xsd:annotation>
<xsd:documentation>
@@ -238,6 +245,13 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
+ <xsd:element name='BoundConf' type='ConfType'>
+ <xsd:annotation>
+ <xsd:documentation>
+ Fully bound description of a Conf entry.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
<xsd:element name='Group' type='BundlerGroupType'>
<xsd:annotation>
<xsd:documentation>
diff --git a/schemas/rules.xsd b/schemas/rules.xsd
index fb41ad9d4..7afc0f85e 100644
--- a/schemas/rules.xsd
+++ b/schemas/rules.xsd
@@ -122,6 +122,13 @@
</xsd:documentation>
</xsd:annotation>
</xsd:element>
+ <xsd:element name='Conf' type='ConfType'>
+ <xsd:annotation>
+ <xsd:documentation>
+ Fully bound description of a Conf entry.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:element>
<xsd:element name='Group' type='RContainerType'>
<xsd:annotation>
<xsd:documentation>
diff --git a/schemas/types.xsd b/schemas/types.xsd
index 0a55f6355..fbd55547d 100644
--- a/schemas/types.xsd
+++ b/schemas/types.xsd
@@ -105,6 +105,12 @@
</xsd:restriction>
</xsd:simpleType>
+ <xsd:simpleType name="ConfTypeEnum">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="debconf"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+
<xsd:complexType name='ActionType'>
<xsd:annotation>
<xsd:documentation>
@@ -535,4 +541,36 @@
</xsd:attribute>
<xsd:attributeGroup ref="py:genshiAttrs"/>
</xsd:complexType>
+
+ <xsd:complexType name="ConfType">
+ <xsd:annotation>
+ <xsd:documentation>
+ The Conf tag allows you to set configurations options client
+ machines (f.e. debconf).
+ </xsd:documentation>
+ </xsd:annotation>
+ <xsd:attribute type="xsd:token" name="name" use="required">
+ <xsd:annotation>
+ <xsd:documentation>
+ Name of the configuration setting.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute type="xsd:string" name="value">
+ <xsd:annotation>
+ <xsd:documentation>
+ The value of the configuration setting. If this is not specified,
+ the setting will be reset to it's default value.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attribute name="type" type="ConfTypeEnum">
+ <xsd:annotation>
+ <xsd:documentation>
+ Driver to use on the client to manage this configuration.
+ </xsd:documentation>
+ </xsd:annotation>
+ </xsd:attribute>
+ <xsd:attributeGroup ref="py:genshiAttrs"/>
+ </xsd:complexType>
</xsd:schema>