Running Promiser w/o class set

8 views
Skip to first unread message

Christian Linden

unread,
Apr 29, 2016, 8:02:09 AM4/29/16
to help-cfengine
Hi,

important here is:
1. that /opt/OV/bin/ovcoreid -create -force is executed:
2. I DON'T see NOcoreID

Apr 29 13:54:41 HSLinTac4454ea1 [14980]: CFEngine(agent)  Executing 'no timeout' ... '/opt/OV/bin/ovcoreid -create -force'
Apr 29 13:54:41 HSLinTac4454ea1 [14980]: CFEngine(agent)  Q: "...n/ovcoreid -cre": NOTE:    OvCoreId was changed from '09e7bb02-a1d5-7588-0723-aec721463faf' to  Q: "...n/ovcoreid -cre":          'ce9fb9ee-a1d6-7588-0237-b516f76a3b73'.
Apr 29 13:54:41 HSLinTac4454ea1 [14980]: CFEngine(agent)  Last 2 quoted lines were generated by promiser '/opt/OV/bin/ovcoreid -create -force'
Apr 29 13:54:41 HSLinTac4454ea1 [14980]: CFEngine(agent)  Completed execution of '/opt/OV/bin/ovcoreid -create -force'
Apr 29 13:54:41 HSLinTac4454ea1 [14980]: CFEngine(agent)  R: I DON'T see NOcoreID.


But the promise looks like that:
reports:
                NOcoreID::
                 "I see NOcoreID.";
                !NOcoreID::
                 "I DON'T see NOcoreID.";

        commands:
          Zielserver|am_policy_hub.NOcoreID::
                "/opt/OV/bin/ovcoreid -create -force"
                  classes => classes_generic(coreID_set);

How can the command be run if the condition NOcoreID is definetly NOT set?

Thanks!
Chris

Aleksey Tsalolikhin

unread,
Apr 29, 2016, 9:52:55 AM4/29/16
to Christian Linden, help-cfengine
Hi Chris,

At first glance though it looks like the command would be run if Zielserver class is set -- is it?

Can you post a runnable self-contained example, please?

Best,
-at

--
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 help-cfengin...@googlegroups.com.
To post to this group, send email to help-c...@googlegroups.com.
Visit this group at https://groups.google.com/group/help-cfengine.
For more options, visit https://groups.google.com/d/optout.



--
Aleksey Tsalolikhin
CFEngine Training & Consulting

Christian Linden

unread,
Apr 29, 2016, 11:08:10 AM4/29/16
to help-cfengine, lindo...@gmail.com
Hi Aleksey,

everything is good, I'm the donkey.. but I saw it by writing, hence it helped =)

Thank you!
Best,
Chris
Reply all
Reply to author
Forward
0 new messages