incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r983025 - /incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
Date Fri, 06 Aug 2010 15:29:00 GMT
Author: mfojtik
Date: Fri Aug  6 15:28:59 2010
New Revision: 983025

URL: http://svn.apache.org/viewvc?rev=983025&view=rev
Log:
Properly define hardware profiles for gogrid.

Signed-off-by: Chris Lalancette <clalance@redhat.com>

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb?rev=983025&r1=983024&r2=983025&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb Fri Aug
 6 15:28:59 2010
@@ -37,10 +37,34 @@ class GogridDriver < Deltacloud::BaseDri
 
   feature :instances, :authentication_password
 
-  define_hardware_profile 'server' do
+  define_hardware_profile '512MB' do
+    cpu            0.5
+    memory         512
+    storage        30
+  end
+
+  define_hardware_profile '1GB' do
+    cpu            1
+    memory         1
+    storage        60
+  end
+
+  define_hardware_profile '2GB' do
     cpu            2
-    memory         [512, 1024, 2048, 4096, 8192]
-    storage        10
+    memory         2
+    storage        120
+  end
+
+  define_hardware_profile '4GB' do
+    cpu            4
+    memory         4
+    storage        240
+  end
+
+  define_hardware_profile '8GB' do
+    cpu            8
+    memory         8
+    storage        480
   end
 
   def supported_collections



Mime
View raw message