Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2466

make it easy to access environment variables inside karaf configuration properties files - via ${ENV.foo}?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • karaf
    • None

    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

      # define a property based on an env var
      foo = ${ENV.nameOfEnvVar} 
      
      # e.g. here's the host name
      host = ${ENV.HOSTNAME} 
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              jstrachan James Strachan
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: