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