[Pacemaker] How can I use logical AND of two expressions?
Dejan Muhamedagic
dejanmm at fastmail.fm
Mon Dec 7 11:43:46 UTC 2009
Hi,
On Thu, Dec 03, 2009 at 06:59:32PM -0700, hj lee wrote:
> Hi,
>
> I want to use logical AND of two expresson in rule. For example, I want to
> create location constraint like this. Assume there is pingd and hostname.
>
> crm configure location my-test-location my-test-resource rule inf: pingd
> defined AND #uname eq hostname1
Try this:
crm configure location my-test-location my-test-resource rule inf: defined pingd and #uname eq hostname1
You can also get help and syntax for all commands (help location).
Thanks,
Dejan
> How can I do this?
>
> Thanks
> hj
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
More information about the Pacemaker
mailing list