Forum: Cfengine Help
Subject: Defining classes based on running processes
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,20666,20666#msg-20666

I have several hundred machines managed by CFengine. 

I would like to define a class based on certain running processes so that we 
can take action on those servers. 

Let s say I have a database process:


dbserver 31230 17967  0 Feb12 ?        00:01:34 dbserver --name SGP_BASE_METALS


This may run on 15% of my server base, but can run on any of them. Is there a 
way I can have CFengine define dbserver_SG_BASE_METALS as a class to that I can 
use this in a promise? 

like:


files:

    dbserver_SG_BASE_METALS::
        "/some/file"
            comment =>  "Do some action";


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

Reply via email to