Class: VagrantPlugins::VMM::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-vmm/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



30
31
32
33
34
35
36
37
38
39
40
# File 'lib/vagrant-vmm/config.rb', line 30

def initialize
  @ip_address_timeout = UNSET_VALUE
  @proxy_server_address = nil
  @vmm_server_address = UNSET_VALUE
  @vm_template_name   = UNSET_VALUE
  @vm_host_group_name = UNSET_VALUE
  @vm_address = nil
  @ad_server  = nil
  @ad_source_path = nil
  @ad_target_path = nil
end

Instance Attribute Details

#ad_serverString

Returns:

  • (String)


22
23
24
# File 'lib/vagrant-vmm/config.rb', line 22

def ad_server
  @ad_server
end

#ad_source_pathString

Returns:

  • (String)


24
25
26
# File 'lib/vagrant-vmm/config.rb', line 24

def ad_source_path
  @ad_source_path
end

#ad_target_pathString

Returns:

  • (String)


26
27
28
# File 'lib/vagrant-vmm/config.rb', line 26

def ad_target_path
  @ad_target_path
end

#ip_address_timeoutInteger

The timeout to wait for an IP address when booting the machine, in seconds.

Returns:

  • (Integer)


10
11
12
# File 'lib/vagrant-vmm/config.rb', line 10

def ip_address_timeout
  @ip_address_timeout
end

#proxy_server_addressString

Returns:

  • (String)


12
13
14
# File 'lib/vagrant-vmm/config.rb', line 12

def proxy_server_address
  @proxy_server_address
end

#vm_addressString

Returns:

  • (String)


20
21
22
# File 'lib/vagrant-vmm/config.rb', line 20

def vm_address
  @vm_address
end

#vm_host_group_nameString

Returns:

  • (String)


18
19
20
# File 'lib/vagrant-vmm/config.rb', line 18

def vm_host_group_name
  @vm_host_group_name
end

#vm_template_nameString

Returns:

  • (String)


16
17
18
# File 'lib/vagrant-vmm/config.rb', line 16

def vm_template_name
  @vm_template_name
end

#vmm_server_addressString

Returns:

  • (String)


14
15
16
# File 'lib/vagrant-vmm/config.rb', line 14

def vmm_server_address
  @vmm_server_address
end

Instance Method Details

#finalize!Object



42
43
44
45
46
# File 'lib/vagrant-vmm/config.rb', line 42

def finalize!
  if @ip_address_timeout == UNSET_VALUE
    @ip_address_timeout = 60
  end
end

#validate(machine) ⇒ Object



48
49
50
51
52
# File 'lib/vagrant-vmm/config.rb', line 48

def validate(machine)
  errors = _detected_errors

  { "VMM" => errors }
end