\n" if (!$noprint); } elsif ($server =~ /^group_(.*)/) { # Install on members of some group my ($group) = grep { $_->{'name'} eq $1 } &servers::list_all_groups(\@servers); push(@hosts, grep { my $hid = $_->{'id'}; my ($s) = grep { $_->{'id'} == $hid } @servers; &indexof($s->{'host'}, @{$group->{'members'}}) >= 0 } @allhosts); print "",&text($pfx.'4', $name, $group->{'name'}), "
\n" if (!$noprint); } elsif ($server != -1) { # Just install on one host my ($onehost) = grep { $_->{'id'} == $server } @allhosts; push(@hosts, $onehost); my ($s) = grep { $_->{'id'} == $onehost->{'id'} } @servers; print "",&text($pfx.'5', $name, &server_name($s)),"
\n" if (!$noprint); } else { # Installing on every host push(@hosts, @allhosts); print "",&text($pfx, join(" ", @names)), "
\n" if (!$noprint); } } return &unique(@hosts); } 1;