No, you can't specify class hierarchies like your pseudocode example.

However, you do have access to boolean operators. I think you might
want something like:

specialclass.(foo|bar)::

See:

http://www.cfengine.org/manuals/cf2-Reference.html#Cfengine-classes

On Thu, Dec 10, 2009 at 11:37 AM, Martin A. Brooks
<mar...@antibodymx.net> wrote:
> Hi
>
> In cfengine2 is there a way I can compound classes with "paragraphs"?
> For example
>
>
> shellcommands:
>
>     specialclass1::
>         {
>               foo::
>
>               bar::
>         }
>
>
>
> The idea is so I don't have to write reams of  "specialclass1.foo::
> specialclass1.bar::"  and so on. I have dozens of things to do with
> specialclass1 and 2 and 3 and so on.  Hope that makes sense :)
>
>
> Regards
>
>
> Martin.
>
>
>
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine
>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to