Forum: Cfengine Help
Subject: Re: Controlling Module Calls
Author: nima
Link to topic: https://cfengine.com/forum/read.php?3,18383,18401#msg-18401
Dang.
It seems to not work as expected; here is the relevant code:
bundle agent ReIndexOpenLDAP {
classes:
"ReIndexOpenLDAP"
expression => usemodule("ReIndexOpenLDAP", ""),
ifvarclass => canonify("!MODReIndexOpenLDAP")
;
reports:
MODReIndexOpenLDAP_Success::
"[ svc-openldap
]$(ansi.mod)ReIndexOpenLDAP($(ReIndexOpenLDAP.actions))$(ansi.reset)";
MODReIndexOpenLDAP_Errors::
"[ svc-openldap ]$(ansi.fail)ReIndexOpenLDAP FAILED:
$(ReIndexOpenLDAP.errors)$(ansi.reset)";
}
And MODReIndexOpenLDAP is defined by the module regardless of success or error:
teispes:/srv/sysconf# /var/lib/cfengine3/modules/ReIndexOpenLDAP
+MODReIndexOpenLDAP
+MODReIndexOpenLDAP_Success
+MODReIndexOpenLDAP
+MODReIndexOpenLDAP_Actions
=actions=stopped reindexed started
teispes:/srv/sysconf#
Any ideas?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine