Fix for multiple usages of cinder::backend::iscsi in Debian

Change-Id: Ia09d731ee92ed3ebcb81eb1976964f49958c10fc
This commit is contained in:
Radu Pantiru 2019-07-16 13:51:02 +01:00
parent fabf8c9f33
commit fbb53b020a
1 changed files with 5 additions and 3 deletions

View File

@ -89,9 +89,11 @@ define cinder::backend::iscsi (
# NOTE(mnaser): Cinder requires /usr/sbin/thin_check to create volumes which
# does not get installed with Cinder (see LP#1615134).
if $::osfamily == 'Debian' {
package { 'thin-provisioning-tools':
ensure => present,
tag => 'cinder-support-package',
if ! defined(Package['thin-provisioning-tools']) {
package { 'thin-provisioning-tools':
ensure => present,
tag => 'cinder-support-package',
}
}
}