Update OVB jobs to use the 'ipmi' driver before Queens

Since the testenv scripts do not have access to the release, update
the resulting instackenv.json with sed.

Change-Id: Iae5088e0d8a8a594c9b3a2d625a0daf829ba7b4b
This commit is contained in:
Dmitry Tantsur 2018-04-27 15:50:14 +02:00 committed by Ronelle Landy
parent 25e516152a
commit 6012516cab
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@
sudo cp {{tripleo_root}}/tripleo-ci/test-environments/overcloud-cacert.pem /etc/pki/ca-trust/source/anchors/;
sudo update-ca-trust extract;
cp -f {{ lookup('env', 'TE_DATAFILE') }} ~/instackenv.json;
- name: Correct the driver for newer releases
# TODO(dtantsur): remove when Pike is not supported
command: sed -i s/pxe_ipmitool/ipmi/ ~/instackenv.json
when: release not in ['newton', 'ocata', 'pike']
- name: Create eth2.conf file
blockinfile:
dest: "{{ working_dir }}/eth2.conf"