Re: Package promise had no package_method attribute
"'Nick Anderson' via help-cfengine" <[email protected]> Wed, 17 Jul 2024 14:46:30 -0500
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
Hey Beto,
You mentioned trying this ...
,----
| "control_executor_mailfilter_exclude": {
| "value": [ ".*no package_method attribute.*" ]
`----
That looks like Augments format to me. Specifically, it looks like the
newer format of the `variables' key. Is this in `def.json' or is it in
`host_specific.json' ? (ref
<https://docs.cfengine.com/docs/3.21/reference-language-concepts-augments.html#augments-files>)
If it's in `host_specific.json' then I think you will need to adjust
it to specify the `default' namespace and the `def' bundle scope like
this:
,----
| "default:def.control_executor_mailfilter_exclude": {
| "value": [ ".*no package_method attribute.*" ]
`----
Another thing to be sure of is that `cf-execd' has been re-started
since you changed that setting.
We see these messages in email and /var/cfengine/outputs.
If the mailfitler exclude is properly picked up you should not see
them in email, just in `/var/cfengine/outputs'.
We have inform => "true" in controls/cf_agent.cf
Generally I discourage that for unattended periodic executions,
especially combined with email it can create a lot of noise that mail
admins might not love (but depends very much on your scale, and how
many changes CFEngine is generally making).
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/87y15z4x9l.fsf%40northern.tech.