Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

environment variables and stonith

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


darin at darins

Aug 3, 2012, 7:55 AM

Post #1 of 2 (142 views)
Permalink
environment variables and stonith

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.

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
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


dejanmm at fastmail

Aug 8, 2012, 7:32 AM

Post #2 of 2 (128 views)
Permalink
Re: environment variables and stonith [In reply to]

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
> Linux-HA [at] lists
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
Linux-HA [at] lists
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.