rightscale-cookbooks / ephemeral_lvm

Configures available ephemeral devices on a cloud server

Home Page:http://community.opscode.com/cookbooks/ephemeral_lvm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make the testing fake recipe idempotent

douglaswth opened this issue · comments

Something like:

execute 'dd if=/dev/zero of=/vfile0 bs=1024 count=65536' do
  creates '/vfile0'
end

execute 'losetup /dev/loop0 /vfile0' do
  not_if 'losetup -j /vfile0 | grep /dev/loop0'
end

With the loop over multiple devices, of course.

are you looking to remove the helper library

@rshade It looks like Lopaka already fixed this a while back in the helper library; you guys are the maintainers of this now so it's up to you!

@douglaswth thank you sir, closing then .