Forum: CFEngine Help
Subject: How to skip complete "bundle agent" execution depending of a class?
Author: jordy
Link to topic: https://cfengine.com/forum/read.php?3,22837,22837#msg-22837

Hi!

We have 6 kind of different servers and I'm developing a complex set of 
promises for them. Some promises are common but some other are specific to the 
type of server. I know I can use classes to filter the "execution" of promises. 
But in my case, I have complete "bundle agent" that apply or don't apply to 
some kind of servers (=to some classes).

I know I can put this:


bundle agent app_myapp {

files::
   myapp_server::

       "XXXXX"

processes:
   myapp_server::
       "XXXXX"

commands:
   myapp_server::
      "XXXXXX"

}




but is this the best way to do it?. There isn't a way like this?:


bundle agent app_myapp {

   !myapp_server::
       exit;

files::
       "XXXXX"

processes:
       "XXXXX"

commands:
      "XXXXXX"

}



the question is: How to skip complete "bundle agent" execution depending of a 
class?

Thank you.


Jorge

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to