From 4689cace9d3aa67d24d740201f1cb4ab29d930d8 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Tue, 21 Nov 2017 09:35:49 +0000 Subject: xci: Use the dib pip-and-virtualenv element The element will ensure that we have a reasonable set of pip and virtualenv packages in place as well as pick the right python version for the distribution. We also make sure that we use python2 everywhere. Change-Id: I8a83af9acffbd8d6d583832956e1685100ec508a Signed-off-by: Markos Chandras --- bifrost/playbooks/opnfv-virtual.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bifrost/playbooks') diff --git a/bifrost/playbooks/opnfv-virtual.yaml b/bifrost/playbooks/opnfv-virtual.yaml index 3cba98b6..4e985db8 100644 --- a/bifrost/playbooks/opnfv-virtual.yaml +++ b/bifrost/playbooks/opnfv-virtual.yaml @@ -53,10 +53,12 @@ - role: bifrost-create-dib-image dib_imagetype: "qcow2" dib_imagename: "{{deploy_image}}" + dib_env_vars: + DIB_PYTHON_VERSION: 2 dib_os_element: "{{ lookup('env','DIB_OS_ELEMENT') }}" dib_os_release: "{{ lookup('env', 'DIB_OS_RELEASE') }}" extra_dib_elements: "{{ lookup('env', 'EXTRA_DIB_ELEMENTS') | default('') }}" - dib_elements: "vm enable-serial-console simple-init devuser growroot {{ extra_dib_elements }}" + dib_elements: "vm enable-serial-console simple-init devuser openssh-server growroot pip-and-virtualenv {{ extra_dib_elements }}" dib_packages: "{{ lookup('env', 'DIB_OS_PACKAGES') }}" dib_notmpfs: true when: create_image_via_dib | bool == true and transform_boot_image | bool == false -- cgit 1.2.3-korg