2017-03-06 07:32:34 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2017-03-07 18:36:56 -05:00
|
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
2019-10-09 07:18:10 -04:00
|
|
|
targetNamespace="http://aif-ng.io/"
|
|
|
|
xmlns="http://aif-ng.io/"
|
|
|
|
xmlns:aif="http://aif-ng.io/"
|
|
|
|
elementFormDefault="qualified"
|
|
|
|
attributeFormDefault="unqualified">
|
2019-10-28 01:26:31 -04:00
|
|
|
|
|
|
|
<xs:simpleType name="t_diskdev">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:string">
|
2019-11-03 01:40:23 -05:00
|
|
|
<xs:pattern value="(/dev/([A-Za-z0-9_]+/)?[A-Za-z0-9_]+[0-9]?|auto)"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
2017-03-08 03:41:34 -05:00
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_diskfmt">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="gpt"/>
|
|
|
|
<xs:enumeration value="bios"/>
|
|
|
|
<xs:enumeration value="dos"/>
|
|
|
|
<xs:enumeration value="msdos"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
2017-03-08 05:04:21 -05:00
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_disksize">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:string">
|
2019-11-05 05:52:46 -05:00
|
|
|
<xs:pattern value="[-|+]?\s*([0-9]+)\s*(%|((k|Ki)|[MGTPEZY]i?)?B?|)\s*"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
2017-03-08 05:04:21 -05:00
|
|
|
|
2019-11-07 19:42:43 -05:00
|
|
|
<xs:simpleType name="t_lvsize">
|
|
|
|
<!-- This is *basically* t_disksize except we don't want +/-. -->
|
|
|
|
<!-- If no suffix is provided, we assume the size is in *extents* instead of sectors like above. -->
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:pattern value="\s*([0-9]+)\s*(%|((k|Ki)|[MGTPEZY]i?)?B?|)\s*"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_pesize">
|
|
|
|
<!-- This is *basically* t_lvsize except we don't allow percentages. -->
|
|
|
|
<!-- If no suffix is provided, we assume the size is in sectors
|
|
|
|
UNLESS it's "0", which means use the default (which I *think* is dynamically generated). -->
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:pattern value="\s*([0-9]+)\s*(((k|Ki)|[MGTPEZY]i?)?B?|)\s*"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_fstype">
|
2019-11-05 05:52:46 -05:00
|
|
|
<xs:union>
|
|
|
|
<xs:simpleType>
|
|
|
|
<!-- parted names -->
|
|
|
|
<!-- ', '.join(sorted(list(dict(vars(parted.filesystem))['fileSystemType'].keys()))) -->
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="affs0"/>
|
|
|
|
<xs:enumeration value="affs1"/>
|
|
|
|
<xs:enumeration value="affs2"/>
|
|
|
|
<xs:enumeration value="affs3"/>
|
|
|
|
<xs:enumeration value="affs4"/>
|
|
|
|
<xs:enumeration value="affs5"/>
|
|
|
|
<xs:enumeration value="affs6"/>
|
|
|
|
<xs:enumeration value="affs7"/>
|
|
|
|
<xs:enumeration value="amufs"/>
|
|
|
|
<xs:enumeration value="amufs0"/>
|
|
|
|
<xs:enumeration value="amufs1"/>
|
|
|
|
<xs:enumeration value="amufs2"/>
|
|
|
|
<xs:enumeration value="amufs3"/>
|
|
|
|
<xs:enumeration value="amufs4"/>
|
|
|
|
<xs:enumeration value="amufs5"/>
|
|
|
|
<xs:enumeration value="apfs1"/>
|
|
|
|
<xs:enumeration value="apfs2"/>
|
|
|
|
<xs:enumeration value="asfs"/>
|
|
|
|
<xs:enumeration value="btrfs"/>
|
|
|
|
<xs:enumeration value="ext2"/>
|
|
|
|
<xs:enumeration value="ext3"/>
|
|
|
|
<xs:enumeration value="ext4"/>
|
|
|
|
<xs:enumeration value="fat16"/>
|
|
|
|
<xs:enumeration value="fat32"/>
|
|
|
|
<xs:enumeration value="hfs"/>
|
|
|
|
<xs:enumeration value="hfs+"/>
|
|
|
|
<xs:enumeration value="hfsx"/>
|
|
|
|
<xs:enumeration value="hp-ufs"/>
|
|
|
|
<xs:enumeration value="jfs"/>
|
|
|
|
<xs:enumeration value="linux-swap(v0)"/>
|
|
|
|
<xs:enumeration value="linux-swap(v1)"/>
|
|
|
|
<xs:enumeration value="nilfs2"/>
|
|
|
|
<xs:enumeration value="ntfs"/>
|
|
|
|
<xs:enumeration value="reiserfs"/>
|
|
|
|
<xs:enumeration value="sun-ufs"/>
|
|
|
|
<xs:enumeration value="swsusp"/>
|
|
|
|
<xs:enumeration value="udf"/>
|
|
|
|
<xs:enumeration value="xfs"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType>
|
|
|
|
<!-- https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs -->
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:pattern value="[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
</xs:union>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:simpleType>
|
2017-03-08 07:48:29 -05:00
|
|
|
|
2019-10-29 01:01:31 -04:00
|
|
|
<xs:simpleType name="t_part_flags">
|
2019-11-05 05:52:46 -05:00
|
|
|
<xs:union>
|
|
|
|
<xs:simpleType>
|
|
|
|
<!-- parted.partition.partitionFlag -->
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:enumeration value="atvrecv"/>
|
|
|
|
<xs:enumeration value="bios_grub"/>
|
|
|
|
<xs:enumeration value="boot"/>
|
|
|
|
<xs:enumeration value="diag"/>
|
|
|
|
<xs:enumeration value="esp"/>
|
|
|
|
<xs:enumeration value="hidden"/>
|
|
|
|
<xs:enumeration value="hp-service"/>
|
|
|
|
<xs:enumeration value="irst"/>
|
|
|
|
<xs:enumeration value="lba"/>
|
|
|
|
<xs:enumeration value="legacy_boot"/>
|
|
|
|
<xs:enumeration value="lvm"/>
|
|
|
|
<xs:enumeration value="msftdata"/>
|
|
|
|
<xs:enumeration value="msftres"/>
|
|
|
|
<xs:enumeration value="palo"/>
|
|
|
|
<xs:enumeration value="prep"/>
|
|
|
|
<xs:enumeration value="raid"/>
|
|
|
|
<xs:enumeration value="root"/>
|
|
|
|
<xs:enumeration value="swap"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType>
|
|
|
|
<!-- These deviate from the parted flags (and in the case of the gpt_* ones, have no parted
|
|
|
|
equivalent it seems).
|
|
|
|
fdisk's "e(x)pert mode" has numerical GUID identifers for these ("Attrs").
|
2019-11-05 07:07:16 -05:00
|
|
|
Details on these are at:
|
|
|
|
https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_entries_(LBA_2%E2%80%9333)
|
2019-11-05 05:52:46 -05:00
|
|
|
|
|
|
|
BD_PART_FLAGS = BlockDev.PartFlag(-1)
|
|
|
|
BD_PART_FLAGS_FRIENDLY = dict(zip(BD_PART_FLAGS.value_nicks, BD_PART_FLAGS.value_names))
|
|
|
|
sorted(list(BD_PART_FLAGS_FRIENDLY.keys()))
|
|
|
|
-->
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:enumeration value="apple_tv_recovery"/>
|
|
|
|
<xs:enumeration value="cpalo"/>
|
2019-11-05 07:07:16 -05:00
|
|
|
<xs:enumeration value="gpt_hidden"/><!-- No parted equivalent -->
|
|
|
|
<xs:enumeration value="gpt_no_automount"/><!-- No parted equivalent -->
|
|
|
|
<xs:enumeration value="gpt_read_only"/><!-- No parted equivalent -->
|
|
|
|
<xs:enumeration value="gpt_system_part"/><!-- No parted equivalent -->
|
2019-11-05 05:52:46 -05:00
|
|
|
<xs:enumeration value="hpservice"/>
|
|
|
|
<xs:enumeration value="msft_data"/>
|
|
|
|
<xs:enumeration value="msft_reserved"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
</xs:union>
|
2019-10-29 01:01:31 -04:00
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:simpleType name="t_iface_name">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:token">
|
2019-10-28 01:26:31 -04:00
|
|
|
<!-- https://github.com/systemd/systemd/blob/master/src/udev/udev-builtin-net_id.c.
|
|
|
|
I have no idea if this will work. TODO: simplify, validate in-code. -->
|
|
|
|
<xs:pattern
|
2019-10-28 03:40:26 -04:00
|
|
|
value="(auto|((en|sl|wl|ww)(b[0-9]+|c[a-z0-9]|o[0-9]+(n.*(d.*)?)?|s[0-9]+(f.*)?([nd].*)?|x([A-Fa-f0-9]:){5}[A-Fa-f0-9]|(P.*)?p[0-9]+s[0-9]+(([fnd].*)|u.*)?)))"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
2017-05-05 01:40:28 -04:00
|
|
|
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:simpleType name="t_addr_ip4">
|
|
|
|
<!-- This is a REALLY LAZY regex. Matching IPv4 in regex is ugly as heck, so we do that in-code.
|
|
|
|
This is just a gatekeeper. -->
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:restriction base="xs:string">
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:pattern value="[0-9.]{7,15}/[0-9]{1,2}"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
2017-04-27 05:08:39 -04:00
|
|
|
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:simpleType name="t_gw_ip4">
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<!-- This is a REALLY LAZY regex. Matching IPv4 in regex is ugly as heck, so we do that in-code.
|
|
|
|
This is just a gatekeeper. -->
|
|
|
|
<xs:pattern value="[0-9.]{7,15}"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:simpleType name="t_addr_ip6">
|
|
|
|
<!-- This is a REALLY LAZY regex. Matching IPv6 in regex is ugly as heck, so we do that in-code.
|
|
|
|
This is just a gatekeeper. -->
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:string">
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:pattern value="[A-Za-z0-9:]+/[0-9]{1,3}"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:simpleType name="t_gw_ip6">
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<!-- This is a REALLY LAZY regex. Matching IPv6 in regex is ugly as heck, so we do that in-code.
|
|
|
|
This is just a gatekeeper. -->
|
|
|
|
<xs:pattern value="[A-Za-z0-9:]+"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:simpleType name="t_both_addr">
|
|
|
|
<xs:union memberTypes="aif:t_addr_ip4 aif:t_addr_ip6"/>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_both_gw">
|
|
|
|
<xs:union memberTypes="aif:t_gw_ip4 aif:t_gw_ip6"/>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_ipv6_auto">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:restriction base="xs:string">
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:enumeration value="slaac"/>
|
|
|
|
<xs:enumeration value="dhcp6"/>
|
|
|
|
<xs:enumeration value="false"/>
|
|
|
|
<xs:enumeration value="none"/>
|
|
|
|
<xs:enumeration value="0"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_netproto">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:token">
|
2019-11-05 05:52:46 -05:00
|
|
|
<xs:enumeration value="both"/>
|
|
|
|
<xs:enumeration value="ipv4"/>
|
|
|
|
<xs:enumeration value="ipv6"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:simpleType name="t_dhcp_clients">
|
|
|
|
<!-- Only valid for netctl. We use the internal daemons for systemd-networkd and NM. -->
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:enumeration value="dhcpcd"/>
|
|
|
|
<xs:enumeration value="dhclient"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_netprov">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="netctl"/>
|
|
|
|
<xs:enumeration value="nm"/>
|
2019-11-30 01:22:28 -05:00
|
|
|
<xs:enumeration value="networkd"/>
|
2019-11-05 05:52:46 -05:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:complexType name="t_iface">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:choice maxOccurs="unbounded">
|
|
|
|
<xs:element name="addresses" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-11-12 01:27:48 -05:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="ipv4">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:element name="address" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:extension base="aif:t_addr_ip4">
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="aif:t_gw_ip4"
|
|
|
|
use="optional"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-11-12 01:27:48 -05:00
|
|
|
</xs:sequence>
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:attribute name="auto" type="xs:boolean" use="optional" default="true"/>
|
2019-11-12 01:27:48 -05:00
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv4_addr">
|
|
|
|
<xs:selector xpath="aif:address"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="ipv6">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:element name="address" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:extension base="aif:t_addr_ip6">
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="aif:t_gw_ip6"
|
|
|
|
use="optional"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-11-12 01:27:48 -05:00
|
|
|
</xs:sequence>
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:attribute name="auto" type="aif:t_ipv6_auto"
|
|
|
|
use="optional" default="slaac"/>
|
2019-11-12 01:27:48 -05:00
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv6_addr">
|
|
|
|
<xs:selector xpath="aif:address"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
2019-11-10 05:39:33 -05:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="resolvers" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="resolver" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="aif:t_both_gw"/>
|
|
|
|
<xs:element name="ipv4" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="auto" type="xs:boolean"
|
|
|
|
use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="ipv6" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="auto" type="xs:boolean"
|
|
|
|
use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="routes" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="ipv4">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="route" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="aif:t_addr_ip4">
|
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="aif:t_gw_ip4"
|
|
|
|
use="required"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="auto" type="xs:boolean" use="optional" default="true"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv4_route">
|
|
|
|
<xs:selector xpath="aif:route"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="ipv6">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="address" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="aif:t_addr_ip6">
|
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="aif:t_gw_ip6"
|
|
|
|
use="required"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
<!-- DHCPv6 does not have an option to send routes,
|
|
|
|
so you need to use RAs. -->
|
|
|
|
<!-- See https://www.isc.org/blogs/routing-configuration-over-dhcpv6-2/
|
|
|
|
for more information. -->
|
|
|
|
<!-- https://datatracker.ietf.org/doc/draft-ietf-mif-dhcpv6-route-option/
|
|
|
|
expired. Shame, that. -->
|
|
|
|
<xs:attribute name="auto" type="xs:boolean" use="optional" default="true"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv6_route">
|
|
|
|
<xs:selector xpath="aif:route"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
2019-11-10 05:39:33 -05:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
|
|
|
</xs:sequence>
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:attribute name="device" type="aif:t_iface_name" use="required"/>
|
|
|
|
<xs:attribute name="defroute" type="xs:boolean" use="optional" default="false"/>
|
2019-11-25 05:05:51 -05:00
|
|
|
<xs:attribute name="searchDomain" type="aif:t_nonempty" use="optional"/>
|
2019-11-10 05:39:33 -05:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_mac_addr">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<!-- EUI48[RFC7043§3] (previously MAC48[RFC7042§2.1]) -->
|
|
|
|
<xs:pattern value="([A-Fa-f0-9]{2}[:-]?){5}[A-Fa-f0-9]{2}"/>
|
|
|
|
<!-- EUI64[RFC7043§4, RFC4291§2.5.1] -->
|
|
|
|
<xs:pattern value="([A-Fa-f0-9]{2}[:-]?){3}[Ff]{3}[FfEe][:-]?([A-Fa-f0-9]{2}[:-]?){2}[A-Fa-f0-9]{2}"/>
|
|
|
|
<xs:pattern value="([A-Fa-f0-9]{2}[:-]?){3}[A-Fa-f0-9]{4}[:-]?([A-Fa-f0-9]{2}[:-]?){2}[A-Fa-f0-9]{2}"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-11-10 05:42:51 -05:00
|
|
|
<!-- TODO: "enterprise" WPA2 (add'l details)?
|
|
|
|
WPA3?
|
|
|
|
EAP,
|
|
|
|
eduroam (https://github.com/rst0git/netctl-eduroam-config/blob/master/eduroam), etc. -->
|
2019-11-11 21:42:58 -05:00
|
|
|
<!-- wep64, wep128, wpa-psk:tkip, wpa-psk:aes, wpa2-psk:tkip, wpa2-psk:aes, wpa2-psk:tkip/aes -->
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:complexType name="t_wifi_crypto">
|
|
|
|
<xs:all>
|
|
|
|
<xs:element name="type" minOccurs="1" maxOccurs="1" default="wpa2">
|
|
|
|
<xs:simpleType>
|
|
|
|
<xs:restriction base="xs:token">
|
2019-11-30 01:05:20 -05:00
|
|
|
<!-- <xs:enumeration value="wep"/> -->
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:enumeration value="wpa"/>
|
|
|
|
<xs:enumeration value="wpa2"/>
|
|
|
|
<!-- <xs:enumeration value="wpa3"/> -->
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
</xs:element>
|
2019-12-02 22:06:27 -05:00
|
|
|
<!-- only valid for WPA/WPA2 (and maybe WPA3 once supported?) -->
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:element name="creds" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-12-02 22:06:27 -05:00
|
|
|
<xs:choice minOccurs="1" maxOccurs="1">
|
|
|
|
<!-- "personal" -->
|
|
|
|
<xs:element name="psk">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="xs:string">
|
|
|
|
<!-- a key can be generated via "wpa_passphrase <ssid> <passphrase>" -->
|
|
|
|
<!-- or via genPSK.py in extras/ -->
|
|
|
|
<xs:attribute name="isKey" type="xs:boolean" use="optional" default="false"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- TODO -->
|
|
|
|
<!-- <xs:element name="enterprise"></xs:element> -->
|
|
|
|
</xs:choice>
|
2019-11-10 05:39:33 -05:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:all>
|
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="t_iface_wifi">
|
|
|
|
<xs:complexContent>
|
|
|
|
<xs:extension base="aif:t_iface">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="encryption" type="aif:t_wifi_crypto" minOccurs="0" maxOccurs="1"/>
|
|
|
|
</xs:sequence>
|
2019-12-02 22:06:27 -05:00
|
|
|
<!-- TODO: SSID needs to support unicode chars in both XML(/XSD type=?) and python -->
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:attribute name="essid" type="xs:string" use="required"/>
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:attribute name="bssid" type="aif:t_mac_addr" use="optional"/>
|
2019-11-30 01:22:28 -05:00
|
|
|
<xs:attribute name="hidden" type="xs:boolean" use="optional" default="false"/>
|
2019-11-10 05:39:33 -05:00
|
|
|
</xs:extension>
|
|
|
|
</xs:complexContent>
|
|
|
|
</xs:complexType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_scripturi">
|
|
|
|
<xs:restriction base="xs:anyURI">
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:pattern value="(https?|ftps?|file)://.+"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_posixUserGroup">
|
|
|
|
<!-- https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_437
|
|
|
|
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282
|
|
|
|
https://unix.stackexchange.com/a/435120/284004 -->
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:token">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:pattern value="[a-z_]([a-z0-9_-]{0,31}|[a-z0-9_-]{0,30}$)"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:simpleType name="t_passwd_hashtypes">
|
2019-12-05 18:08:07 -05:00
|
|
|
<xs:restriction base="xs:string">
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:enumeration value="md5"/>
|
|
|
|
<!-- Unsupported in glibc. libxcrypt (https://github.com/besser82/libxcrypt/) has additional support. -->
|
|
|
|
<!-- <xs:enumeration value="des"/> -->
|
|
|
|
<!-- bcrypt/blowfish are the same. -->
|
|
|
|
<!-- <xs:enumeration value="bcrypt"/> -->
|
|
|
|
<!-- <xs:enumeration value="blowfish"/> -->
|
|
|
|
<!-- <xs:enumeration value="scrypt"/> -->
|
|
|
|
<xs:enumeration value="sha256"/>
|
|
|
|
<xs:enumeration value="sha512"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_passwd_hashtypes_detect">
|
|
|
|
<xs:union memberTypes="aif:t_passwd_hashtypes">
|
|
|
|
<xs:simpleType>
|
2019-12-05 18:09:48 -05:00
|
|
|
<xs:restriction base="xs:string">
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:enumeration value="(detect)"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
</xs:union>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_shadowhash">
|
|
|
|
<!-- http://man7.org/linux/man-pages/man3/crypt.3.html#NOTES -->
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:token">
|
2019-10-28 14:11:35 -04:00
|
|
|
<xs:pattern value="($1)?($[a-zA-Z0-9./]{1,16})$[a-zA-Z0-9./]{22}"/><!-- md5 -->
|
2019-12-05 18:04:51 -05:00
|
|
|
<!-- Not available in glibc, but is in libxcrypt (https://github.com/besser82/libxcrypt/). -->
|
|
|
|
<!-- Blowfish/bcrypt -->
|
|
|
|
<!-- <xs:pattern value="($2[abxy]?)?($[0-9]+)$[a-zA-Z0-9./]{53}"/> -->
|
2019-10-28 14:11:35 -04:00
|
|
|
<xs:pattern value="($5)?($[a-zA-Z0-9./]{1,16})$[a-zA-Z0-9./]{43}"/><!-- sha256 -->
|
|
|
|
<xs:pattern value="($6)?($[a-zA-Z0-9./]{1,16})$[a-zA-Z0-9./]{86}"/><!-- sha512 -->
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_pacuri">
|
|
|
|
<!-- xs:anyURI is too permissive. -->
|
2019-09-30 22:08:37 -04:00
|
|
|
<!-- <xs:restriction base="xs:anyURI"> -->
|
|
|
|
<xs:restriction base="xs:token">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:pattern value="(file|https?)://.+"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-12-04 01:48:41 -05:00
|
|
|
<xs:simpleType name="t_pageformats">
|
|
|
|
<xs:restriction base="xs:positiveInteger">
|
|
|
|
<xs:enumeration value="8"/>
|
|
|
|
<xs:enumeration value="14"/>
|
|
|
|
<xs:enumeration value="16"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_bootloaders">
|
|
|
|
<!-- TODO: expand?
|
|
|
|
https://wiki.archlinux.org/index.php/Category:Boot_loaders
|
|
|
|
https://wiki.archlinux.org/index.php/Arch_boot_process#Boot_loader -->
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:token">
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:enumeration value="grub"/>
|
|
|
|
<xs:enumeration value="systemd"/>
|
|
|
|
<xs:enumeration value="syslinux"/>
|
|
|
|
<xs:enumeration value="lilo"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_authselect">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:restriction base="xs:token">
|
2019-11-05 05:52:46 -05:00
|
|
|
<xs:enumeration value="basic"/>
|
|
|
|
<xs:enumeration value="digest"/>
|
|
|
|
<xs:enumeration value="none"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:complexType name="t_cmdopts">
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="xs:string">
|
|
|
|
<xs:attribute name="name" use="required" type="xs:token"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
|
2019-11-06 02:21:04 -05:00
|
|
|
<!-- TODO: "swap" shouldn't be here. Split off into a different type. -->
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_filepath">
|
|
|
|
<xs:restriction base="xs:string">
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:pattern value="((/[^/]+)+/?|swap)"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_raid_meta">
|
2019-10-29 15:42:09 -04:00
|
|
|
<!-- Warn about 1.x used for non-aware bootloaders in manual... 0.90 should be used in that case. -->
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="0"/><!-- Same as 0.90 -->
|
|
|
|
<xs:enumeration value="0.90"/><!-- Same as 0 -->
|
|
|
|
<xs:enumeration value="1"/><!-- Same as 1.2, default -->
|
|
|
|
<xs:enumeration value="1.0"/>
|
|
|
|
<xs:enumeration value="1.1"/>
|
|
|
|
<xs:enumeration value="1.2"/><!-- Same as 1, default -->
|
|
|
|
<xs:enumeration value="default"/><!-- Same as 1, 1.2 -->
|
|
|
|
<xs:enumeration value="ddf"/>
|
|
|
|
<xs:enumeration value="imsm"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_raid_levels">
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:restriction base="xs:integer">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:enumeration value="0"/>
|
|
|
|
<xs:enumeration value="1"/>
|
|
|
|
<xs:enumeration value="4"/>
|
|
|
|
<xs:enumeration value="5"/>
|
|
|
|
<xs:enumeration value="6"/>
|
|
|
|
<xs:enumeration value="10"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-29 01:01:31 -04:00
|
|
|
<xs:simpleType name="t_raid_layout">
|
|
|
|
<!-- mdadm(8), "layout=" option -->
|
|
|
|
<!-- We don't need to cook in the "faulty" levels. -->
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:pattern
|
|
|
|
value="((left|right)-a?symmetric(-6)?|[lr][as]|parity-(fir|la)st|ddf-(zero|N)-restart|ddf-N-continue|parity-first-6|[nof][0-9]+|none)"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleType name="t_nonempty">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:minLength value="1"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:complexType name="t_nixpass">
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="1">
|
2019-12-05 18:04:51 -05:00
|
|
|
<!-- TODO: add attrs that control hash generation. rounds, hash algo, etc. -->
|
|
|
|
<xs:element name="passwordPlain">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="xs:string">
|
|
|
|
<xs:attribute name="hashType" use="optional" default="sha512"
|
|
|
|
type="aif:t_passwd_hashtypes"/>
|
|
|
|
<xs:attribute name="rounds" use="optional" default="5000" type="xs:positiveInteger"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:element name="passwordHash">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="aif:t_shadowhash">
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:attribute name="hashType" use="optional" default="(detect)"
|
|
|
|
type="aif:t_passwd_hashtypes_detect"/>
|
2019-10-28 03:40:26 -04:00
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:attribute name="locked" use="optional" default="false" type="xs:boolean"/>
|
2019-10-28 03:40:26 -04:00
|
|
|
</xs:complexType>
|
|
|
|
|
|
|
|
<xs:complexType name="t_provscript">
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="aif:t_scripturi">
|
|
|
|
<xs:attribute name="user" type="aif:t_nonempty" use="optional"/>
|
|
|
|
<xs:attribute name="password" type="aif:t_nonempty" use="optional"/>
|
|
|
|
<xs:attribute name="realm" type="aif:t_nonempty" use="optional"/>
|
|
|
|
<xs:attribute name="authtype" type="aif:t_authselect" use="optional" default="none"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:simpleType name="t_epoch_or_iso">
|
|
|
|
<!-- positiveInteger is used for UNIX Epoch. -->
|
|
|
|
<xs:union memberTypes="xs:dateTime xs:positiveInteger"/>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-09-30 22:08:37 -04:00
|
|
|
<!-- ROOT -->
|
|
|
|
<xs:element name="aif">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:all>
|
|
|
|
<!-- BEGIN STORAGE -->
|
|
|
|
<xs:element name="storage" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:all>
|
|
|
|
<!-- BEGIN BLOCKDEVICES -->
|
2019-11-06 16:58:58 -05:00
|
|
|
<xs:element name="blockDevices" minOccurs="0" maxOccurs="1">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="disk" minOccurs="1" maxOccurs="unbounded">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="part" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
2019-10-29 01:01:31 -04:00
|
|
|
<xs:sequence minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:element name="partitionFlag" minOccurs="1"
|
|
|
|
maxOccurs="unbounded"
|
|
|
|
type="aif:t_part_flags"/>
|
|
|
|
</xs:sequence>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="id" type="xs:ID"
|
2019-10-28 03:40:26 -04:00
|
|
|
use="required"/>
|
|
|
|
<xs:attribute name="name" type="aif:t_nonempty"
|
|
|
|
use="optional"/>
|
|
|
|
<xs:attribute name="label" type="aif:t_nonempty"
|
|
|
|
use="optional"/>
|
|
|
|
<xs:attribute name="start" type="aif:t_disksize"
|
|
|
|
use="required"/>
|
|
|
|
<xs:attribute name="stop" type="aif:t_disksize"
|
|
|
|
use="required"/>
|
|
|
|
<xs:attribute name="fsType" type="aif:t_fstype"
|
|
|
|
use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-11-06 02:21:04 -05:00
|
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:attribute name="device" type="aif:t_diskdev" use="required"/>
|
|
|
|
<xs:attribute name="diskFormat" type="aif:t_diskfmt" use="required"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:unique name="uniq_diskdev">
|
|
|
|
<xs:selector xpath="aif:disk"/>
|
|
|
|
<xs:field xpath="@device"/>
|
|
|
|
</xs:unique>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-10-28 01:26:31 -04:00
|
|
|
<!-- END DISK -->
|
|
|
|
<!-- BEGIN FILESYSTEMS -->
|
|
|
|
<xs:element name="fileSystems" minOccurs="1" maxOccurs="1">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="fs" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="opt" minOccurs="0" maxOccurs="unbounded"
|
|
|
|
type="aif:t_cmdopts"/>
|
|
|
|
</xs:sequence>
|
2019-11-06 02:21:04 -05:00
|
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="source" type="xs:IDREF" use="required"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<!-- We validate this in-code because there's way too many and
|
|
|
|
it's way too variable per-host. -->
|
|
|
|
<xs:attribute name="type" type="aif:t_nonempty" use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END FILESYSTEMS -->
|
|
|
|
<!-- BEGIN LUKS -->
|
|
|
|
<xs:element name="luks" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-11-10 01:37:15 -05:00
|
|
|
<!-- TODO: add support for custom flags/opts? -->
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:element name="luksDev" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="secrets" minOccurs="1"
|
2019-11-10 01:37:15 -05:00
|
|
|
maxOccurs="10">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="passphrase" minOccurs="0"
|
|
|
|
maxOccurs="unbounded"
|
|
|
|
type="aif:t_nonempty"/>
|
2019-11-08 16:49:41 -05:00
|
|
|
<!-- TODO: support URI to *read* bytes from? -->
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:element name="keyFile" minOccurs="0"
|
|
|
|
maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="aif:t_filepath">
|
|
|
|
<xs:attribute name="size"
|
|
|
|
type="xs:positiveInteger"
|
|
|
|
use="optional"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="name" type="aif:t_nonempty" use="required"/>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="source" type="xs:IDREF" use="required"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
2019-10-31 18:32:56 -04:00
|
|
|
<xs:unique name="uniq_luks_name">
|
|
|
|
<xs:selector xpath="aif:luksDev"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:element>
|
|
|
|
<!-- END LUKS -->
|
|
|
|
<!-- BEGIN LVM -->
|
|
|
|
<xs:element name="lvm" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="volumeGroup" minOccurs="1" maxOccurs="unbounded">
|
2019-10-31 18:32:56 -04:00
|
|
|
<xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:all>
|
|
|
|
<xs:element name="physicalVolumes" minOccurs="1" maxOccurs="1">
|
2019-10-31 18:32:56 -04:00
|
|
|
<xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="pv" minOccurs="1"
|
|
|
|
maxOccurs="unbounded">
|
2019-10-31 18:32:56 -04:00
|
|
|
<xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="id" type="xs:ID"
|
|
|
|
use="required"/>
|
|
|
|
<xs:attribute name="source" type="xs:IDREF"
|
|
|
|
use="required"/>
|
2019-10-31 18:32:56 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-10-31 22:35:31 -04:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="logicalVolumes" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="lv" minOccurs="1"
|
|
|
|
maxOccurs="unbounded">
|
2019-10-31 18:32:56 -04:00
|
|
|
<xs:complexType>
|
2019-11-06 12:52:50 -05:00
|
|
|
<xs:sequence minOccurs="0"
|
|
|
|
maxOccurs="unbounded">
|
2019-11-07 19:42:43 -05:00
|
|
|
<xs:element name="pvMember" minOccurs="1"
|
|
|
|
maxOccurs="unbounded">
|
2019-11-06 12:52:50 -05:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="source"
|
|
|
|
use="required"
|
|
|
|
type="xs:IDREF"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="id" type="xs:ID"
|
|
|
|
use="required"/>
|
|
|
|
<xs:attribute name="name" type="aif:t_nonempty"
|
|
|
|
use="required"/>
|
2019-11-07 19:42:43 -05:00
|
|
|
<xs:attribute name="size" type="aif:t_lvsize"
|
2019-10-31 22:35:31 -04:00
|
|
|
use="required"/>
|
2019-10-31 18:32:56 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-10-31 22:35:31 -04:00
|
|
|
</xs:sequence>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-10-31 22:35:31 -04:00
|
|
|
</xs:all>
|
|
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
|
|
<xs:attribute name="name" type="aif:t_nonempty" use="required"/>
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:attribute name="extentSize" type="aif:t_pesize" use="optional"
|
|
|
|
default="0"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-10-31 22:35:31 -04:00
|
|
|
</xs:sequence>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:unique name="uniq_vg_names">
|
2019-10-31 23:20:05 -04:00
|
|
|
<xs:selector xpath="aif:volumeGroup"/>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_vg_lv">
|
2019-10-31 23:20:05 -04:00
|
|
|
<xs:selector xpath=".//aif:lv"/>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_vg_pv">
|
2019-10-31 23:20:05 -04:00
|
|
|
<xs:selector xpath=".//aif:pv"/>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:field xpath="@source"/>
|
|
|
|
</xs:unique>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:element>
|
|
|
|
<!-- END LVM -->
|
|
|
|
<!-- BEGIN MDADM -->
|
|
|
|
<xs:element name="mdadm" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="array" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="member" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="source" type="xs:IDREF"
|
2019-10-28 01:26:31 -04:00
|
|
|
use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="id" use="required" type="xs:ID"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="name" use="required" type="aif:t_nonempty"/>
|
|
|
|
<xs:attribute name="meta" use="optional" default="1.2"
|
|
|
|
type="aif:t_raid_meta"/>
|
|
|
|
<xs:attribute name="level" use="required" type="aif:t_raid_levels"/>
|
2019-10-29 01:01:31 -04:00
|
|
|
<!-- KB *only*. -->
|
|
|
|
<!-- Can be pretty important!
|
|
|
|
https://www.zdnet.com/article/chunks-the-hidden-key-to-raid-performance/ -->
|
|
|
|
<xs:attribute name="chunkSize" use="optional" type="xs:positiveInteger"
|
|
|
|
default="512"/>
|
|
|
|
<xs:attribute name="layout" use="optional" type="aif:t_raid_layout"
|
|
|
|
default="none"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
2019-10-31 18:32:56 -04:00
|
|
|
<xs:unique name="uniq_array_name">
|
2019-10-31 23:20:05 -04:00
|
|
|
<xs:selector xpath="aif:array"/>
|
2019-10-31 18:32:56 -04:00
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:element>
|
2019-10-28 01:26:31 -04:00
|
|
|
<!-- END MDADM -->
|
|
|
|
<!-- BEGIN MOUNTPOINTS -->
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:element name="mountPoints" minOccurs="1">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="mount" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:element name="opt" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="aif:t_cmdopts"/>
|
|
|
|
</xs:sequence>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:attribute name="source" type="xs:IDREF" use="required"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="target" type="aif:t_filepath" use="required"/>
|
|
|
|
</xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:unique name="uniq_mnts_src">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:selector xpath="aif:mount"/>
|
|
|
|
<xs:field xpath="@source"/>
|
2019-10-31 22:35:31 -04:00
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_mnts_tgt">
|
|
|
|
<xs:selector xpath="aif:mount"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:field xpath="@target"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END MOUNTPOINTS -->
|
2019-10-28 03:40:26 -04:00
|
|
|
</xs:all>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END STORAGE -->
|
|
|
|
<!-- BEGIN NETWORK -->
|
|
|
|
<xs:element name="network" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="ethernet" type="aif:t_iface" minOccurs="0" maxOccurs="unbounded"/>
|
2019-12-05 18:08:07 -05:00
|
|
|
<xs:element name="wireless" type="aif:t_iface_wifi" minOccurs="0" maxOccurs="unbounded"/>
|
2019-11-10 05:39:33 -05:00
|
|
|
</xs:choice>
|
2019-10-28 01:26:31 -04:00
|
|
|
<!-- It's nearly impossible to validate FQDNs/hostnames in XSD, so we do it in-code. -->
|
|
|
|
<xs:attribute name="hostname" type="aif:t_nonempty" use="required"/>
|
2019-11-30 01:22:28 -05:00
|
|
|
<xs:attribute name="provider" type="aif:t_netprov" use="optional" default="networkd"/>
|
2019-11-30 01:05:20 -05:00
|
|
|
<xs:attribute name="dhcpClient" type="aif:t_dhcp_clients" use="optional" default="dhcpcd"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
2019-11-10 05:39:33 -05:00
|
|
|
<xs:unique name="uniq_iface_eth">
|
2019-11-12 01:27:48 -05:00
|
|
|
<xs:selector xpath="aif:ethernet|aif:wireless"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:field xpath="@device"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END NETWORK -->
|
|
|
|
<!-- BEGIN SYSTEM -->
|
|
|
|
<xs:element name="system" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:all>
|
2019-11-06 16:58:58 -05:00
|
|
|
<xs:element name="rootPassword" minOccurs="0" maxOccurs="1"
|
2019-10-28 03:40:26 -04:00
|
|
|
type="aif:t_nixpass"/>
|
|
|
|
<xs:element name="locales" minOccurs="1" maxOccurs="1">
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="locale" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="xs:token">
|
|
|
|
<xs:attribute name="name" type="aif:t_nonempty" use="required"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-12-04 01:48:41 -05:00
|
|
|
<xs:element name="console" minOccurs="0" maxOccurs="1">
|
|
|
|
<!-- vconsole.conf(5) -->
|
|
|
|
<!-- timezone and kbd/xkbd are validated in-code. -->
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:all minOccurs="1">
|
|
|
|
<!-- These are validated in-code -->
|
|
|
|
<xs:element name="keyboard" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:choice>
|
|
|
|
<xs:element name="map" minOccurs="0" maxOccurs="1"
|
|
|
|
type="aif:t_nonempty" default="us"/>
|
|
|
|
<xs:element name="toggle" minOccurs="0" maxOccurs="1"
|
|
|
|
type="aif:t_nonempty"/>
|
|
|
|
|
|
|
|
</xs:choice>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="text" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="3">
|
|
|
|
<xs:element name="font" minOccurs="0" maxOccurs="1"
|
|
|
|
type="aif:t_nonempty"/>
|
|
|
|
<xs:element name="map" minOccurs="0" maxOccurs="1"
|
|
|
|
type="aif:t_nonempty"/>
|
|
|
|
<xs:element name="unicodeMap" minOccurs="0" maxOccurs="1"
|
|
|
|
type="aif:t_nonempty"/>
|
|
|
|
</xs:choice>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:all>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-11-06 16:58:58 -05:00
|
|
|
<xs:element name="users" minOccurs="0" maxOccurs="1">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-11-06 16:58:58 -05:00
|
|
|
<xs:element name="user" minOccurs="1" maxOccurs="unbounded">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:element name="password" minOccurs="0" maxOccurs="1"
|
|
|
|
type="aif:t_nixpass"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:element name="xGroup" minOccurs="0" maxOccurs="unbounded">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="name" type="aif:t_posixUserGroup"
|
|
|
|
use="required"/>
|
|
|
|
<xs:attribute name="create" type="xs:boolean" use="optional"
|
2019-12-05 18:04:51 -05:00
|
|
|
default="false"/>
|
|
|
|
<xs:attribute name="gid" type="xs:positiveInteger"
|
|
|
|
use="optional"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:unique name="uniq_grp">
|
|
|
|
<xs:selector xpath="aif:xGroup"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="name" type="aif:t_posixUserGroup" use="required"/>
|
|
|
|
<xs:attribute name="home" type="aif:t_filepath" use="optional"/>
|
|
|
|
<xs:attribute name="uid" type="xs:positiveInteger" use="optional"/>
|
|
|
|
<xs:attribute name="group" type="aif:t_posixUserGroup" use="optional"/>
|
|
|
|
<xs:attribute name="gid" type="xs:positiveInteger" use="optional"/>
|
|
|
|
<xs:attribute name="comment" type="aif:t_nonempty" use="optional"/>
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:attribute name="sudo" type="xs:boolean" use="optional"
|
|
|
|
default="false"/>
|
2019-12-06 21:19:42 -05:00
|
|
|
<xs:attribute name="sudoPassword" type="xs:boolean" use="optional"
|
|
|
|
default="true"/>
|
2019-12-05 18:04:51 -05:00
|
|
|
<xs:attribute name="shell" type="aif:t_filepath" use="optional"
|
|
|
|
default="/bin/bash"/>
|
|
|
|
<!-- TODO: change the positiveIntegers to xs:duration? or union? -->
|
|
|
|
<!-- Might be pointless since the smallest increment is 1 day in
|
|
|
|
shadow(5). -->
|
|
|
|
<xs:attribute name="minAge" type="xs:positiveInteger" use="optional"/>
|
|
|
|
<xs:attribute name="maxAge" type="xs:positiveInteger" use="optional"/>
|
|
|
|
<xs:attribute name="warnDays" type="xs:positiveInteger"
|
|
|
|
use="optional"/>
|
|
|
|
<xs:attribute name="inactiveDays" type="xs:positiveInteger"
|
|
|
|
use="optional"/>
|
|
|
|
<xs:attribute name="expireDate" type="aif:t_epoch_or_iso"
|
|
|
|
use="optional"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:unique name="uniq_usr">
|
2019-10-09 07:18:10 -04:00
|
|
|
<xs:selector xpath="aif:user"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:element name="services" minOccurs="0" maxOccurs="1">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:sequence>
|
2019-11-06 16:58:58 -05:00
|
|
|
<xs:element name="service" minOccurs="1" maxOccurs="unbounded">
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="aif:t_nonempty">
|
2019-12-06 22:57:32 -05:00
|
|
|
<xs:attribute name="status" type="xs:boolean" use="optional"
|
|
|
|
default="true"/>
|
2019-10-28 03:40:26 -04:00
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_svc">
|
|
|
|
<xs:selector xpath="aif:service"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
<xs:field xpath="@status"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-10-28 03:40:26 -04:00
|
|
|
</xs:all>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="timezone" type="aif:t_nonempty" use="required"/>
|
|
|
|
<xs:attribute name="chrootPath" type="aif:t_filepath" use="required"/>
|
|
|
|
<xs:attribute name="reboot" type="xs:boolean" use="optional" default="0"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END SYSTEM -->
|
|
|
|
<!-- BEGIN PACMAN -->
|
|
|
|
<xs:element name="pacman" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="repos" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="repo" maxOccurs="unbounded" minOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="name" type="aif:t_nonempty" use="required"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:attribute name="enabled" type="xs:boolean" use="required"/>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:attribute name="sigLevel" type="aif:t_nonempty" use="required"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="mirror" type="aif:t_pacuri" use="required"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
2019-10-31 22:35:31 -04:00
|
|
|
<xs:unique name="uniq_repo">
|
|
|
|
<xs:selector xpath="aif:repo"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:element>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:element name="mirrorList" maxOccurs="1" minOccurs="0">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:element name="mirror" type="aif:t_pacuri" maxOccurs="unbounded"
|
|
|
|
minOccurs="1"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="software" maxOccurs="1" minOccurs="0">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="package" maxOccurs="unbounded" minOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="aif:t_nonempty">
|
|
|
|
<xs:attribute name="repo" type="aif:t_nonempty" use="optional"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:unique name="uniq_mirror">
|
|
|
|
<xs:selector xpath="aif:mirrorList"/>
|
|
|
|
<xs:field xpath="mirror"/>
|
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_pkg">
|
|
|
|
<xs:selector xpath="aif:software"/>
|
|
|
|
<xs:field xpath="package"/>
|
|
|
|
</xs:unique>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="command" type="aif:t_nonempty" use="optional" default="pacman -S"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END PACMAN -->
|
|
|
|
<!-- BEGIN BOOTLOADER -->
|
|
|
|
<xs:element name="bootloader" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xs:attribute name="type" type="aif:t_bootloaders" use="required"/>
|
|
|
|
<xs:attribute name="target" type="aif:t_nonempty" use="required"/>
|
|
|
|
<xs:attribute name="efi" type="xs:boolean" use="optional" default="1"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END BOOTLOADER -->
|
|
|
|
<!--- BEGIN SCRIPTS -->
|
|
|
|
<xs:element name="scripts" maxOccurs="1" minOccurs="0">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:element name="pre" minOccurs="0" maxOccurs="unbounded">
|
2019-09-30 22:08:37 -04:00
|
|
|
<xs:complexType>
|
2019-10-28 03:40:26 -04:00
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="script" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="aif:t_provscript"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="post" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="script" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="aif:t_provscript"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="pkg" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="script" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="aif:t_provscript"/>
|
|
|
|
</xs:sequence>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END SCRIPTS -->
|
|
|
|
</xs:all>
|
2019-11-01 03:43:14 -04:00
|
|
|
<xs:attribute name="version" type="aif:t_nonempty" use="optional" default="master"/>
|
2019-09-30 22:08:37 -04:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
2019-11-05 05:52:46 -05:00
|
|
|
</xs:schema>
|