Project

General

Profile

Actions

Feature #259

closed

Ability to search Hosts by Parameters

Added by Bash Shell almost 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

It would be useful to add a Search by Parameter field to the search bar

Adding these two lines in _searchbar.erb seems to do it:

diff --git a/app/views/common/_searchbar.erb b/app/views/common/_searchbar.erb
index 91abe8b..c9adc52 100644
--- a/app/views/common/_searchbar.erb
+++ b/app/views/common/_searchbar.erb
@@ -20,6 +20,8 @@
           </span>
           <%= f.label :hostgroup, "Role" %>
           <%= f.collection_select :hostgroup_id_eq, Hostgroup.all, :id, :name, :include_blank => true %>
+          <%= f.label :parameter, "Parameter" %>
+          <%= f.text_field :host_parameters_name_like, :size => 10 %>
           <%= render :partial => 'common/fact_selected' %>
           <%= f.submit "Go" %> Save as tab: <%= text_field_tag :tab_name, "" %>
         <% end %>

This is useful as assigning parameters to individual hosts creates "drift" and there should be a way to search for such Parameters.


Related issues 3 (0 open3 closed)

Related to Foreman - Refactor #250: Remove activescaffold from the domain parameters pageClosedPaul Kelly05/13/2010Actions
Follows Foreman - Feature #248: Generalise the searchbar and tabs to support multiple controllersClosedPaul Kelly05/13/2010Actions
Follows Foreman - Feature #719: Add new search functionailyClosedAmos Benari03/09/2011Actions
Actions

Also available in: Atom PDF