Vasiliy, Using modules, you don't need any specific environment variables, since everything can be determined right from the module. In Perl, there are number of hardcoded variables describing the system. In shell, various uname calls together with /etc/issue content may provide you with the necessary information.
2010/6/8 Vasiliy G Tolstov <v.tols...@selfip.ru>: > В Втр, 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. > > -- > Vasiliy G Tolstov <v.tols...@selfip.ru> > Selfip.Ru > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > -- SY, Seva Gluschenko. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine