-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added module to disable recommendations from the MPF
Ticket: ENT-11525 Changelog: Title
- Loading branch information
1 parent
23b4a0d
commit 09b0a68
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
The Masterfiles Policy Framework (MPF) emits recommendations for various settings given the context and role of a host. | ||
|
||
For example, when federated reporting is enabled on an Enterprise hub, there is a recommendation to install gnu-parallel. | ||
|
||
``` | ||
R: CFEngine recommends installing gnu parallel on federated reporting superhubs. | ||
``` | ||
|
||
These can be useful, but you may want to disable the functionality to quiet your policy runs. This module facilitates disabling all recommendations by defining `default:cfengine_recommendations_disabled`, it is equivalent to editing the augments file (`/var/cfengine/masterfiles/def.json`) to: | ||
|
||
```json | ||
{ | ||
"classes": { | ||
"default:cfengine_recommendations_disabled": { | ||
"class_expressions": [ "any::" ], | ||
"comment": "We disabled all recommendations emitted by the MPF to quiet policy output." | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"classes": { | ||
"default:cfengine_recommendations_disabled": { | ||
"class_expressions": [ "any::" ], | ||
"comment": "We disabled all recommendations emitted by the MPF to quiet policy output." | ||
} | ||
} | ||
} |