Puppet Reports
Version 3 (Ohad Levy, 09/16/2009 03:25 pm)
| 1 | 2 | Ohad Levy | h1. Puppet Reports integration |
|---|---|---|---|
| 2 | 2 | Ohad Levy | |
| 3 | 1 | This feature is applicable only to the development version of Foreman, and is planned to be part of version 0.1-1 when it comes out. |
|
| 4 | 1 | if you used git, make sure you update your source as described in [[Installation_instructions#Future-Updates]] |
|
| 5 | 1 | ||
| 6 | 2 | Ohad Levy | h2. Overview |
| 7 | 1 | ||
| 8 | 1 | Foreman uses a custom puppet reports (similar to tagmail or store) which simply upload the puppet report to Foreman. |
|
| 9 | 1 | This enables you to see the reports through the web interface. |
|
| 10 | 1 | ||
| 11 | 2 | Ohad Levy | h2. Configuration |
| 12 | 1 | ||
| 13 | 3 | Ohad Levy | h3. client |
| 14 | 3 | Ohad Levy | |
| 15 | 3 | Ohad Levy | Ensure that the puppet clients has the following option in their puppet.conf: |
| 16 | 3 | Ohad Levy | <pre> |
| 17 | 3 | Ohad Levy | report = true |
| 18 | 3 | Ohad Levy | </pre> |
| 19 | 3 | Ohad Levy | |
| 20 | 3 | Ohad Levy | Without it, no reports will be sent. |
| 21 | 3 | Ohad Levy | |
| 22 | 3 | Ohad Levy | h3. puppetmaster |
| 23 | 3 | Ohad Levy | |
| 24 | 1 | # copy *extras/puppet/reports/foreman.rb* to your report directory - e.g. /usr/lib/ruby/1.8/puppet/reports/ |
|
| 25 | 1 | # open the new file with your favorite editor |
|
| 26 | 1 | # edit the URL (unless you have a DNS alias for foreman already) to point to foreman. |
|
| 27 | 1 | # add this report in your puppetmaster reports - e.g, in your puppet.conf add: |
|
| 28 | 3 | Ohad Levy | |
| 29 | 3 | Ohad Levy | <pre>reports=log, foreman</pre> |
| 30 | 3 | Ohad Levy | |
| 31 | 3 | Ohad Levy | and restart your puppetmaster |
| 32 | 1 | ||
| 33 | 1 | You should start seeing reports coming in under the reports link. |
|
| 34 | 1 | ||
| 35 | 2 | Ohad Levy | h2. Todo: |
| 36 | 1 | ||
| 37 | 1 | # enable the web interface to show more status - e.g. a dashboard |
|
| 38 | 1 | # Associate Users with Hosts, this will allow to send notifications (e.g. email) to the right users |
|
| 39 | 1 | # Send out a summary of all of yours hosts status per day |
|
| 40 | 1 | # Delete old reports |
