Mkfs and mdadm support

On Fri, Jun 19, 2009 at 1:06 AM, Arjuna Christensenaj@opscode.com wrote:

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

I'm totally terrified of integration testing partitioning, just as a
statement of fact. :slight_smile:

Adam

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-4759 E: adam@opscode.com

Hello all,

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'}
]
action :partition
end

Having the partition stuff on the file_system resource doesn't seem
right. On the other hand where should it go? To a Partition resource
like this?

partition '/dev/sda' do
device '/dev/sda'
table 'GPT'
partitions [ {:type => :raid , :start => '0GB' , :end => '5GB'} ,
{:type => :raid , :start => '5GB' , :end => '10GB'} ]
action :partition
end

partition '/dev/sda' do
device '/dev/sda'
table 'MBR'
partitions [ {:type => 82 , :start => '0GB' , :end => '2GB'} ,
{:type => 83 , :start => '2GB' , :end => :remaining} ]
action :partition
end

The file_system and raid resource are looking pretty good.

Best Regards

Miguel Cabeça

On Wed, Jun 24, 2009 at 4:22 AM, Miguel Cabeçacabeca@ist.utl.pt wrote:

Having the partition stuff on the file_system resource doesn't seem right.
On the other hand where should it go? To a Partition resource like this?

partition '/dev/sda' do
device '/dev/sda'
table 'GPT'
partitions [ {:type => :raid , :start => '0GB' , :end => '5GB'} , {:type =>
:raid , :start => '5GB' , :end => '10GB'} ]
action :partition
end

+1 for a Partition resource.

I'm very excited about these providers - that is super cool functionality.

Adam

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-4759 E: adam@opscode.com

Just an update on these. I was kind of under the weather this last weekend.
I wrapped up most of the spec tests last night, so almost there.

On Wed, Jun 24, 2009 at 9:38 AM, Adam Jacob adam@opscode.com wrote:

On Wed, Jun 24, 2009 at 4:22 AM, Miguel Cabeçacabeca@ist.utl.pt wrote:

Having the partition stuff on the file_system resource doesn't seem
right.
On the other hand where should it go? To a Partition resource like this?

partition '/dev/sda' do
device '/dev/sda'
table 'GPT'
partitions [ {:type => :raid , :start => '0GB' , :end => '5GB'} , {:type
=>
:raid , :start => '5GB' , :end => '10GB'} ]
action :partition
end

+1 for a Partition resource.

I'm very excited about these providers - that is super cool functionality.

Adam

--
Opscode, Inc.
Adam Jacob, CTO
T: (206) 508-4759 E: adam@opscode.com