Query Interface
Version 1 (Ohad Levy, 12/10/2009 07:23 am)
| 1 | 1 | h1. Query Interface |
|
|---|---|---|---|
| 2 | 1 | ||
| 3 | 1 | h2. Provide host list based on facts and classes |
|
| 4 | 1 | ||
| 5 | 1 | It's possible to use Foreman database to feed other applications - e.g. ssh |
|
| 6 | 1 | ||
| 7 | 1 | in the source:extras/query directory you could find an example multi ssh script providing example of how to run a command on all of your hosts that answer a certain criteria. |
|
| 8 | 1 | ||
| 9 | 1 | an additional ruby library (source:extras/query/foreman.rb) is available to write your own scripts. |
|
| 10 | 1 | ||
| 11 | 1 | h2. Fetch the host list from a puppet manifest / template |
|
| 12 | 1 | ||
| 13 | 1 | see example puppet foreman module - it includes a custom puppet function (source:extras/puppet/foreman/plugins/puppet/parser/functions/foreman.rb) |
