1Rex::Group::Lookup::XMLU(s3e)r Contributed Perl DocumentaRteixo:n:Group::Lookup::XML(3)
2
3
4

NAME

6       Rex::Group::Lookup::XML - read hostnames and groups from a XML file
7

DESCRIPTION

9       With this module you can define hostgroups out of an xml file.
10

SYNOPSIS

12        use Rex::Group::Lookup::XML;
13        groups_xml "file.xml";
14

EXPORTED FUNCTIONS

16   groups_xml($file)
17       With this function you can read groups from xml files.
18
19       File example:
20
21        <configuration>
22          <group name="database">
23              <server name="machine01" user="root" password="foob4r" sudo="true" hdd="300" loc="/opt" />
24          </group>
25          <group name="application">
26              <server name="machine01" user="root" password="foob4r" sudo="true" hdd="50" loc="/export" />
27              <server name="machine02" user="root" password="foob5r" sudo="true"/>
28          </group>
29          <group name="profiler">
30              <server name="machine03" user="root" password="blue123"/>
31          </group>
32        </configuration>
33
34       The XML file is validated against the DTD schema stored in
35       "Rex::Group::Lookup::XML::$schema_file" as string.
36
37   $schema_file
38       A variable that contains the XSD schema for which the XML is validated
39       against.
40
41
42
43perl v5.36.1                      2023-08-07        Rex::Group::Lookup::XML(3)
Impressum