From 283b747cf5058ccbcebb710f6b346c7196bd5a4d Mon Sep 17 00:00:00 2001 From: xiaodongwang Date: Wed, 3 Dec 2014 13:50:00 -0800 Subject: [PATCH] move parted package installation to outside Change-Id: Ibd22ee5832bfb2374f89702c1baafd8973f3b367 Closes-Bug: 1392131 --- chef/cookbooks/openstack-block-storage/recipes/volume.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/chef/cookbooks/openstack-block-storage/recipes/volume.rb b/chef/cookbooks/openstack-block-storage/recipes/volume.rb index 47c5672..9751256 100644 --- a/chef/cookbooks/openstack-block-storage/recipes/volume.rb +++ b/chef/cookbooks/openstack-block-storage/recipes/volume.rb @@ -28,6 +28,10 @@ end include_recipe 'openstack-block-storage::cinder-common' +package 'parted' do + action :install +end + platform_options = node['openstack']['block-storage']['platform'] platform_options['cinder_volume_packages'].each do |pkg| @@ -190,10 +194,6 @@ when 'cinder.volume.drivers.lvm.LVMISCSIDriver' action :upgrade end - package 'parted' do - action :install - end - openstack_block_storage_volume node['openstack']['block-storage']['volume']['disk'] do action :create_partition end