This is what I have done. Thx.

On Fri, Aug 24, 2012 at 8:21 PM, Scott England-Sullivan <[email protected]
> wrote:

> Hi Charles,
>
> Kind of a hack but I believe you would have to pass the ENV in as a
> command line property using something like
> -Dopenshift.internal.ip=$OPENSHIFT_INTERNAL_IP.  Adding this to the
> /bin/karaf shell script and then set the following in the
> org.ops4j.pax.web.cfg: 
> org.ops4j.pax.web.listening.addresses=${openshift.internal.ip}.
>
> I just verified that this will do what you are looking for.
>
> Best Regards,
> Scott ES
>
> On Fri, Aug 24, 2012 at 2:07 AM, Charles Moulliard <[email protected]>wrote:
>
>> Hi,
>>
>> Karaf is deployed on a remote Unix machine where I need to get the
>> following variable :  $OPENSHIFT_INTERNAL_IP which corresponds to this value
>>
>> [fabric-fuse.rhcloud.com fabric]\> printenv | grep OPENSHIFT_INTERNAL
>> OPENSHIFT_INTERNAL_IP=127.6.51.129
>>
>> This variable has been added in the file org.ops4j.pax.web.cfg -->
>> org.ops4j.pax.web.listening.addresses=$OPENSHIFT_INTERNAL_IP
>>
>> but when Karaf boots, this value is not retrieved
>>
>> config:list
>>
>> karaf@root> config:list | grep org.ops4j.pax.web
>> Pid:            org.ops4j.pax.web
>> BundleLocation: mvn:org.ops4j.pax.web/pax-web-runtime/1.0.10
>>    service.pid = org.ops4j.pax.web
>>    felix.fileinstall.filename =
>> file:/var/lib/stickshift/2ee23a78e9664b8593ebbc77e16aac38/app-root/runtime/fabric/etc/org.ops4j.pax.web.cfg
>>    org.ops4j.pax.web.listening.addresses = $OPENSHIFT_INTERNAL_IP
>>
>> Is there a trick to resolve this enviroment variable ?
>>
>> Regards,
>> --
>> Charles Moulliard
>> Apache Committer / Sr. Pr. Consultant at FuseSource.com
>> Twitter : @cmoulliard
>> Blog : http://cmoulliard.blogspot.com
>>
>>
>>
>
>
> --
> --
> Scott England-Sullivan
> ----------------------------------
> FuseSource
> Web:     http://www.fusesource.com
> Blog:     http://sully6768.blogspot.com
> Twitter: sully6768
>
>


-- 
Charles Moulliard
Apache Committer / Sr. Pr. Consultant at FuseSource.com
Twitter : @cmoulliard
Blog : http://cmoulliard.blogspot.com

Reply via email to