On 08-06-10 12:00, Vasiliy G Tolstov wrote:
> В Втр, 08/06/2010 в 11:47 +0200, Bas van der Vlies пишет:
>
>>
>> I think i miss understood the question. I thought you want to define
>> classes via your own script/module.  I am using this in my common bundle:
>> {{{
>> classes:
>>           "GOT_INIT" expression =>  usemodule("init_sara","");
>>
>>
>> and in this module i have the following simple test:
>> #!/bin/sh
>>
>> if [ -f /etc/lisa ]
>> then
>>      echo +LISA
>> fi
>>
>
> I want to define classes in module, but i need for example environment
> variable to get know^ which os linux i'm use, and do specific task to
> get information.
>

I just tested it and the environment variable CFALLCLASSES is not available 
when i use usemodule in a common bundle.  I think you can only use this 
variable in cfagent bundle and then use it the commands promise.

Maybe a cfengine developer has some useful comments about it.



-- 
********************************************************************
*  Bas van der Vlies                    e-mail: b...@sara.nl       *
*  SARA - Academic Computing Services   Amsterdam, The Netherlands *
********************************************************************
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to