Skip to content

Commit

Permalink
Merge "Added tempest_tempestconf_profile_ specific vars"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Mar 30, 2020
2 parents 220cf3c + 1003438 commit f5e2828
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ tempest_tempestconf_profile:
os-cloud: "{{ tempest_cloud_name }}"
out: "{{ tempest_workspace }}/etc/tempest.conf"
network-id: "{{ tempest_neutron_public_network_id }}"
overrides: "{{ tempest_tempest_conf_overrides | default('omit') }}"
overrides: "{{ tempest_tempestconf_profile_overrides }}"
tempest_tempestconf_profile_extras: {}
tempest_tempestconf_profile_overrides: "{{ tempest_tempest_conf_overrides }}"

# Stackviz tarball url
stackviz_pip_install_args: "{{ pip_install_options | default('--isolated') }}"
Expand Down
14 changes: 14 additions & 0 deletions releasenotes/notes/tempestconf-extras-38a14ff705161872.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
features:
- |
Adds new variable `tempest_tempestconf_profile_extras` which allows
to extend `tempest_tempestconf_profile` dictionary without need to
override all existing keys. `tempest_tempestconf_profile_extras` has
presedence over `tempest_tempestconf_profile`. For example, it may be
used to define extra image or it's format.
fixes:
- |
Usage of tempest_tempest_conf_overrides, where it could have 2 different
formats. one for config_template and another one for tempestconf.profile
Now for tempestconf.profile overrides `tempest_tempestconf_profile_overrides`
variable should be used.
2 changes: 1 addition & 1 deletion tasks/tempestconf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- name: Override tempestconf profile
copy:
content: "{{ tempest_tempestconf_profile | to_nice_yaml }}"
content: "{{ tempest_tempestconf_profile | combine(tempest_tempestconf_profile_extras) | to_nice_yaml }}"
dest: "{{ tempest_workspace }}/etc/profile.yaml"

- name: Executing python-tempestconf
Expand Down

0 comments on commit f5e2828

Please sign in to comment.