Class: Dopv::Infrastructure::Ovirt

Inherits:
Base
  • Object
show all
Defined in:
lib/dopv/infrastructure/providers/ovirt.rb

Constant Summary

Constants inherited from Base

Base::MAX_RETRIES

Instance Attribute Summary

Attributes inherited from Base

#data_disks_db

Instance Method Summary collapse

Methods inherited from Base

bootstrap_node, #bootstrap_node, destroy_node, #destroy_node, refresh_node, #refresh_node

Constructor Details

#initialize(plan, data_disks_db) ⇒ Ovirt

Returns a new instance of Ovirt.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/dopv/infrastructure/providers/ovirt.rb', line 8

def initialize(plan, data_disks_db)
  super(plan, data_disks_db)

  @compute_connection_opts = {
    :provider           => 'ovirt',
    :ovirt_username     => provider_username,
    :ovirt_password     => provider_password,
    :ovirt_url          => provider_url,
    :ovirt_ca_cert_file => provider_ca_cert_file
  }

  @node_creation_opts = {
    :name               => nodename,
    :template           => template.id,
    :cores              => cores,
    :memory             => memory.bytes,
    :storage            => storage.bytes,
    :cluster            => cluster.id,
    :ha                 => keep_ha?,
    :clone              => full_clone?,
    :storagedomain_name => infrastructure_properties.default_pool
  }
end