1App::ClusterSSH::ClusteUrs(e3r)Contributed Perl DocumentAaptpi:o:nClusterSSH::Cluster(3)
2
3
4

NAME

6       App::ClusterSSH::Cluster - Object representing cluster configuration
7

SYNOPSIS

DESCRIPTION

10       Object representing application configuration
11

METHODS

13       $cluster=ClusterSSH::Cluster->new();
14           Create a new object.  Object should be common across all
15           invocations.
16
17       $cluster->get_cluster_entries($filename);
18           Read in /etc/clusters, $HOME/.clusterssh/clusters and any other
19           given file name and register the tags found.
20
21       @external_tags=list_external_clusters()
22           Call an external script suing "-L" to list available tags
23
24       @resolved_tags=get_external_clusters(@tags)
25           Use an external script to resolve @tags into hostnames.
26
27       $cluster->get_tag_entries($filename);
28           Read in /etc/tags, $HOME/.clusterssh/tags and any other given file
29           name and register the tags found.
30
31       $cluster->read_cluster_file($filename);
32           Read in the given cluster file and register the tags found
33
34       $cluster->expand_filename($filename);
35           Expand ~ or $HOME in a filename
36
37       $cluster->read_tag_file($filename);
38           Read in the given tag file and register the tags found
39
40       $cluster->register_tag($tag,@hosts);
41           Register the given tag name with the given host names.
42
43       $cluster->register_host($host,@tags);
44           Register the given host on the provided tags.
45
46       @entries = $cluster->get_tag('tag');
47       $entries = $cluster->get_tag('tag');
48           Retrieve all entries for the given tag.  Returns an array of hosts
49           or the number of hosts in the array depending on context.
50
51       @tags = $cluster->list_tags();
52           Return an array of all available tag names
53
54       %tags = $cluster->dump_tags();
55           Returns a hash of all tag data.
56
57       @tags = $cluster->expand_glob( $type, $name, @items );
58           Use shell expansion against each item in @items, where $type is
59           either 'node', or 'tag' and $name is the node or tag name.  These
60           attributes are presented to the user in the event of an issue with
61           the expanion to track down the source.
62

AUTHOR

64       Duncan Ferguson, "<duncan_j_ferguson at yahoo.co.uk>"
65
67       Copyright 1999-2016 Duncan Ferguson.
68
69       This program is free software; you can redistribute it and/or modify it
70       under the terms of either: the GNU General Public License as published
71       by the Free Software Foundation; or the Artistic License.
72
73       See http://dev.perl.org/licenses/ for more information.
74
75
76
77perl v5.28.0                      2018-07-12       App::ClusterSSH::Cluster(3)
Impressum