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 bundle before > other actions are performed (like methods)? >
Must these classes be GLOBAL defined? If yes then you must define them in a common bundle. In a common bundle you can only use: vars classes reports I am using usemodule() function to define global classes. regards -- ******************************************************************** * 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