diff --git a/lib/vagrant-subutai/packer/subutai_config.rb b/lib/vagrant-subutai/packer/subutai_config.rb index 1f62989..1ddb0b2 100644 --- a/lib/vagrant-subutai/packer/subutai_config.rb +++ b/lib/vagrant-subutai/packer/subutai_config.rb @@ -62,6 +62,7 @@ module SubutaiConfig BRIDGE_VMWARE BRIDGE_KVM BRIDGE_HYPERV + CHECK_MAC ].freeze GENERATED_PARAMETERS = %i[ @@ -112,10 +113,10 @@ module SubutaiConfig LIBVIRT_POOL: 'default', # Libvirt pool name BLUEPRINT_NO_AUTO: false, # Auto provision blueprints if present - # Configuration parameters below have not been implemented SUBUTAI_DESKTOP: false, # install desktop with tray and p2p client SUBUTAI_MAN_TMPL: nil, # provision alternative management template - APT_PROXY_URL: nil, # configure apt proxy URL + APT_PROXY_URL: nil, # configure apt proxy URL + CHECK_MAC: false, # mac addr checks # provider with value hyper_v: 'hyperv', @@ -354,7 +355,7 @@ def self.do_network(provider) if @bridged && get(:_SSH_PORT).nil? && write? put(:_BASE_MAC, find_mac(provider), true) \ - if @bridged && get(:_BASE_MAC).nil? && write? + if @bridged && get(:_BASE_MAC).nil? && write? && get(:CHECK_MAC) put(:_BRIDGED, @bridged, true) if write? diff --git a/lib/vagrant-subutai/packer/subutai_validation.rb b/lib/vagrant-subutai/packer/subutai_validation.rb index ad9fc3b..aaf839b 100644 --- a/lib/vagrant-subutai/packer/subutai_validation.rb +++ b/lib/vagrant-subutai/packer/subutai_validation.rb @@ -42,7 +42,8 @@ module SubutaiValidation "BRIDGE_PARALLELS": :string, "BRIDGE_VMWARE": :string, "BRIDGE_KVM": :string, - "BRIDGE_HYPERV": :string + "BRIDGE_HYPERV": :string, + "CHECK_MAC": :bool }.freeze def self.validate(key, value)