bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cfservd.conf : 'import' is not allowed.


From: Hugo Gayosso
Subject: cfservd.conf : 'import' is not allowed.
Date: 04 Jun 2002 14:02:19 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


- From the docs (Node: Cfservd and cfrun reference):

   You can use `groups' and `import' in both files to break up files
   into convenient modules and to import common resources, such as
   lists of groups.

   [....]

      import:
     
        FILES TO IMPORT

   [....]


My own cfservd.conf:

control:
   [....]

import:        <== This is line # 36 in cfservd.conf
   cf.groups

admit:
   [....]


When I run cfservd, I get the following error message.

# /usr/local/sbin/cfservd -f /var/cfengine/inputs/cfservd.conf
cf:linux131.powertrain.mpg.gm.com:/var/cfengine/inputs/cfservd.conf:36: This 
belongs in cfengine.conf 
linux131.powertrain.mpg.gm.com::Execution terminated after parsing due to 
errors in program


Running cfservd with '--debug' gives:

[....]

RIGHTBRACK
cf:linux131.powertrain.mpg.gm.com:/var/cfengine/inputs/cfservd.conf:36: This 
belongs in cfengine.conf 

   [BEGIN InstallPending Control Defintions:
   END InstallPending]


BEGIN NEW ACTION Import files:
HandleItem(cf.groups)
simple item = (cf.groups)
>>Installing item (cf.groups) in the import list
Appending [cf.groups]
   (No actions pending in Import files:)

[....]


If I check closely the output using '--debug', it seems that in fact
it imports 'cf.groups':

[....]

BEGIN NEW ACTION Groups:
HandleId(AllServers) in action Groups:
Done with HandleId()
LEFTBRACK
HandleItem(linux008)
simple item = (linux008)
Handling group item (linux008) in group (AllServers), type=0
No match of class

[....]

RIGHTBRACK
HandleId(noNIS) in action Groups:
Done with HandleId()
LEFTBRACK
HandleItem(linux115)
simple item = (linux115)
Handling group item (linux115) in group (noNIS), type=0
No match of class

[....]

and so on.


Also, I think it is just a typo in the error message, it refers to
'cfengine.conf' instead of 'cfagent.conf'.


Greetings,
- -- 
Hugo Gayosso
Support the Free Software Movement!
GNU Project <http://www.gnu.org>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8/QCrx2JZtTN6co8RAuzKAKCSGytaJ14nPQk3y7jU4HhXs2J8XgCdHanN
Ca3HFk1RqWgbWeRTxFWB/sw=
=Uu7x
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]