Skip to content

Commit 5b05e15

Browse files
(SIMP-9665) HOWTO Enable Client Reporting (#440)
- Add HOWTO for enabling client reports - Removed obsolete references to Travis CI SIMP-9665 #comment Add HOWTO for enabling client reporting
1 parent 35dec03 commit 5b05e15

15 files changed

+134
-79
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Wed Sep 01 2021 Trevor Vaughan <tvaughan@onyxpoint.com>
2+
- Add HOWTO for enabling client reports
3+
- Removed obsolete references to Travis CI
4+
15
* Wed Jul 14 2021 Trevor Vaughan <tvaughan@onyxpoint.com>
26
- Correct SSL recovery documentation
37
- Convert all instances of 'puppet master' to 'puppet server'

docs/HOWTO/20_Puppet/Disconnect_PuppetDB_from_Puppet_Server.rst

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ restart the :program:`puppetserver` process without the connection.
1919
mv /etc/puppetlabs/puppet/routes.yaml /etc/puppetlabs/puppet/routes.yaml.backup
2020
2121
puppet config set --section server storeconfigs false
22+
puppet config set --section server reports store
2223
puppet config set --section main storeconfigs false
2324
2425
puppet resource service puppetserver ensure=stopped
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
.. _ht-enable-client-reporting:
2+
3+
HOWTO Enable Client Reporting
4+
=============================
5+
6+
Puppet has the ability to send run status reports back to the server at the
7+
conclusion of each client run.
8+
9+
SIMP natively supports the `store` (default) and `puppetdb` report storage
10+
endpoints and can be configured as shown below.
11+
12+
Enable Client Reporting
13+
-----------------------
14+
15+
Set the following in :term:`Hiera` to enable client reporting:
16+
17+
.. code-block:: yaml
18+
19+
---
20+
pupmod::report: true
21+
22+
Once puppet applies this setting, clients will start sending reports to the
23+
server at the conclusion of each puppet run.
24+
25+
Filesystem Reports
26+
------------------
27+
28+
By default, the puppet sever will enable the `store` reports target which will
29+
store the client reports on the local filesystem.
30+
31+
To view the raw reports, you can navigate to the directory output by
32+
``puppet config print reportdir``.
33+
34+
If the system has been set up for `puppetdb` reports and you need to change it
35+
back to `store`, set the following in :term:`Hiera`:
36+
37+
.. code-block:: yaml
38+
39+
---
40+
puppetdb::master::config::manage_report_processor: true
41+
puppetdb::master::config::enable_reports: false
42+
43+
PuppetDB Reports
44+
----------------
45+
46+
If you want to use a :term:`GUI` application like `Puppetboard`_ to connect to
47+
:program:`puppetdb` for reports, then you will need to ensure that the reports
48+
are being sent to :program:`puppetdb` by the server.
49+
50+
To do this, set the following in :term:`Hiera`:
51+
52+
.. code-block:: yaml
53+
54+
---
55+
puppetdb::master::config::manage_report_processor: true
56+
puppetdb::master::config::enable_reports: true
57+
58+
CLI Reporting
59+
-------------
60+
61+
You can use the `PuppetDB API`_ to get node reporting using :program:`curl` or
62+
any other application that connect to a web endpoint and process :term:`JSON`
63+
output.
64+
65+
SIMP provides a tool called :program:`puppetlast` that can read from both the
66+
`PuppetDB API`_ as well as the locally stored :term:`YAML` reports for a simple
67+
view of your environment.
68+
69+
The :program:`puppetlast` command is provided by the :package:`simp-utils` RPM.
70+
71+
.. _Puppetboard: https://github.com/voxpupuli/puppetboard
72+
.. _PuppetDB API: https://puppet.com/docs/puppetdb/latest/api/index.html

docs/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ def setup(app):
211211
r'^https?:\/\/.*\.tar(\..{2,3})?$',
212212
# links that the resolver has trouble with
213213
r'^https?:\/\/groups\.google\.com\/forum\/.+',
214-
r'^https?:\/\/travis-ci\.org(/.*|$)',
215214
r'^https?:\/\/bundler\.io/rationale\.html',
216215
# Puppet redirects everything everywhere
217216
r'^https?:\/\/.*\.puppet\.com(/.*|$)',

docs/contributors_guide/Contribution_Procedure.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ done to maintain a more legible commit history on `master`.
4646
'`Allow edits from maintainers`_' checkbox checked to let a team member add
4747
commits to your pull request.
4848

49-
#. `TravisCI`_ will run the spec tests for the branch and a member of the SIMP
49+
#. GitHub Actions will run the spec tests for the branch and a member of the SIMP
5050
team will `review`_ your submission. You should receive emails from GitHub as
5151
code reviews progress.
5252

@@ -203,7 +203,6 @@ the future.
203203
.. _JIRA issues can be referenced: https://support.atlassian.com/bitbucket-cloud/docs/use-smart-commits/
204204
.. _SIMP JIRA: https://simp-project.atlassian.net
205205
.. _Squash and Merge: https://github.blog/2016-04-01-squash-your-commits/
206-
.. _TravisCI: https://travis-ci.com/simp
207206
.. _feature branch: https://www.atlassian.com/git/tutorials/comparing-workflows#feature-branch-workflow
208207
.. _pull request: https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
209208
.. _review: https://docs.github.com/en/github/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/reviewing-proposed-changes-in-a-pull-request

docs/contributors_guide/Resources.rst

-5
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@ Useful Resources
33

44
* `GitHub Guides`_
55

6-
* `TravisCI`_
7-
86
* SIMP Project Status Links
97

108
* `Open Changes`_
119
* `Changes that need attention`_
12-
* `Failing Changes in TravisCI`_
1310
* `Pending Changes`_
1411
* `Merged Changes`_
1512

1613
.. _GitHub Guides: https://guides.github.com
17-
.. _TravisCI: https://travis-ci.com/simp
1814
.. _Open Changes: https://github.com/search?utf8=%E2%9C%93&q=org%3Asimp+is%3Apr+is%3Aopen&type=Issues&ref=searchresults
1915
.. _Changes that need attention: https://github.com/search?utf8=%E2%9C%93&q=org%3Asimp+is%3Apr+is%3Aopen+comments%3A%3E1&type=Issues&ref=searchresults
20-
.. _Failing Changes in TravisCI: https://github.com/search?utf8=%E2%9C%93&q=org%3Asimp+is%3Apr+is%3Amerged+status%3Afailure&type=Issues&ref=searchresults
2116
.. _Pending Changes: https://github.com/search?utf8=%E2%9C%93&q=org%3Asimp+is%3Apr+is%3Aopen+status%3Apending&type=Issues&ref=searchresults
2217
.. _Merged Changes: https://github.com/search?utf8=%E2%9C%93&q=org%3Asimp+is%3Apr+is%3Amerged&type=Issues&ref=searchresults

docs/contributors_guide/maintenance/iso_release_procedures/Pre_Release_Checklist.rst

+6-7
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,18 @@ This check verifies that the ``simp-core`` unit and acceptance test
160160
have succeeded.
161161

162162
To verify that the ``simp-core`` unit tests have succeeded, examine
163-
the test results in `TravisCI`_.
163+
the test results in GitHub Actions.
164164

165-
* Navigate to the project's TravisCI results page and verify the
165+
* Navigate to the project's GitHub Actions results page and verify the
166166
tests for the development branch to be tagged and released have
167167
passed. For our project, this page is
168-
https://travis-ci.com/simp/simp-core/branches
168+
https://github.com/simp/simp-core/actions
169169

170170
.. IMPORTANT::
171171

172-
If the tests in TravisCI fail, you **must** fix them before
173-
proceeding. The automated release procedures will only
174-
succeed, if the unit tests succeed in TravisCI.
172+
If the tests in GitHub Actions fail, you **must** fix them before
173+
proceeding. The automated release procedures will only succeed, if the
174+
tests succeed.
175175

176176
To verify that the ``simp-core`` acceptance tests have succeeded
177177

@@ -502,5 +502,4 @@ tests pass`_.
502502

503503
.. _Docker: https://www.docker.com
504504
.. _GitHub: https://github.com
505-
.. _TravisCI: https://travis-ci.com
506505
.. _simp-packer: https://github.com/simp/simp-packer

docs/contributors_guide/maintenance/iso_release_procedures/Release_simp_core_GitHub_and_Deploy_PuppetForge.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Release ``simp-core`` to GitHub and PuppetForge
22
===============================================
33

4-
``simp-core`` is configured to automatically create a `GitHub`_
5-
release and push the (meta-module) release to `PuppetForge`_, when an
6-
annotated tag is created for the `GitHub`_ project **and** the
7-
`TravisCI`_ tests for the annotated tag push succeed.
4+
``simp-core`` is configured to automatically create a `GitHub`_ release and push
5+
the (meta-module) release to `PuppetForge`_, when an annotated tag is created
6+
for the `GitHub`_ project **and** the GitHub Actions tests for the annotated tag push
7+
succeed.
88

99
To create the releases from an annotated tag:
1010

@@ -26,17 +26,17 @@ To create the releases from an annotated tag:
2626
git tag -a 6.0.2 -F Changelog.rst --cleanup--whitespace
2727
git push origin 6.0.2
2828
29-
#. Verify `TravisCI`_ completes successfully
29+
#. Verify GitHub Actions tests complete successfully
3030

3131
.. IMPORTANT::
32-
If any of the required TravisCI builds for the project fail, for
33-
example due to intermittent connectivity problems with `GitHub`_,
34-
you can complete the release process by manually restarting the
35-
failed build on the Travis page for that build.
32+
33+
If any of the required GitHub Actions builds for the project fail, for example
34+
due to intermittent connectivity problems, you can complete the release
35+
process by manually restarting the failed build on the GitHub Actions page
36+
for that build.
3637

3738
#. Verify release exists on `GitHub`_. This release will have been
3839
created by ``simp-auto``.
3940

4041
.. _GitHub: https://github.com
4142
.. _PuppetForge: https://forge.puppet.com
42-
.. _TravisCI: https://travis-ci.com

docs/contributors_guide/maintenance/other_iso_related_project_release_procedures/Pre_Release_Checklist.rst

+5-8
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,17 @@ This check verifies that an RPM can be generated for this module from
108108
Verify unit tests pass
109109
----------------------
110110

111-
This check verifies that the component's unit tests have succeeded
112-
in `TravisCI`_:
111+
This check verifies that the component's unit tests have succeeded.
113112

114-
* Navigate to the project's `TravisCI`_ results page and verify the
113+
* Navigate to the project's GitHub Actions results page and verify the
115114
tests for the development branch to be tagged and released have
116115
passed. For our project, this page is
117-
https://travis-ci.com/simp/simp-adapter/branches
116+
https://github.com/simp/simp-adapter/actions
118117

119118
.. IMPORTANT::
120119

121-
If the tests in TravisCI fail, you **must** fix them before
122-
proceeding. The automated release procedures will only
123-
succeed, if the unit tests succeed in TravisCI.
120+
If the tests are failing, you **must** fix them before proceeding. The
121+
automated release procedures will only succeed if the unit tests succeed.
124122

125123
Verify acceptance tests pass
126124
----------------------------
@@ -243,4 +241,3 @@ CentOS 7:
243241
.. _GitHub: https://github.com
244242
.. _simp-packer: https://github.com/simp/simp-packer
245243
.. _`RPM spec file template`: https://raw.githubusercontent.com/simp/rubygem-simp-rake-helpers/master/lib/simp/rake/helpers/assets/rpm_spec/simpdefault.spec
246-
.. _TravisCI: https://travis-ci.com

docs/contributors_guide/maintenance/other_iso_related_project_release_procedures/Release_GitHub.rst

+1-13
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ Automated Release Steps
1313

1414
All SIMP ISO-related project are configured to automatically create a
1515
`GitHub`_ release, when an annotated tag is created for the `GitHub`_
16-
project **and** the `TravisCI`_ tests for the annotated tag push succeed.
17-
Each project contains a deploy step for the ``releases`` provider
18-
in its ``.travis.yml`` file.
16+
project.
1917

2018
To create the a release from an annotated tag:
2119

@@ -47,15 +45,6 @@ To create the a release from an annotated tag:
4745
git tag -a 4.0.4 -F foo
4846
git push origin 4.0.4
4947

50-
#. Verify `TravisCI`_ completes successfully
51-
52-
.. IMPORTANT::
53-
If any of the required TravisCI builds for the project fail, for
54-
example due to intermittent connectivity problems with `GitHub`_,
55-
you can complete the release process by manually restarting the
56-
failed build on the Travis page for that build. However, if the
57-
build fails due to deploy key issues skip to the next section.
58-
5948
#. Verify release exists on `GitHub`_. This release will have been created by
6049
``simp-auto``.
6150

@@ -76,4 +65,3 @@ correct the issue:
7665
notes.
7766

7867
.. _GitHub: https://github.com
79-
.. _TravisCI: https://travis-ci.com

docs/contributors_guide/maintenance/ruby_gem_release_procedures/Pre_Release_Checklist.rst

+6-7
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,18 @@ Verify unit tests pass
8080
----------------------
8181

8282
This check verifies that the component's unit tests have succeeded
83-
in `TravisCI`_:
83+
in GitHub Actions.
8484

85-
* Navigate to the project's `TravisCI`_ results page and verify the
85+
* Navigate to the project's GitHub Actions results page and verify the
8686
tests for the development branch to be tagged and released have
8787
passed. For our project, this page is
88-
https://travis-ci.com/simp/rubygem-simp-rake-helpers/branches
88+
https://github.com/simp/rubygem-simp-rake-helpers/actions
8989

9090
.. IMPORTANT::
9191

92-
If the tests in TravisCI fail, you **must** fix them before
93-
proceeding. The automated release procedures will only
94-
succeed, if the unit tests succeed in TravisCI.
92+
If the tests in GitHub Actions fail, you **must** fix them before
93+
proceeding. The automated release procedures will only succeed, if the
94+
unit tests succeed.
9595

9696
Verify acceptance tests pass
9797
----------------------------
@@ -155,4 +155,3 @@ and test tasks.
155155
156156
.. _GitHub: https://github.com
157157
.. _RubyGems.org: https://rubygems.org/
158-
.. _TravisCI: https://travis-ci.com

docs/contributors_guide/maintenance/ruby_gem_release_procedures/Release_GitHub_Deploy_RubyGems_org.rst

+7-9
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Common Release Steps
1212
Most of the SIMP Ruby gems are configured to automatically create a
1313
`GitHub`_ release and push the release to `RubyGems.org`_, when an
1414
annotated tag is created for the `GitHub`_ project **and** the
15-
`TravisCI`_ tests for the annotated tag push succeed.
15+
GitHub Actions tests for the annotated tag push succeed.
1616

1717
To create the releases from an annotated tag:
1818

@@ -50,20 +50,19 @@ To create the releases from an annotated tag:
5050
For markdown-style changelogs, you will need to specify
5151
``--cleanup=whitespace`` so comment headers are not stripped.
5252

53-
#. Verify `TravisCI`_ completes successfully
53+
#. Verify GitHub Actions completes successfully
5454

5555
.. IMPORTANT::
5656

57-
If any of the required TravisCI builds for the project fail, for
58-
example due to intermittent connectivity problems with `GitHub`_,
59-
you can complete the release process by manually restarting the
60-
failed build on the Travis page for that build.
57+
If any of the required GitHub Actions builds for the project fail, for
58+
example due to intermittent connectivity problems, you can complete the
59+
release process by manually restarting the failed build on the GitHub
60+
Actions page for that build.
6161

6262
Automated Release Steps
6363
-----------------------
6464

65-
This section applies to gems that have a ``deploy`` stage with a ``releases``
66-
provider in their ``.travis.yml`` file.
65+
This section applies to gems that have a ``release`` GitHub Action configured.
6766

6867
#. Verify release exists on `GitHub`_. This release will have been created by
6968
``simp-auto``.
@@ -100,4 +99,3 @@ To create the releases from an annotated tag:
10099

101100
.. _GitHub: https://github.com
102101
.. _RubyGems.org: https://rubygems.org/
103-
.. _TravisCI: https://travis-ci.com

docs/contributors_guide/maintenance/simp_puppet_module_release_procedures/Pre_Release_Checklist.rst

+6-7
Original file line numberDiff line numberDiff line change
@@ -130,18 +130,18 @@ Verify unit tests pass
130130
----------------------
131131

132132
This check verifies that the component's unit tests have succeeded
133-
in `TravisCI`_:
133+
in GitHub Actions.
134134

135-
* Navigate to the project's TravisCI results page and verify the
135+
* Navigate to the project's GitHub Actions results page and verify the
136136
tests for the development branch to be tagged and released have
137137
passed. For our project, this page is
138-
https://travis-ci.com/simp/pupmod-simp-iptables/branches
138+
https://github.com/simp/pupmod-simp-iptables/actions
139139

140140
.. IMPORTANT::
141141

142-
If the tests in TravisCI fail, you **must** fix them before
143-
proceeding. The automated release procedures will only
144-
succeed, if the unit tests succeed in TravisCI.
142+
If the tests in GitHub Actions fail, you **must** fix them before proceeding.
143+
The automated release procedures will only succeed, if the unit tests
144+
succeed.
145145

146146
Verify acceptance tests pass
147147
----------------------------
@@ -364,4 +364,3 @@ development environment:
364364
.. _PuppetForge: https://forge.puppet.com
365365
.. _simp-packer: https://github.com/simp/simp-packer
366366
.. _`RPM spec file template`: https://raw.githubusercontent.com/simp/rubygem-simp-rake-helpers/master/lib/simp/rake/helpers/assets/rpm_spec/simpdefault.spec
367-
.. _TravisCI: https://travis-ci.com

0 commit comments

Comments
 (0)