Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
Implement cloud_properties_for_server_flavor for OpenStack
Browse files Browse the repository at this point in the history
  • Loading branch information
frodenas committed Jan 31, 2013
1 parent a9e09b8 commit d4888c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/bosh-cloudfoundry/system_deployment_manifest_renderer.rb
Expand Up @@ -111,6 +111,8 @@ def redis_service_config
def cloud_properties_for_server_flavor(server_flavor)
if aws?
{ "instance_type" => server_flavor }
elsif openstack?
{ "instance_type" => server_flavor }
else
raise 'Please implement #{self.class}#cloud_properties_for_server_flavor'
end
Expand All @@ -120,6 +122,10 @@ def aws?
system_config.bosh_provider == "aws"
end

def openstack?
system_config.bosh_provider == "openstack"
end

#
def base_manifest(
deployment_name,
Expand Down

0 comments on commit d4888c2

Please sign in to comment.