2011-01-03 16:34:08 -05:00
|
|
|
def compute_providers
|
|
|
|
{
|
2011-06-16 19:28:54 -04:00
|
|
|
:aws => {
|
2011-05-13 16:43:12 -04:00
|
|
|
:server_attributes => {},
|
2011-01-03 16:34:08 -05:00
|
|
|
:mocked => true
|
|
|
|
},
|
2011-06-16 19:28:54 -04:00
|
|
|
:bluebox => {
|
2011-02-23 18:00:56 -05:00
|
|
|
:server_attributes => {
|
2012-02-16 21:43:25 -05:00
|
|
|
:flavor_id => '94fd37a7-2606-47f7-84d5-9000deda52ae', # Block 1GB Virtual Server
|
|
|
|
:image_id => 'a8f05200-7638-47d1-8282-2474ef57c4c3', # Scientific Linux 6
|
|
|
|
:location_id => '37c2bd9a-3e81-46c9-b6e2-db44a25cc675', # Seattle, WA
|
|
|
|
:password => 'chunkybacon'
|
2011-02-23 18:00:56 -05:00
|
|
|
},
|
|
|
|
:mocked => false
|
|
|
|
},
|
2011-06-16 19:28:54 -04:00
|
|
|
:brightbox => {
|
2011-01-03 16:34:08 -05:00
|
|
|
:server_attributes => {
|
2012-08-15 07:01:56 -04:00
|
|
|
:image_id => Brightbox::Compute::TestSupport.image_id
|
2011-01-03 16:34:08 -05:00
|
|
|
},
|
|
|
|
:mocked => false
|
|
|
|
},
|
2012-11-27 19:57:16 -05:00
|
|
|
:ecloud => {
|
2012-05-28 16:58:52 -04:00
|
|
|
:server_attributes => {
|
2012-11-27 19:57:16 -05:00
|
|
|
:name => "eugene",
|
|
|
|
:row => "eugene1",
|
|
|
|
:group => "eugene-104",
|
|
|
|
:catalog_network_name => "bridged",
|
|
|
|
:description => "blarg",
|
|
|
|
:operating_system => {
|
|
|
|
:name => "Red Hat Enterprise Linux 5 (64-bit)",
|
|
|
|
:href => "/cloudapi/ecloud/operatingsystems/rhel5_64guest/computepools/963",
|
|
|
|
},
|
|
|
|
}.tap do |hash|
|
|
|
|
[:template_href, :network_uri, :environment_name].each do |k|
|
|
|
|
key = "ecloud_#{k}".to_sym
|
|
|
|
if Fog.credentials[key]
|
|
|
|
hash[k]= Fog.credentials[key]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end,
|
|
|
|
:mocked => true,
|
2012-05-28 16:58:52 -04:00
|
|
|
},
|
2012-05-08 13:01:13 -04:00
|
|
|
:cloudstack => {
|
|
|
|
:provider_attributes => {
|
|
|
|
:cloudstack_host => 'http://host.foo'
|
|
|
|
},
|
2012-05-22 19:52:17 -04:00
|
|
|
:server_attributes => {}.tap do |hash|
|
2012-07-02 07:36:39 -04:00
|
|
|
[:zone_id, :network_ids, :template_id, :service_offering_id].each do |k|
|
2012-08-16 12:43:07 -04:00
|
|
|
key = "cloudstack_#{k}".to_sym
|
|
|
|
if Fog.credentials[key]
|
|
|
|
hash[k]= Fog.credentials[key]
|
|
|
|
end
|
2012-05-22 19:52:17 -04:00
|
|
|
end
|
|
|
|
end,
|
|
|
|
:volume_attributes => {:name => "somevolume"}.tap do |hash|
|
|
|
|
[:zone_id, :disk_offering_id].each do |k|
|
2012-08-16 12:43:07 -04:00
|
|
|
key = "cloudstack_#{k}".to_sym
|
|
|
|
if Fog.credentials[key]
|
|
|
|
hash[k]= Fog.credentials[key]
|
|
|
|
end
|
2012-05-22 19:52:17 -04:00
|
|
|
end
|
|
|
|
end,
|
2012-07-18 19:00:32 -04:00
|
|
|
:security_group_attributes => {:name => "cloudstack.sg.#{Time.now.to_i}"},
|
2012-07-17 18:24:04 -04:00
|
|
|
:security_group_rule_attributes => {
|
|
|
|
:cidr => '0.0.0.0/0',
|
|
|
|
:start_port => 123,
|
|
|
|
:end_port => 456,
|
|
|
|
:protocol => 'tcp'
|
|
|
|
},
|
2012-05-08 13:01:13 -04:00
|
|
|
:mocked => true
|
|
|
|
},
|
2011-08-10 09:03:51 -04:00
|
|
|
:glesys => {
|
2012-06-12 08:54:07 -04:00
|
|
|
:server_attributes => {
|
|
|
|
:rootpassword => "secret_password_#{Time.now.to_i}",
|
2012-08-16 12:43:07 -04:00
|
|
|
:hostname => "fog.example#{Time.now.to_i}.com"
|
2012-06-12 08:54:07 -04:00
|
|
|
},
|
2011-08-10 09:03:51 -04:00
|
|
|
:mocked => false
|
|
|
|
},
|
2011-06-15 02:10:54 -04:00
|
|
|
:hp => {
|
|
|
|
:server_attributes => {
|
|
|
|
:flavor_id => 100,
|
|
|
|
:image_id => 1242,
|
|
|
|
:name => "fog_#{Time.now.to_i}"
|
|
|
|
},
|
|
|
|
:mocked => true
|
|
|
|
},
|
2011-12-02 13:27:44 -05:00
|
|
|
:ibm => {
|
|
|
|
:server_attributes => {},
|
|
|
|
:mocked => true
|
|
|
|
},
|
2012-02-10 10:10:49 -05:00
|
|
|
:joyent => {
|
|
|
|
:mocked => false
|
|
|
|
},
|
2011-06-16 19:28:54 -04:00
|
|
|
:ninefold => {
|
2011-04-16 20:43:30 -04:00
|
|
|
:mocked => false
|
|
|
|
},
|
2012-11-27 19:57:16 -05:00
|
|
|
:openstack => {
|
|
|
|
:mocked => true,
|
|
|
|
:server_attributes => {
|
|
|
|
:flavor_ref => 2,
|
|
|
|
:image_ref => "0e09fbd6-43c5-448a-83e9-0d3d05f9747e",
|
|
|
|
:name => "fog_#{Time.now.to_i}"
|
|
|
|
}
|
|
|
|
},
|
2011-06-16 19:28:54 -04:00
|
|
|
:rackspace => {
|
2012-12-20 15:54:02 -05:00
|
|
|
:provider_attributes => { :version => :v1 },
|
2011-01-03 16:34:08 -05:00
|
|
|
:server_attributes => {
|
|
|
|
:image_id => 49, # image 49 = Ubuntu 10.04 LTS (lucid)
|
|
|
|
:name => "fog_#{Time.now.to_i}"
|
|
|
|
},
|
|
|
|
:mocked => true
|
|
|
|
},
|
2011-06-16 19:28:54 -04:00
|
|
|
:voxel => {
|
2011-02-23 18:00:56 -05:00
|
|
|
:server_attributes => {
|
|
|
|
:name => "fog.#{Time.now.to_i}",
|
|
|
|
:disk_size => 10,
|
|
|
|
:processing_cores => 1,
|
|
|
|
:image_id => 55, # image 55 = Ubuntu 10.04 (Lucid), 64-bit, base install
|
|
|
|
:facility => "LDJ1"
|
|
|
|
},
|
|
|
|
:mocked => false
|
2011-01-03 16:34:08 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|