Re: How is define the maisl subject of cf_execd

"'Lars Erik Wik' via help-cfengine" <[email protected]> Wed, 22 Oct 2025 01:27:41 -0700 (PDT)
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
------=_Part_632_1025220436.1761121661593
Content-Type: multipart/alternative; 
	boundary="----=_Part_633_1160842758.1761121661593"

------=_Part_633_1160842758.1761121661593
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi there,

I would recommend configuring it in augments (i.e.,=20
/var/cfengine/masterfiles/def.json). Something like:

```
{
  "vars": {
    "control_executor_mailsubject": "My value defined from augments"
    }
}
```

For more info, please=20
checkout https://docs.cfengine.com/docs/3.24/reference-promise-types-vars.h=
tml#augments

The variable could also be modified in=20
/var/cfengine/masterfiles/controls/cf_execd.cf. But I would advice against=
=20
modifying default policy, as it makes upgrades much harder.

On Wednesday, October 22, 2025 at 2:52:27=E2=80=AFAM UTC+2 [email protected]=
nam.mx=20
wrote:

> Dear all
> I've installed a cfengine on some server. Every change of state i'll=20
> received an email, thank's to postfix configured by.... cfenegine :-)
>
> What i'v notice is that the subject of the email is of the following=20
> format:
>
> [hostname / ip address]
>
> Which IP address is using cf_execd? That's seems to be the first one=20
> present as a result of "ip a" command (excluding localhost, that's normal=
).
>
> It is a way to define some proper subjet? The documentation about that is=
=20
> not very clear to me:
>
> body executor control { mailsubject =3D> "CFEngine report ($(sys.fqhost))=
";=20
> }
>
> Where should i write this code?
>
> Thank's a lot!
>

--=20
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 e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/help-cfengi=
ne/d76b1203-c7f7-402f-977c-08f82bcc8b6dn%40googlegroups.com.

------=_Part_633_1160842758.1761121661593
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi there,<div><br /></div><div>I would recommend configuring it in augments=
 (i.e., /var/cfengine/masterfiles/def.json). Something like:<br /><br />```=
<br />{<br />=C2=A0 "vars": {<br />=C2=A0 =C2=A0 "control_executor_mailsubj=
ect": "My value defined from augments"<br />=C2=A0 =C2=A0 }<br />}<br />```=
</div><div><br /></div><div>For more info, please checkout=C2=A0https://doc=
s.cfengine.com/docs/3.24/reference-promise-types-vars.html#augments</div><d=
iv><br /></div><div>The variable could also be modified in /var/cfengine/ma=
sterfiles/controls/cf_execd.cf. But I would advice against modifying defaul=
t policy, as it makes upgrades much harder.<br /><br /></div><div class=3D"=
gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">On Wednesday, October 2=
2, 2025 at 2:52:27=E2=80=AFAM UTC+2 [email protected] wrote:<br/></div=
><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-lef=
t: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Dear all</div><di=
v>I&#39;ve installed a cfengine on some server. Every change of state i&#39=
;ll received an email, thank&#39;s to postfix configured by.... cfenegine :=
-)</div><div><br></div><div>What i&#39;v notice is that the subject of the =
email is of the following format:</div><div><br></div><div>[hostname / ip a=
ddress]</div><div><br></div><div>Which IP address is using cf_execd? That&#=
39;s seems to be the first one present as a result of &quot;ip a&quot; comm=
and (excluding localhost, that&#39;s normal).</div><div><br></div><div>It i=
s a way to define some proper subjet? The documentation about that is not v=
ery clear to me:</div><div><br></div><div><span><span><span>body</span><spa=
n> </span><span>executor</span><span> </span><span>control</span><span></sp=
an>
<span>{</span><span></span>
<span>    </span><span>mailsubject</span><span> </span><span>=3D&gt;</span>=
 <span>&quot;CFEngine report (</span><span>$(sys.fqhost)</span><span>)&quot=
;</span><span>;</span><span></span>
<span>}</span></span></span></div><div><span><span><span><br></span></span>=
</span></div><div><span><span><span>Where should i write this code?</span><=
/span></span></div><div><span><span><span><br></span></span></span></div><d=
iv><span><span><span>Thank&#39;s a lot!</span></span></span></div></blockqu=
ote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;help-cfengine&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">help-=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
help-cfengine/d76b1203-c7f7-402f-977c-08f82bcc8b6dn%40googlegroups.com?utm_=
medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/help-=
cfengine/d76b1203-c7f7-402f-977c-08f82bcc8b6dn%40googlegroups.com</a>.<br /=
>

------=_Part_633_1160842758.1761121661593--

------=_Part_632_1025220436.1761121661593--