control_common_bundlesequence_end .. a bug??

"H. Harun" <[email protected]> Mon, 8 Sep 2025 16:31:14 -0700 (PDT)
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
------=_Part_369586_807388269.1757374274226
Content-Type: multipart/alternative; 
	boundary="----=_Part_369587_2120418402.1757374274226"

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

Hello,
I am using cfengine 3.24.2
I have a bundle called end_always that I would like to run after my autorun=
=20
bundles.

This is how I declare it in def.json
{
  "inputs": [ "services/end_always.cf" ],
  "variables":
  {
    "default:def.control_common_bundlesequence_end": {
      "value": [ "end_always" ]
    }
  },
  "classes": {
    "services_autorun": [ "any::" ]
  }
}

However, bundle end_always seems to run 2 times (before and after autorun).
cfagent -v -K > /tmp/cf.txt

 verbose: Using bundlesequence =3D>=20
 {"inventory_control","inventory_control","inventory_any","inventory_autoru=
n","inventory_linux","inventory_lsb","inventory_debian","inventory_os","def=
","cfengine_enterprise_hub_ha","end_always","services_autorun","autorun","c=
fe_internal_management","mpf_main","cfengine_enterprise_hub_ha","end_always=
"}


The only way to run end_always once at the end is to declare an empty=20
bundle in control_common_bundlesequence_classification.


in inputs/controls/def.cf
      "tbse" data =3D> mergedata( "def.control_common_bundlesequence_end" )=
;
       "tbse" data =3D> mergedata(=20
"def.control_common_bundlesequence_classification" );



A bug???





--=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/8462edc6-5325-453c-9292-d172dac87e1bn%40googlegroups.com.

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

<div><div>Hello,<br />I am using cfengine 3.24.2<br />I have a bundle calle=
d end_always that I would like to run after my autorun bundles.<br /><br />=
This is how I declare it in def.json<br />{<br />=C2=A0 "inputs": [ "servic=
es/end_always.cf" ],<br />=C2=A0 "variables":<br />=C2=A0 {<br />=C2=A0 =C2=
=A0 "default:def.control_common_bundlesequence_end": {<br />=C2=A0 =C2=A0 =
=C2=A0 "value": [ "end_always" ]<br />=C2=A0 =C2=A0 }<br />=C2=A0 },<br />=
=C2=A0 "classes": {<br />=C2=A0 =C2=A0 "services_autorun": [ "any::" ]<br /=
>=C2=A0 }<br />}<br /><br />However, bundle end_always seems to run 2 times=
 (before and after autorun).<br />cfagent -v -K &gt; /tmp/cf.txt<br /><br /=
>=C2=A0verbose: Using bundlesequence =3D&gt; =C2=A0{"inventory_control","in=
ventory_control","inventory_any","inventory_autorun","inventory_linux","inv=
entory_lsb","inventory_debian","inventory_os","def","cfengine_enterprise_hu=
b_ha","end_always","services_autorun","autorun","cfe_internal_management","=
mpf_main","cfengine_enterprise_hub_ha","end_always"}<br /><br /><br />The o=
nly way to run end_always once at the end is to declare an empty bundle in =
control_common_bundlesequence_classification.<br /><br /><br />in inputs/co=
ntrols/def.cf<br />=C2=A0 =C2=A0 =C2=A0 "tbse" data =3D&gt; mergedata( "def=
.control_common_bundlesequence_end" );<br />=C2=A0 =C2=A0 =C2=A0 =C2=A0"tbs=
e" data =3D&gt; mergedata( "def.control_common_bundlesequence_classificatio=
n" );<br /><br /><br /><br />A bug???<br /><br /><br /><br /><br /><br /></=
div></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/8462edc6-5325-453c-9292-d172dac87e1bn%40googlegroups.com?utm_=
medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/help-=
cfengine/8462edc6-5325-453c-9292-d172dac87e1bn%40googlegroups.com</a>.<br /=
>

------=_Part_369587_2120418402.1757374274226--

------=_Part_369586_807388269.1757374274226--