Hi,

On Fri, Aug 03, 2012 at 10:55:44AM -0400, Darin Perusich wrote:
> Hello All,
> 
> Is it possible to set/pass an environment variable so a stonith device
> will inherit it, specifically external/vcenter in this case? The issue
> I'm running into is the vcenter I'm connecting to is using self-signed
> certificates, which I get around by setting the environment variable
> PERL_LWP_SSL_VERIFY_HOSTNAME=0, but the processes do not inherit this
> variable when the machines are rebooted.

The configuration of the stonith agent is passed via environment
variables. So, you can just add this to the resource config as
another parameter. The crm shell will puke because the parameter
is not advertised in the meta-data, but I think that you can
enforce saving it.

Do I need to mention that this is a kludge :)

Probably better to set this somewhere in the system environment
which gets inherited by all processes. I suppose that there's
such a thing with every distribution.

Thanks,

Dejan

> I know I can hack VICommon.pm and add
> "$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;" but that's unclean and
> something I really don't want to do. I've started looking at modifying
> the vcenter module to add this param but that's more of a long term
> solution and doesn't address my immediate needs.
> 
> I'm running on OpenSUSE 12.1 and PERL_LWP_SSL_VERIFY_HOSTNAME=0 is
> being passed into the openais init script, which start corosync, by
> way of /etc/sysconfig/pacemaker but that doesn't matter.
> 
> Thanks!
> 
> --
> Later,
> Darin
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to