Hi there ,

the following line gives me errors although either way infact it seems to work 
as expected.
Whats the problem - how do I have to write it? Where is my error?

cf.groups contains the following:

groups:

    # this preparatory module sets groups from contents of hostlist.xml
    services = ( PrepModule("module:services", "$(host)") )


Output of cfagent -vqKn is:

Looking for an input file cf.groups
---------------------------------------------------------------------
Plug-in `module:services'
---------------------------------------------------------------------

Exec module [/var/cfengine/modules/module:services  buex-01-08]
Activated classes: unused_111
cf:cfengine:buex-01-08:/var/cfengine/inputs/cf.groups:17: Quoted scripts must 
begin with / for absolute path
cf:cfengine:buex-01-08:/var/cfengine/inputs/cf.groups:17: syntax error


Written like this:

    services = (PrepModule("module:services", $(host)))

it gives me:

  cf:cfengine:buex-01-08:/var/cfengine/inputs/cf.groups:17: Bracket mismatch, 
in [class=))], level = -2


Allright - if I add the spaces and quotes:

    services = ( PrepModule("module:services", "$(host)") )

I get:

    cf:cfengine:buex-01-08:/var/cfengine/inputs/cf.groups:17: Quoted scripts 
must begin with / for absolute path
    cf:cfengine:buex-01-08:/var/cfengine/inputs/cf.groups:17: syntax error

Written like this (spaces  - no quotes on variable) :

    services = ( PrepModule("module:services", $(host)) )

Results in:

cf:cfengine:buex-01-08:/var/cfengine/inputs/cf.groups:17: syntax error



Thank you very much in advance for helping me out ...

Best regards,

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

Reply via email to