Add configuration to HyperV config
This commit is contained in:
parent
ce2a1ac634
commit
765494a2bf
|
@ -14,6 +14,7 @@ module VagrantPlugins
|
||||||
attr_accessor :differencing_disk # Create differencing disk instead of cloning whole VHD [Boolean]
|
attr_accessor :differencing_disk # Create differencing disk instead of cloning whole VHD [Boolean]
|
||||||
attr_accessor :auto_start_action #action on automatic start of VM. Values: Nothing, StartIfRunning, Start
|
attr_accessor :auto_start_action #action on automatic start of VM. Values: Nothing, StartIfRunning, Start
|
||||||
attr_accessor :auto_stop_action #action on automatic stop of VM. Values: ShutDown, TurnOff, Save
|
attr_accessor :auto_stop_action #action on automatic stop of VM. Values: ShutDown, TurnOff, Save
|
||||||
|
attr_accessor :vm_integration_service # Options for VMServiceIntegration
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@ip_address_timeout = UNSET_VALUE
|
@ip_address_timeout = UNSET_VALUE
|
||||||
|
@ -26,6 +27,14 @@ module VagrantPlugins
|
||||||
@differencing_disk = UNSET_VALUE
|
@differencing_disk = UNSET_VALUE
|
||||||
@auto_start_action = UNSET_VALUE
|
@auto_start_action = UNSET_VALUE
|
||||||
@auto_stop_action = UNSET_VALUE
|
@auto_stop_action = UNSET_VALUE
|
||||||
|
@vm_integration_service = {
|
||||||
|
guest_service_interface: UNSET_VALUE,
|
||||||
|
heartbeat: UNSET_VALUE,
|
||||||
|
key_value_pair_exchange: UNSET_VALUE,
|
||||||
|
shutdown: UNSET_VALUE,
|
||||||
|
vss: UNSET_VALUE,
|
||||||
|
time_synchronization: UNSET_VALUE
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def finalize!
|
def finalize!
|
||||||
|
@ -41,12 +50,16 @@ module VagrantPlugins
|
||||||
@differencing_disk = false if @differencing_disk == UNSET_VALUE
|
@differencing_disk = false if @differencing_disk == UNSET_VALUE
|
||||||
@auto_start_action = nil if @auto_start_action == UNSET_VALUE
|
@auto_start_action = nil if @auto_start_action == UNSET_VALUE
|
||||||
@auto_stop_action = nil if @auto_stop_action == UNSET_VALUE
|
@auto_stop_action = nil if @auto_stop_action == UNSET_VALUE
|
||||||
|
|
||||||
|
@vm_integration_service.each { |key, value|
|
||||||
|
@vm_integration_service[key] = nil if value == UNSET_VALUE
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
def validate(machine)
|
def validate(machine)
|
||||||
errors = _detected_errors
|
errors = _detected_errors
|
||||||
|
|
||||||
{ "Hyper-V" => errors }
|
{"Hyper-V" => errors}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue