Project

General

Profile

Actions

Feature #87

closed

Filtering on fact name

Added by Dave Whitehouse over 14 years ago. Updated over 11 years ago.

Status:
Rejected
Priority:
Normal
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

We have been using OCS to manage assets previously. Recently we’ve been using foreman and we are now replicating a lot of asset data in both systems. Ideally we would like to use just one and foreman would be preferable but the filtering of asset details in OCS is very flexible and powerful.

It would be really useful to be able to filter asset details by fact names and to be able to selectively view which fact names you want. If this view can then be downloaded in CSV format it means that we can use the data for reporting purposes outside of the foreman like we currently do with OCS. If we also had the ability to add our own fields into the database for each asset this would replicate all the facilities missing that we use in OCS and we could move to the foreman for asset management.


Related issues 1 (1 open0 closed)

Related to Foreman - Feature #32: Provide a way to organize the Inventory display in the Hosts pageNewActions
Actions #1

Updated by Ohad Levy over 14 years ago

Dave Whitehouse wrote:

It would be really useful to be able to filter asset details by fact names and to be able to selectively view which fact names you want.

is it per host or in general? can you give me some examples?

If this view can then be downloaded in CSV format it means that we can use the data for reporting purposes outside of the foreman like we currently do with OCS. If we also had the ability to add our own fields into the database for each asset this would replicate all the facilities missing that we use in OCS and we could move to the foreman for asset management.

exporting to csv or any other format is usually not a problem.
which kind of fields would you like to add? adding a fact name and a value is not a problem, however one of the main benefits of using facter is that you can ensure that the data is updated, manual fields usually are not.

Actions #2

Updated by Ohad Levy over 14 years ago

  • Status changed from New to Feedback
  • Assignee changed from Ohad Levy to Dave Whitehouse
Actions #3

Updated by Dave Whitehouse over 14 years ago

Ohad Levy wrote:

Dave Whitehouse wrote:

It would be really useful to be able to filter asset details by fact names and to be able to selectively view which fact names you want.

is it per host or in general? can you give me some examples?

It’s a general ability to filter on a fact such as BIOS version for example. I’ve used OSC in the past to list all HP servers with BIOS version 008 for example and then downloaded the list into excel.

If this view can then be downloaded in CSV format it means that we can use the data for reporting purposes outside of the foreman like we currently do with OCS. If we also had the ability to add our own fields into the database for each asset this would replicate all the facilities missing that we use in OCS and we could move to the foreman for asset management.

exporting to csv or any other format is usually not a problem.
which kind of fields would you like to add? adding a fact name and a value is not a problem, however one of the main benefits of using facter is that you can ensure that the data is updated, manual fields usually are not.

The adding of manual fields is less important. Like you say it is something that is a pain to keep upto date. We’ve used if for things like adding in authorative contact details but I’m not sure I’d use that long term.

Actions #4

Updated by Matt Moran over 14 years ago

  • Assignee changed from Dave Whitehouse to Ohad Levy
Actions #5

Updated by Ohad Levy over 14 years ago

  • Status changed from Feedback to New
  • Assignee changed from Ohad Levy to Martin Englund

@Martin Englund: Are you planning to implement the to_csv method as well?

I guess its a good idea to split the facts to their own method/view as eventually the active scaffold wont cut it anymore.

Actions #6

Updated by Martin Englund over 14 years ago

I've created the view /hosts/:id/facts but that only covers facts for that specific host.

I am planning to create a view /facts (or perhaps /hosts/facts) where you view them as: hostname, fact name, fact value. I think that is what Matt is asking for.

I'll see if I can create a to_csv method as well.

Actions #7

Updated by Ohad Levy almost 14 years ago

  • Status changed from New to Rejected

this has been long implemented, somehow this ticket got lost, closing it as its not relevant any more.

Actions

Also available in: Atom PDF