You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Chris Lalancette <cl...@redhat.com> on 2010/08/05 21:57:16 UTC
[PATCH 02/10] Properly define hardware profiles for gogrid.
Signed-off-by: Chris Lalancette <cl...@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
Re: [PATCH 02/10] Properly define hardware profiles for gogrid.
Posted by Michal Fojtik <mf...@redhat.com>.
On 05/08/10 15:57 -0400, Chris Lalancette wrote:
>Signed-off-by: Chris Lalancette <cl...@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
Perfect! ACK.
--
--------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com, +420 532 294 4307
Ruby / Ruby On Rails Developer
Deltacloud API: http://deltacloud.org
--------------------------------------------------------