Pierre Cheynier created MESOS-7845:
--------------------------------------

             Summary: Substitute env vars in some parts of the TaskInfo.
                 Key: MESOS-7845
                 URL: https://issues.apache.org/jira/browse/MESOS-7845
             Project: Mesos
          Issue Type: Improvement
    Affects Versions: 1.2.0
            Reporter: Pierre Cheynier


In my case, it would be useful to *at least*, being able to substitute envvars 
from {{TaskInfo.\[ExecutorInfo\].CommandInfo.URI.string}} to real values 
provided by {{default_container_info}} for example.

So that configurations can be easily template-ized using agent-local 
informations.

Ex: if I do not rely on a DNS-based service discovery mechanism, I would like 
to my able to use something like
{noformat}
http://mirror-${DC}.mycompany.tld/artifact-${VERSION}.tgz
{noformat}
as an URI for my service.
Here I made the following assumptions:
* DC is provided in the {{--default_container_info}}
* VERSION is provided as an environment variable through 
{{TaskInfo.\[ExecutorInfo\].CommandInfo.Environment}}

For now, it's solved by having N versions of my config.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to