Allow custom elements by appending existing ELEMENTS_PATH var
Change-Id: I98f9f7c307d69bf6dc741508cd78a9fa94bc0c15 Story: 2008068
This commit is contained in:
parent
1f37c41413
commit
9a026a77b2
@ -132,9 +132,16 @@
|
||||
set_fact:
|
||||
dib_env_vars_final: "{{dib_env_vars_final | combine({'DIB_RELEASE':dib_os_release}) }}"
|
||||
when: dib_os_release is defined
|
||||
- name: "Build ELEMENTS_PATH variable from IPA builder element folder"
|
||||
set_fact:
|
||||
dib_elements_path: "{{ [ ipa_builder_git_folder + '/dib' ] }}"
|
||||
- name: "Add existing ELEMENTS_PATH value if present"
|
||||
set_fact:
|
||||
dib_elements_path: "{{ dib_elements_path + [dib_env_vars_final['ELEMENTS_PATH']] }}"
|
||||
when: "'ELEMENTS_PATH' in dib_env_vars_final"
|
||||
- name: "Set the ELEMENTS_PATH environment variable"
|
||||
set_fact:
|
||||
dib_env_vars_final: "{{dib_env_vars_final | combine({'ELEMENTS_PATH': ipa_builder_git_folder + '/dib'}) }}"
|
||||
dib_env_vars_final: "{{ dib_env_vars_final | combine({'ELEMENTS_PATH': dib_elements_path | join(':') }) }}"
|
||||
- name: "Set the DIB_BLOCK_DEVICE_CONFIG variable if set"
|
||||
set_fact:
|
||||
dib_env_vars_final: "{{ dib_env_vars_final | combine({'DIB_BLOCK_DEVICE_CONFIG': dib_partitioning}) }}"
|
||||
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fixes an issue where the bifrost-create-dib-image role
|
||||
overrides any existing ELEMENTS_PATH environment variable
|
||||
value. This fix appends any existing ELEMENTS_PATH
|
||||
value to the path set in the role.
|
Loading…
Reference in New Issue
Block a user