Variables
thierry thunot <[email protected]>
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <[email protected]> |
Hello everyone, I have a little problem with Cf. I want to use
parameterized variables to create classes more easily .. I tested this for
apache masi it is the philosophy that interests me to do this kind of test
bundle agent configuration_test_apache
{
vars:
"liste_module_apache" slist => {"rewrite","ssl","session"};
"test_module_${liste_module_apache}_apache" string =>
execresult("/usr/sbin/apache2ctl -M|grep ${liste_module_apache}","noshell");
classes:
"module_${liste_module_apache}_nok" expression =>
strcmp("${test_module_${liste_module_apache}_apache}","");
reports:
module_${liste_module_apache}_nok::
"MODULE APACHE ${liste_module_apache} pas présent";
}
Can you advise me on the best way to proceed?
Thank's !!! ;)
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/d61443b1-5174-4421-bc71-259201b350e3n%40googlegroups.com.