From 303e006b35d99d9fb71c788cd7e9f3236d0befce Mon Sep 17 00:00:00 2001 From: r00t Date: Thu, 10 May 2018 08:34:44 -0400 Subject: [PATCH] updating syntax for configs --- docs/examples/example.xml | 209 ---------------------------- docs/examples/multi_profile.xml | 227 +++++++++++++++++++++++++++++++ docs/examples/single_profile.xml | 124 +++++++++++++++++ 3 files changed, 351 insertions(+), 209 deletions(-) delete mode 100644 docs/examples/example.xml create mode 100644 docs/examples/multi_profile.xml create mode 100644 docs/examples/single_profile.xml diff --git a/docs/examples/example.xml b/docs/examples/example.xml deleted file mode 100644 index d5b633d..0000000 --- a/docs/examples/example.xml +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - BDisk - bdisk - - - A rescue/restore live environment. - - A. Dev Eloper - dev@domain.tld - https://domain.tld/~dev - - https://domain.tld/projname - 1.0.0 - 3 - - - - - $6$7KfIdtHTcXwVrZAC$LZGNeMNz7v5o/cYuA48FAxtZynpIwO5B1CPGXnOW5kCTVpXVt4SypRqfM.AoKkFt/O7MZZ8ySXJmxpELKmdlF1 - - - - - - - - - - - - testpassword - - - - - - http://archlinux.mirror.domain.tld - /iso/latest - - //archlinux-bootstrap-*-x86_64.tar.gz - - - //sha1sums.txt - - - .sig - - - - http://archlinux32.mirror.domain.tld - /iso/latest - - //archlinux-bootstrap-*-i686.tar.gz - - - //sha512sums.txt - - - .sig - - - - - - /var/tmp/ - /var/tmp/chroots/ - ~//templates - /mnt/ - ~//distros - ~//results - /iso - /http - /tftp - /pki - - archlinux - - - - /ca.crt - /ca.key - - /.crt - - - /.key - - - /ipxe - - - - - - - root - /srv/http/ - mirror.domain.tld - 22 - ~/.ssh/id_ed25519 - - - - - - - - Another Disk - livecd2 - - - Some other rescue/restore live environment. - - Another Dev Eloper - dev2@domain.tld - https://domain.tld/~dev2 - - https://domain.tld/projname - 0.0.1 - 3 - - - - - $6$yR0lsi68GZ.8oAuV$juLOanZ6IGD6caxJFo5knnXwFZRi65Q58a1XfSWBX7R97EpHrVgpzdXfA3ysAfAg4bs1d6wBv7su2rURkg2rn. - - - - - http://archlinux.mirror.domain.tld - /iso/latest - - //archlinux-bootstrap-*-x86_64.tar.gz - - - //sha1sums.txt - - - .sig - - - - http://archlinux32.mirror.domain.tld - /iso/latest - - //archlinux-bootstrap-*-i686.tar.gz - - - //sha512sums.txt - - - .sig - - - - - - /var/tmp/ - /var/tmp/chroots/ - ~//templates - /mnt/ - ~//distros - ~//results - /iso - /http - /tftp - /pki - - archlinux - - - - /ca.crt - /ca.key - - /.crt - - - /.key - - - /ipxe - - - - - - - root - /srv/http/ - mirror.domain.tld - 22 - ~/.ssh/id_ed25519 - - - - - diff --git a/docs/examples/multi_profile.xml b/docs/examples/multi_profile.xml new file mode 100644 index 0000000..9eeea0b --- /dev/null +++ b/docs/examples/multi_profile.xml @@ -0,0 +1,227 @@ + + + + + + BDisk + bdisk + + {xpath_ref%../name/text()} + + A rescue/restore live environment. + + A. Dev Eloper + dev@domain.tld + https://domain.tld/~dev + + https://domain.tld/projname + 1.0.0 + + + 3 + + + + + $6$7KfIdtHTcXwVrZAC$LZGNeMNz7v5o/cYuA48FAxtZynpIwO5B1CPGXnOW5kCTVpXVt4SypRqfM.AoKkFt/O7MZZ8ySXJmxpELKmdlF1 + + + {xpath_ref%//meta/names/uxname/text()} + + + {xpath_ref%//meta/dev/author/text()} + + testpassword + + + + testuser + Test User + + anothertestpassword + + + + + + http://archlinux.mirror.domain.tld + /iso/latest + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/archlinux-bootstrap-*-x86_64.tar.gz + + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/sha1sums.txt + + + {xpath_ref%../tarbal/text()}.sig + + + + http://archlinux32.mirror.domain.tld + /iso/latest + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/archlinux-bootstrap-*-i686.tar.gz + + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/sha512sums.txt + + + {xpath_ref%../tarball/text()}.sig + + + + + + /var/tmp/{xpath_ref%//meta/names/uxname/text()} + /var/tmp/chroots/{xpath_ref%//meta/names/uxname/text()} + ~/{xpath_ref%//meta/names/uxname/text()}/templates + /mnt/{xpath_ref%//meta/names/uxname/text()} + ~/{xpath_ref%//meta/names/uxname/text()}/distros + ~/{xpath_ref%//meta/names/uxname/text()}/results + {xpath_ref%../dest/text()}/iso + {xpath_ref%../dest/text()}/http + {xpath_ref%../dest/text()}/tftp + {xpath_ref%../dest/text()}/pki + + archlinux + + + + {xpath_ref%build/paths/ssl/text()}/ca.crt + {xpath_ref%build/paths/ssl/text()}/ca.key + + {xpath_ref%build/paths/ssl/text()}/{xpath_ref%//meta/names/uxname/text()}.crt + + + {xpath_ref%build/paths/ssl/text()}/{xpath_ref%//meta/names/uxname/text()}.key + + + {xpath_ref%meta/dev/website/text()}/ipxe + + + + + + + root + /srv/http/{xpath_ref%//meta/names/uxname/text()} + mirror.domain.tld + 22 + ~/.ssh/id_ed25519 + + + + + + + + AnotherCD + bdisk_alt + {xpath_ref%../name/text()} + + Another rescue/restore live environment. + + Another Dev Eloper + {xpath_ref%//profile[@name="default"]/meta/dev/email/text()} + {xpath_ref%//profile[@name="default"]/meta/dev/website/text()} + + https://domain.tld/projname + 0.0.1 + 3 + + + + atotallyinsecurepassword + + + testuser + Test User + + atestpassword + + + + + + http://archlinux.mirror.domain.tld + /iso/latest + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/archlinux-bootstrap-*-x86_64.tar.gz + + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/sha1sums.txt + + + {xpath_ref%../tarball/text()}.sig + + + + http://archlinux32.mirror.domain.tld + /iso/latest + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/archlinux-bootstrap-*-i686.tar.gz + + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/sha512sums.txt + + + {xpath_ref%../tarball/text()}.sig + + + + + + /var/tmp/{xpath_ref%//meta/names/uxname/text()} + /var/tmp/chroots/{xpath_ref%//meta/names/uxname/text()} + ~/{xpath_ref%//meta/names/uxname/text()}/templates + /mnt/{xpath_ref%//meta/names/uxname/text()} + ~/{xpath_ref%//meta/names/uxname/text()}/distros + ~/{xpath_ref%//meta/names/uxname/text()}/results + {xpath_ref%../dest/text()}/iso + {xpath_ref%../dest/text()}/http + {xpath_ref%../dest/text()}/tftp + {xpath_ref%../dest/text()}/pki + + archlinux + + + + {xpath_ref%build/paths/ssl/text()}/ca.crt + {xpath_ref%build/paths/ssl/text()}/ca.key + + {xpath_ref%build/paths/ssl/text()}/{xpath_ref%//meta/names/uxname/text()}.crt + + + {xpath_ref%build/paths/ssl/text()}/{xpath_ref%//meta/names/uxname/text()}.key + + + {xpath_ref%meta/dev/website/text()}/ipxe + + + + + + + root + /srv/http/{xpath_ref%//meta/names/uxname/text()} + mirror.domain.tld + 22 + ~/.ssh/id_ed25519 + + + + + diff --git a/docs/examples/single_profile.xml b/docs/examples/single_profile.xml new file mode 100644 index 0000000..9550263 --- /dev/null +++ b/docs/examples/single_profile.xml @@ -0,0 +1,124 @@ + + + + + + BDisk + bdisk + + {xpath_ref%../name/text()} + + A rescue/restore live environment. + + A. Dev Eloper + dev@domain.tld + https://domain.tld/~dev + + https://domain.tld/projname + 1.0.0 + + + 5 + + + + + $6$7KfIdtHTcXwVrZAC$LZGNeMNz7v5o/cYuA48FAxtZynpIwO5B1CPGXnOW5kCTVpXVt4SypRqfM.AoKkFt/O7MZZ8ySXJmxpELKmdlF1 + + + {xpath_ref%//meta/names/uxname/text()} + + + {xpath_ref%//meta/dev/author/text()} + + testpassword + + + + testuser + Test User + + anothertestpassword + + + + + + http://archlinux.mirror.domain.tld + /iso/latest + + {xpath_ref%../mirror/text()}{xpath_ref%../webroot/text()}/archlinux-bootstrap-*-x86_64.tar.gz + + + {xpath_ref%../mirror/text()}{xpath_ref%../webroot/text()}/sha1sums.txt + + + {xpath_ref%../tarball/text()}.sig + + + + http://archlinux32.mirror.domain.tld + /iso/latest + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/archlinux-bootstrap-*-i686.tar.gz + + + {xpath_ref%../mirror/text()}/{xpath_ref%../webroot/text()}/sha512sums.txt + + + {xpath_ref%../tarball/text()}.sig + + + + + + /var/tmp/{xpath_ref%//meta/names/uxname/text()} + /var/tmp/chroots/{xpath_ref%//meta/names/uxname/text()} + ~/{xpath_ref%//meta/names/uxname/text()}/templates + /mnt/{xpath_ref%//meta/names/uxname/text()} + ~/{xpath_ref%//meta/names/uxname/text()}/distros + ~/{xpath_ref%//meta/names/uxname/text()}/results + {xpath_ref%../dest/text()}/iso + {xpath_ref%../dest/text()}/http + {xpath_ref%../dest/text()}/tftp + {xpath_ref%../dest/text()}/pki + + archlinux + + + + {xpath_ref%build/paths/ssl/text()}/ca.crt + {xpath_ref%build/paths/ssl/text()}/ca.key + + {xpath_ref%build/paths/ssl/text()}/{xpath_ref%//meta/names/uxname/text()}.crt + + + {xpath_ref%build/paths/ssl/text()}/{xpath_ref%//meta/names/uxname/text()}.key + + + {xpath_ref%meta/dev/website/text()}/ipxe + + + + + + + root + /srv/http/{xpath_ref%//meta/names/uxname/text()} + mirror.domain.tld + 22 + ~/.ssh/id_ed25519 + + + + +