diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2020-07-07 13:05:33 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2020-09-21 12:10:57 +0000 |
| commit | 87730f8f7c02e5d295ccde2925c8b7b14e4ef693 (patch) | |
| tree | 74d47aa4a41d456b0725d088ff306e8bfe2bcd3e /docker/macros.j2 | |
| parent | 94c8465bd5f03514f3a6c14d70047a7469a15731 (diff) | |
| download | kolla-87730f8f7c02e5d295ccde2925c8b7b14e4ef693.tar.gz kolla-87730f8f7c02e5d295ccde2925c8b7b14e4ef693.zip | |
create 'add_binary_source_envs' macro and use it
There is small subset of images where we need to know which install_type
or install_metatype is used. So add them only there (and their
children).
Change-Id: Ib7d5e36b958d6c8daf2989df32e29fa24b46c62a
Implements: blueprint infra-images
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index 56dd1414a..7076e422c 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -80,3 +80,8 @@ RUN usermod --append --home {{ homedir }} --groups kolla {{ name }} \ {{ handle_repos(repos, 'disable') }} {% endmacro %} + +{% macro add_binary_source_envs() %} +ENV KOLLA_INSTALL_TYPE={{ install_type }} \ + KOLLA_INSTALL_METATYPE={{ install_metatype }} +{% endmacro %} |
