adds the config_template to tempest

The change modifies the tempest template tasks such that it's now
using the config_template action plugin. This change will make so that
config files can be dynamically updated, by a deployer, at run time,
without requiring the need to modify the in tree templates or defaults.

Partially implements: blueprint tunable-openstack-configuration

Change-Id: I3b664fcec14bf01f9916ced0b8595a57d4873f79
This commit is contained in:
Kevin Carter 2015-09-14 18:27:48 -05:00 committed by Jesse Pretorius
parent 88c948c455
commit be9c5d50f4
2 changed files with 20 additions and 1 deletions

View File

@ -107,3 +107,6 @@ tempest_images:
tempest_enable_instance_password: True
tempest_pip_instructions: "--isolated"
## Tunable overrides
tempest_tempest_conf_overrides: {}

View File

@ -78,6 +78,23 @@
- tempest-image
- tempest-image-unarchive
- name: Copy tempest config
config_template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: "root"
group: "root"
mode: "0644"
config_overrides: "{{ item.config_overrides }}"
config_type: "{{ item.config_type }}"
with_items:
- src: "tempest.conf.j2"
dest: "{{ tempest_git_dest }}/etc/tempest.conf"
config_overrides: "{{ tempest_tempest_conf_overrides }}"
config_type: "ini"
tags:
- tempest-config
- name: Generate tempest Config
template:
src: "{{ item.src }}"
@ -86,7 +103,6 @@
group: "root"
mode: "{{ item.mode|default('0644') }}"
with_items:
- { src: "tempest.conf.j2", dest: "{{ tempest_git_dest }}/etc/tempest.conf" }
- { src: openstack_tempest_gate.sh.j2, dest: /opt/openstack_tempest_gate.sh, mode: "0755" }
tags:
- tempest-config