Skip to content

Commit 1e01036

Browse files
committed
Add task to generate report reference
bundle exec rake references:report It runs `puppet doc -r report` to generate references/report.md The docs site does not use the generated markdown to render the webpage, but at least this file will be accurate if new report processors are added in the future.
1 parent 09ca43d commit 1e01036

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

rakelib/generate_references.rake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ CONFIGURATION_ERB = File.join(__dir__, 'references/configuration.erb')
55
CONFIGURATION_MD = File.join(OUTPUT_DIR, 'configuration.md')
66
METAPARAMETER_ERB = File.join(__dir__, 'references/metaparameter.erb')
77
METAPARAMETER_MD = File.join(OUTPUT_DIR, 'metaparameter.md')
8+
REPORT_ERB = File.join(__dir__, 'references/report.erb')
9+
REPORT_MD = File.join(OUTPUT_DIR, 'report.md')
810

911
def render_erb(erb_file, variables)
1012
# Create a binding so only the variables we specify will be visible
@@ -48,4 +50,10 @@ namespace :references do
4850
body = puppet_doc('metaparameter')
4951
generate_reference('metaparameter', METAPARAMETER_ERB, body, METAPARAMETER_MD)
5052
end
53+
54+
desc "Generate report reference"
55+
task :report do
56+
body = puppet_doc('report')
57+
generate_reference('report', REPORT_ERB, body, REPORT_MD)
58+
end
5159
end

rakelib/references/report.erb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: default
3+
built_from_commit: <%= sha %>
4+
title: Report Reference
5+
toc: columns
6+
canonical: "/puppet/latest/report.html"
7+
---
8+
9+
# Report Reference
10+
11+
> **NOTE:** This page was generated from the Puppet source code on <%= now %>
12+
13+
<%= body %>

references/report.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
layout: default
3+
built_from_commit: 41ffe0f49158b8f34714b7e18429afa0ce8ded09
4+
title: Report Reference
5+
toc: columns
6+
canonical: "/puppet/latest/report.html"
7+
---
8+
9+
# Report Reference
10+
11+
> **NOTE:** This page was generated from the Puppet source code on 2024-08-29 09:52:52 -0700
12+
13+
14+
15+
16+
Puppet can generate a report after applying a catalog. This report includes
17+
events, log messages, resource statuses, and metrics and metadata about the run.
18+
Puppet agent sends its report to a Puppet master server, and Puppet apply
19+
processes its own reports.
20+
21+
Puppet master and Puppet apply will handle every report with a set of report
22+
processors, configurable with the `reports` setting in puppet.conf. This page
23+
documents the built-in report processors.
24+
25+
See [About Reporting](https://puppet.com/docs/puppet/latest/reporting_about.html)
26+
for more details.
27+
28+
http
29+
----
30+
Send reports via HTTP or HTTPS. This report processor submits reports as
31+
POST requests to the address in the `reporturl` setting. When a HTTPS URL
32+
is used, the remote server must present a certificate issued by the Puppet
33+
CA or the connection will fail validation. The body of each POST request
34+
is the YAML dump of a Puppet::Transaction::Report object, and the
35+
Content-Type is set as `application/x-yaml`.
36+
37+
log
38+
---
39+
Send all received logs to the local log destinations. Usually
40+
the log destination is syslog.
41+
42+
store
43+
-----
44+
Store the yaml report on disk. Each host sends its report as a YAML dump
45+
and this just stores the file on disk, in the `reportdir` directory.
46+
47+
These files collect quickly -- one every half hour -- so it is a good idea
48+
to perform some maintenance on them if you use this report (it's the only
49+
default report).
50+

0 commit comments

Comments
 (0)