[ 
https://issues.apache.org/jira/browse/KARAF-2466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

james strachan updated KARAF-2466:
----------------------------------

    Description: 
when using karaf in clouds & PaaS infrastructures like OpenShift, Docker, 
OpenStack et al; its common to use environment variables to pass in environment 
specific values; then keep a single disk image. It would be nice if there was 
an easy way to reference environment variables similar to the ${foo.bar} syntax 
for accessing system properties.

Maybe karaf should support some kind of environment variable expansion like 

{code}
# define a property based on an env var
foo = ${ENV.nameOfEnvVar} 

# e.g. here's the host name
host = ${ENV.HOSTNAME} 
{code}



  was:
when using karaf in clouds & PaaS infrastructures like OpenShift, Docker, 
OpenStack et al; its common to use environment variables to pass in environment 
specific values; then keep a single disk image. It would be nice if there was 
an easy way to reference environment variables similar to the ${foo.bar} syntax 
for accessing system properties.

Maybe karaf should support some kind of environment variable expansion like 
${ENV.nameOfEnvVar} such as ${ENV.HOSTNAME} to get the current host name on 
unix?


    
> make it easy to access environment variables inside karaf configuration 
> properties files
> ----------------------------------------------------------------------------------------
>
>                 Key: KARAF-2466
>                 URL: https://issues.apache.org/jira/browse/KARAF-2466
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: james strachan
>             Fix For: 2.4.0
>
>
> when using karaf in clouds & PaaS infrastructures like OpenShift, Docker, 
> OpenStack et al; its common to use environment variables to pass in 
> environment specific values; then keep a single disk image. It would be nice 
> if there was an easy way to reference environment variables similar to the 
> ${foo.bar} syntax for accessing system properties.
> Maybe karaf should support some kind of environment variable expansion like 
> {code}
> # define a property based on an env var
> foo = ${ENV.nameOfEnvVar} 
> # e.g. here's the host name
> host = ${ENV.HOSTNAME} 
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to