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"
24       sudo="true" hdd="300" loc="/opt" />
25          </group>
26          <group name="application">
27              <server name="machine01" user="root" password="foob4r"
28       sudo="true" hdd="50" loc="/export" />
29              <server name="machine02" user="root" password="foob5r"
30       sudo="true"/>
31          </group>
32          <group name="profiler">
33              <server name="machine03" user="root" password="blue123"/>
34          </group> </configuration>
35
36        C<groups_xml($file);>
37
38        The XML file is validated against the following DTD schema:
39
40   $schema_file
41       A global that defines the XSD schema for which the XML is check
42       against.
43
44
45
46perl v5.30.0                      2019-07-24        Rex::Group::Lookup::XML(3)
Impressum