incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lalancette <clala...@redhat.com>
Subject [PATCH 02/10] Properly define hardware profiles for gogrid.
Date Thu, 05 Aug 2010 19:57:16 GMT
Signed-off-by: Chris Lalancette <clalance@redhat.com>
---
 .../lib/deltacloud/drivers/gogrid/gogrid_driver.rb |   30 ++++++++++++++++++--
 1 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb b/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
index 28cba15..31fa74b 100644
--- a/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
+++ b/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
@@ -37,10 +37,34 @@ class GogridDriver < Deltacloud::BaseDriver
 
   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
-- 
1.7.2


Mime
View raw message