Thanks for the quick feedback - Okay, I can do a LOT with that. It's much
more Cfenginy and scalable.
What a difference.
Many thanks!
On Fri, May 20, 2011 at 2:21 PM, Mark Burgess wrote:
>
> First, I would alsways use isexecutable("/path/file") over a shell command
> test -x, then try someth
First, I would alsways use isexecutable("/path/file") over a shell
command test -x, then try something like this:
vars:
freebsd::
"check_service" string => "/usr/local/libexec/tenant/check_mysql";
linux::
"check_service" string => "/usr/local/lib/tenant/check_mysql";
classes:
"
Hey Folks,
One of our engineers wrote a promise a while back to create a class in
promises.cf given the outcome of an expression...
classes:
"CheckMysql" expression => returnszero("/bin/test -x
/usr/local/libexec/tenant/check_tenant -a ! -x
/usr/local/libexec/tenant/check_mysql","useshell");
Th