On 19/06/2009, at 6:35 PM, snacktime wrote: Finally got around to opening up a couple of tickets on this. I need to finish up some of the specs, I've been concentrating more on real world testing. Should be ready to have it pulled in this weekend. Here are a couple quick examples of what it can do so far.
Filesystem provider:
file_system "/dev/sde" do device '/dev/sde' partitions [ {'number' => 2, 'type' => 'raid', 'start' => '5GB', 'end' => '10GB'}, {'number' => 1, 'type' => 'raid', 'start' => '0GB', 'end' => '5GB'} ]
Since 'partitions' is an array - why not drop the number option of the hash and assume order?
That's my only comment at this stage - the rest looks /awesome/. What platforms does this work on? How's the test coverage? Any cucumber integration tests? =D action :partition end
file_system "/dev/sde1" do device '/dev/sde1' fs_type 'ext3' options '-j' action :create_fs end
file_system "/dev/sde1" do device '/dev/sde1' fs_type 'ext3' action :resize_fs end
Raid provider:
raid '/dev/md0' do device '/dev/md0' raid_devices ['/dev/sdc','/dev/sdd'] level 1 action [:create,:assemble] end
file_system "/dev/md0" do device '/dev/md0' fs_type 'ext3' options '-j' action :create_fs end
raid '/dev/md0' do device '/dev/md0' action [:stop] end
On Sat, Jun 13, 2009 at 8:05 PM, snacktime <snacktime@gmail.com> wrote:
On Sat, Jun 13, 2009 at 7:20 PM, Arjuna Christensen <aj@opscode.com> wrote: On Fri, Jun 12, 2009 at 11:41 PM, Ezra Zygmuntowicz <ez@engineyard.com> wrote:
The way I'm working with EBS volumes on ec2 where I want it to format the EBS device as ext3 *only* if it is not already formatted and then ensure it is properly mounted, I also want to grow the filesystem to fill the space in case i booted from a snapshot with a larger volume size.
Thanks Ezra that gave me another tool I didn't know about, e2label.
So I've got most of a filesystem resource/provider working. It can create linux/raid/lvm partitions with parted, and then add ext3/xfs filesystems to linux partitions if specified.
Awesome! Have you opened up a ticket for this improvement? Providing the specs are sufficient, I'm happy to include this is 0.7.2 =D
Regards,
AJ
I'll open a ticket for this and the raid resource, I *should* be able to get them mostly finished this weekend. I have specs for the resources, need to get some for the providers.
Chris
-- AJ Christensen, Software Engineer
|