Re: best way to define additional classes from module

2010-06-08 Thread Nicolas Charles
On 08/06/2010 12:49, Vasiliy G Tolstov wrote: > В Втр, 08/06/2010 в 12:35 +0200, Bas van der Vlies пишет: > > >> 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 a

Re: best way to define additional classes from module

2010-06-08 Thread Vasiliy G Tolstov
В Втр, 08/06/2010 в 12:35 +0200, Bas van der Vlies пишет: > 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 cfengi

Re: best way to define additional classes from module

2010-06-08 Thread Bas van der Vlies
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

Re: best way to define additional classes from module

2010-06-08 Thread Seva Gluschenko
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 neces

Re: best way to define additional classes from module

2010-06-08 Thread Vasiliy G Tolstov
В Втр, 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",""); > > > a

Re: best way to define additional classes from module

2010-06-08 Thread Bas van der Vlies
On 08-06-10 10:59, Vasiliy G Tolstov wrote: > В Втр, 08/06/2010 в 10:39 +0200, Bas van der Vlies пишет: >> On 08-06-10 09:38, Vasiliy G Tolstov wrote: >>> Hello. I need to query current running system for installed services and >>> modules and want to define classes like have_mysql or have_python,

Re: best way to define additional classes from module

2010-06-08 Thread Vasiliy G Tolstov
В Втр, 08/06/2010 в 10:39 +0200, Bas van der Vlies пишет: > On 08-06-10 09:38, Vasiliy G Tolstov wrote: > > Hello. I need to query current running system for installed services and > > modules and want to define classes like have_mysql or have_python, if > > the specific service or package installe

Re: best way to define additional classes from module

2010-06-08 Thread Bas van der Vlies
On 08-06-10 09:38, Vasiliy G Tolstov wrote: > Hello. I need to query current running system for installed services and > modules and want to define classes like have_mysql or have_python, if > the specific service or package installed. > > What is the best way to run only once this module in the bu

best way to define additional classes from module

2010-06-08 Thread Vasiliy G Tolstov
Hello. I need to query current running system for installed services and modules and want to define classes like have_mysql or have_python, if the specific service or package installed. What is the best way to run only once this module in the bundle before other actions are performed (like methods