Rex::G...up::XML(3pm)
β¨ NAME β¨
Rex::Group::Lookup::XML β okay bestie, this one reads hostnames and groups straight out of a XML file π (yes, it's a 3pm Perl module page, we love a lil manpage moment)
π DESCRIPTION π
With this module you can define hostgroups out of an xml file. That's literally the whole vibe β xml goes in, groups come out π
πΈ SYNOPSIS πΈ
use Rex::Group::Lookup::XML;
groups_xml "file.xml";
π EXPORTED FUNCTIONS π
π¦ groups_xml($file)
With this function you can read groups from xml files. Slay. Here's what the file is giving:
<configuration>
<group name="database">
<server name="machine01" user="root" password="foob4r" sudo="true" hdd="300" loc="/opt" />
</group>
<group name="application">
<server name="machine01" user="root" password="foob4r" sudo="true" hdd="50" loc="/export" />
<server name="machine02" user="root" password="foob5r" sudo="true"/>
</group>
<group name="profiler">
<server name="machine03" user="root" password="blue123"/>
</group>
</configuration>
Heads up bestie β the XML file is validated against the DTD schema stored in Rex::Group::Lookup::XML::$schema_file as string. It's giving strict, but in a protective way π
π $schema_file
A variable that contains the XSD schema for which the XML is validated against. It's the blueprint, the rulebook, the whole main character of validation energy β¨
and that's the page babes π«Ά literally every detail preserved, no cap. this lil manual page came from perl v5.40.1 and was dated 2025-10-03, signed off as Rex::G...up::XML(3pm) β periodt π
π¦ where this page comes from
- ubuntu resolute: rex 1.16.1-1 Β· Apache-2.0
- ubuntu stonking: rex 1.16.1-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms