On 05/13/2011 10:23 AM, Ian Main wrote:
This patch adds a migration to include condor cloud type for using
condor cloud with aeolus.
Signed-off-by: Ian Main<imain(a)redhat.com>
---
...0110511120000_add_condor_cloud_provider_type.rb | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
create mode 100644 src/db/migrate/20110511120000_add_condor_cloud_provider_type.rb
diff --git a/src/db/migrate/20110511120000_add_condor_cloud_provider_type.rb
b/src/db/migrate/20110511120000_add_condor_cloud_provider_type.rb
new file mode 100644
index 0000000..8d8dab5
--- /dev/null
+++ b/src/db/migrate/20110511120000_add_condor_cloud_provider_type.rb
@@ -0,0 +1,13 @@
+class AddCondorCloudProviderType< ActiveRecord::Migration
+
+ def self.up
+ provider_type = ProviderType.create!(:name => "CondorCloud",
:build_supported => true, :codename =>"condorcloud")
+ CredentialDefinition.create!(:name => 'username', :label => 'API
Key', :input_type => 'text', :provider_type_id => provider_type.id)
+ CredentialDefinition.create!(:name => 'password', :label =>
'Secret', :input_type => 'password', :provider_type_id =>
provider_type.id)
+
+ end
+
+ def self.down
+ end
+
+end
Ack.