Vasiliy,

if you are starting with Cfengine then whatever you do start with Cfengine 3!! 
It will
give you enormous benefits.

The way to do this is to make your "recipe" into what Cfengine calls a "bundle" 
and then
promise to use it as a method, inside a class-context that represents the role 
you want:

bundle agent something
{

methods:

  context_for_role::

    "myrolename" usebundle => MyRecipe(params...);

}

See
http://www.cfengine.org/pages/compare

In Cfengine you don't normally create roles that contain recipes, you create 
"bundles ==
recipes" than may refer to "classes == roles", which is more generally flexible.


Vasiliy G Tolstov wrote:
> Hello. I'm try to use cfengine2 after chef.
> 
> In chef i can create roles that contains recipes. When i'm apply role to
> server  all recipes is done on it.
> 
> How i can do something in cfengine2 ?
> 
> Thank You.
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to