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

SYNOPSIS

DESCRIPTION

7       Object representing application configuration
8

METHODS

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