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