help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: is this a bug in cfengine?


From: Wheeler, John
Subject: RE: is this a bug in cfengine?
Date: Fri, 17 Dec 2004 15:34:30 -0600

Any is a supper set of the class "first" therefore the first non-any
class will fire this action? Not sure. You could see if the behavior is
consistent with all actions (like copy).

If the above is true, then during parse time, Cfengine simply adds the
elements of any non-activated actions to the first activated one.


I've seen this before, but now I add an "activator" class to all my
actions to enforce order. I suspect this will be resolved if you add a
class to the shellcommand action missing a class in the action sequence.

wheeler

> -----Original Message-----
> From: help-cfengine-bounces+jwheeler=eb.com@gnu.org
[mailto:help-cfengine-
> bounces+jwheeler=eb.com@gnu.org] On Behalf Of Nielsen, Steve
> Sent: Friday, December 17, 2004 3:09 PM
> To: Cfengine Mailing List Help
> Subject: is this a bug in cfengine?
> 
> I am trying to control the order in which my actions runs. (See script
> below):
> 
> Things run in this order:
> -------------------------
> 1. shellcommands.first and shellcommands run together
> 2. then shellcommands.second runs
> 3. then shellcommands.last runs
> 
> I would expect things to run in the order I specifiy.
> 
> Why does cfengine behave in this way? Is this a bug?
> 
> I am running cfengine 2.1.11 on redhat 7.3
> 
> Thanks,
> Steve
> 
> ====================
> Here is the script:
> ===================
> 
> #!/var/cfengine/bin/cfagent -qvKf
> 
> control:
>     actionsequence = (
>         shellcommands.first
>         shellcommands.second
>         shellcommands.last
>         shellcommands
>     )
> 
> shellcommands:
>     first::
>         "/bin/echo FIRST"
>     second::
>         "/bin/echo SECOND"
>     any::
>         "/bin/echo ANY"
> 
>     last::
>         "/bin/echo LAST"
> 
> ====================================
> Here is the output (just a snippet):
> ====================================
> 
> *********************************************************************
>  Main Tree Sched: shellcommands.first pass 1 @ Fri Dec 17 15:00:57
2004
> *********************************************************************
> 
> 
> (Non privileged user...)
> 
> 
>                   New temporary class additions
>                   --------( Pass 1 )-------
>                              first
> cfengine:: Executing script /bin/echo
FIRST...(timeout=0,uid=-1,gid=-1)
> (Setting umask to 77)
> cfengine::/bin/echo FIRST: FIRST
> cfengine:: Finished script /bin/echo FIRST
> cfengine:: Executing script /bin/echo ANY...(timeout=0,uid=-1,gid=-1)
> (Setting umask to 77)
> cfengine::/bin/echo ANY: ANY
> cfengine:: Finished script /bin/echo ANY
> 
> *********************************************************************
>  Main Tree Sched: shellcommands.second pass 1 @ Fri Dec 17 15:00:57
2004
> *********************************************************************
> 
> 
> (Non privileged user...)
> 
> 
>                   New temporary class additions
>                   --------( Pass 1 )-------
>                              second
> cfengine:: Executing script /bin/echo
SECOND...(timeout=0,uid=-1,gid=-1)
> (Setting umask to 77)
> cfengine::/bin/echo SECON: SECOND
> cfengine:: Finished script /bin/echo SECOND
> 
> *********************************************************************
>  Main Tree Sched: shellcommands.last pass 1 @ Fri Dec 17 15:00:57 2004
> *********************************************************************
> 
> 
> (Non privileged user...)
> 
> 
>                   New temporary class additions
>                   --------( Pass 1 )-------
>                              last
> cfengine:: Executing script /bin/echo LAST...(timeout=0,uid=-1,gid=-1)
> (Setting umask to 77)
> cfengine::/bin/echo LAST: LAST
> cfengine:: Finished script /bin/echo LAST
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

[Prev in Thread] Current Thread [Next in Thread]