JCLOUDS-564. Add ephemeral disks for m3.xlarge and m3.2xlarge sizes

This commit is contained in:
Andrew Bayer 2014-05-12 09:20:01 -07:00
parent 2bbbe1d5fd
commit d15144cf45
1 changed files with 12 additions and 2 deletions

View File

@ -335,7 +335,12 @@ public class EC2HardwareBuilder extends HardwareBuilder {
*/
public static EC2HardwareBuilder m3_xlarge() {
return new EC2HardwareBuilder(InstanceType.M3_XLARGE).ram(15360)
.processors(ImmutableList.of(new Processor(4.0, 3.25))).rootDeviceType(RootDeviceType.EBS).is64Bit(true);
.processors(ImmutableList.of(new Processor(4.0, 3.25)))
.is64Bit(true)
.volumes(ImmutableList.<Volume> of(
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
new VolumeBuilder().type(LOCAL).size(40.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
new VolumeBuilder().type(LOCAL).size(40.0f).device("/dev/sdc").bootDevice(false).durable(false).build()));
}
/**
@ -343,7 +348,12 @@ public class EC2HardwareBuilder extends HardwareBuilder {
*/
public static EC2HardwareBuilder m3_2xlarge() {
return new EC2HardwareBuilder(InstanceType.M3_2XLARGE).ram(30720)
.processors(ImmutableList.of(new Processor(8.0, 3.25))).rootDeviceType(RootDeviceType.EBS).is64Bit(true);
.processors(ImmutableList.of(new Processor(8.0, 3.25)))
.is64Bit(true)
.volumes(ImmutableList.<Volume> of(
new VolumeBuilder().type(LOCAL).size(10.0f).device("/dev/sda1").bootDevice(true).durable(false).build(),
new VolumeBuilder().type(LOCAL).size(80.0f).device("/dev/sdb").bootDevice(false).durable(false).build(),
new VolumeBuilder().type(LOCAL).size(80.0f).device("/dev/sdc").bootDevice(false).durable(false).build()));
}
/**