Added task to install apt packages idependent of the cinder-volume backend
Packages needed by cinder-volume, idependent of the backend, were installed only when using a LVM backend. This change adds a new task and variable for installing/declaring packages commonly used between different cinder-volume backends. Change-Id: Idd7fd6f8be710c106210ec5bdc3ecda1071fc913 Closes-Bug: #1580222
This commit is contained in:
parent
c94e35654d
commit
956683b908
@ -36,7 +36,19 @@
|
||||
delay: 2
|
||||
with_items: "{{ cinder_apt_packages }}"
|
||||
|
||||
- name: Install apt packages
|
||||
- name: Install apt packages common between different backends
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
state: latest
|
||||
register: install_packages
|
||||
until: install_packages|success
|
||||
retries: 5
|
||||
delay: 2
|
||||
with_items: "{{ cinder_volume_apt_packages }}"
|
||||
when:
|
||||
- inventory_hostname in groups['cinder_volume']
|
||||
|
||||
- name: Install apt packages for LVM backend
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
state: latest
|
||||
|
@ -27,8 +27,10 @@ cinder_apt_packages:
|
||||
- zlib1g
|
||||
- zlibc
|
||||
|
||||
cinder_volume_apt_packages:
|
||||
- qemu-utils
|
||||
|
||||
cinder_lvm_volume_apt_packages:
|
||||
- dmeventd
|
||||
- parted
|
||||
- qemu-utils
|
||||
- tgt
|
||||
|
Loading…
x
Reference in New Issue
Block a user