Class: Dopv::Infrastructure::OpenStack
- Extended by:
- Forwardable
- Defined in:
- lib/dopv/infrastructure/providers/openstack.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node_config, data_disks_db) ⇒ OpenStack
constructor
A new instance of OpenStack.
Methods inherited from Base
bootstrap_node, #bootstrap_node, destroy_node, #destroy_node, refresh_node, #refresh_node
Constructor Details
#initialize(node_config, data_disks_db) ⇒ OpenStack
Returns a new instance of OpenStack.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/dopv/infrastructure/providers/openstack.rb', line 10 def initialize(node_config, data_disks_db) super(node_config, data_disks_db) @compute_connection_opts = { :provider => 'openstack', :openstack_username => provider_username, :openstack_api_key => provider_password, :openstack_project_name => provider_tenant, :openstack_domain_id => provider_domain_id, :openstack_auth_url => provider_url, :openstack_endpoint_type => provider_endpoint_type, :connection_options => { :ssl_verify_peer => false, #:debug_request => true } } @network_connection_opts = @compute_connection_opts @volume_connection_opts = @compute_connection_opts @node_creation_opts = { :name => nodename, :image_ref => template.id, :flavor_ref => flavor.id, :config_drive => use_config_drive?, :security_groups => security_groups } end |