You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ab...@apache.org on 2014/05/12 20:02:01 UTC
git commit: JCLOUDS-564. Add ephemeral disks for m3.xlarge and
m3.2xlarge sizes
Repository: jclouds
Updated Branches:
refs/heads/master 2bbbe1d5f -> d15144cf4
JCLOUDS-564. Add ephemeral disks for m3.xlarge and m3.2xlarge sizes
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/d15144cf
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/d15144cf
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/d15144cf
Branch: refs/heads/master
Commit: d15144cf45c731f8c016c8b3d3b75c45f60fa0d8
Parents: 2bbbe1d
Author: Andrew Bayer <an...@gmail.com>
Authored: Mon May 12 09:20:01 2014 -0700
Committer: Andrew Bayer <an...@gmail.com>
Committed: Mon May 12 09:20:01 2014 -0700
----------------------------------------------------------------------
.../ec2/compute/domain/EC2HardwareBuilder.java | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/jclouds/blob/d15144cf/apis/ec2/src/main/java/org/jclouds/ec2/compute/domain/EC2HardwareBuilder.java
----------------------------------------------------------------------
diff --git a/apis/ec2/src/main/java/org/jclouds/ec2/compute/domain/EC2HardwareBuilder.java b/apis/ec2/src/main/java/org/jclouds/ec2/compute/domain/EC2HardwareBuilder.java
index 23b4cce..2263924 100644
--- a/apis/ec2/src/main/java/org/jclouds/ec2/compute/domain/EC2HardwareBuilder.java
+++ b/apis/ec2/src/main/java/org/jclouds/ec2/compute/domain/EC2HardwareBuilder.java
@@ -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()));
}
/**