[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: using import and groups
From: |
Andrews, Martin |
Subject: |
RE: using import and groups |
Date: |
Tue, 3 Oct 2000 08:39:26 -0400 |
Michael,
My solution has been to only use classes in files imported after where they
were defined - so my cfengine.conf does not use any classes (or only ones
defined at start up). If you need to use a class, pull that code out to an
imported file. My cfengine.conf just sets a few base control settings and
then has a bunch of imports.
Using AddInstallable in cfengine.conf might also work?
Martin
> -----Original Message-----
> From: Michael Coffman [mailto:coffman@ftc.agilent.com]
> Sent: Saturday, September 30, 2000 2:27 AM
> To: help-cfengine@gnu.org
> Subject: using import and groups
>
>
>
> I am stuck trying to use import and groups as shown in the reference
> manual. I created a top level cfengine.conf file that
> imports cf.groups,
> then cf.main and several other files. In the cf.groups
> file I use a
> statement like.
>
> groups:
> WorkStations = ( +all_user )
>
> Where all_user is a netgroup entry containing all my user machines.
> The Workstation class is not seen as set when parsing cf.main. If I
> hardcode a machine name into the WorkStation definition of
> the cf.groups
> file, it works fine. If I move the groups statment that
> references NIS
> to the cf.main file, it works OK. It seems to have a problem
> propgating
> the NIS entry only.
>
> Any hints ??
>
> Sorry to ask so many questions of this list, but I have no
> other resources,
> and I am pushing pretty hard to get cfengine used here.
>
> BTW: Is there a version of cfengine that lest me define the
> Lock and Log
> directories in the conf file? I am using 1.5.4 and I have to
> hand edit the
> conf.h file to set these values.
>
> -MichaelC
> ------------------------------------------------------------------
> -- Life is lived forward but understood backward.
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
>