From ef4aaa783efa3fcd235a20417e1eb1986c845a26 Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Mon, 31 Aug 2020 11:39:02 -0500 Subject: [PATCH 1/2] Fixed some typo/syntax issues Ticket: none Changelog: none --- MPF.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MPF.md b/MPF.md index 9111ade3e7..d65bf9665e 100644 --- a/MPF.md +++ b/MPF.md @@ -326,7 +326,7 @@ This [augments file][Augments] will defines `trigger_upgrade` on hosts with IPv4 "trigger_upgrade": [ "ipv4_10_10_1", "ipv4_10_10_2", - "cfengine_3_10_(?!2$)\d+" + "cfengine_3_10_(?!2$)\\d+" ] } } @@ -402,7 +402,7 @@ This example illustrates enabling management of components on systemd hosts havi ```json { - "classes:" { + "classes": { "mpf_enable_cfengine_systemd_component_management": [ "redhat_8" ] } } @@ -1091,7 +1091,7 @@ For example: { "vars":{ "control_common_bundlesequence_end": [ "mybundle1", "mybundle2" ] - } + }, "inputs": [ "services/mybundles.cf" ] } From fdf20dde66287d853d6b3c7388491a52fc12cb6e Mon Sep 17 00:00:00 2001 From: Craig Comstock Date: Tue, 1 Sep 2020 13:35:59 -0500 Subject: [PATCH 2/2] Added docs for Federated Reporting Duplicate Host Handling and small re-org Ticket: ENT-6035 Changelog: title --- .../enterprise/federation/federation.cf | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/cfe_internal/enterprise/federation/federation.cf b/cfe_internal/enterprise/federation/federation.cf index e4d130002b..7a9381854d 100644 --- a/cfe_internal/enterprise/federation/federation.cf +++ b/cfe_internal/enterprise/federation/federation.cf @@ -1,3 +1,18 @@ +# @brief This policy file handles Federated Reporting setup and ongoing operations. +# +# There are several augments which can be used to tune the behavior of this policy: +# +# - `cfengine_mp_fr_dependencies_auto_install` class + +# If defined then all non-shipped dependencies needed for Federated Reporting will be installed. +# +# ```json +# { +# "classes": { +# "cfengine_mp_fr_dependencies_auto_install": [ "any::" ] +# } +# } +# ``` body file control { namespace => "cfengine_enterprise_federation"; @@ -307,6 +322,21 @@ bundle agent clean_when_off bundle agent federation_manage_files # @brief Manage files, directories and permissions in $(cfengine_enterprise_federation:config.federation_dir) +# +# By default the import process will not prohibit the inclusion of duplicate hostkey data from feeders. +# By defining the `cfengine_mp_fr_handle_duplicate_hostkeys` class in augments a step will be performed +# during import which will find the which feeder's data is most recent for each duplicate hostkey and +# use that data. Duplicate hostkey data will be moved to a `dup` schema for analysis. +# +# This class only applies to superhubs. +# +# ```json +# { +# "classes": { +# "cfengine_mp_fr_handle_duplicate_hostkeys": [ "any::" ] +# } +# } +# ``` { vars: