Puppet Reports

Version 6 (Ohad Levy, 10/14/2009 05:06 pm)

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