use port 445 instead of port 22 when bootstrapping windows

deploy_kwargs get default port 22 or ssh_port there for cloud bootstrapping fails without ssh_port=445 in the profile
make sense to use default port 445 and allow profile override with 'smb_port' parameter (following ssh_port convention)
This commit is contained in:
Rudy Attias 2015-03-26 10:42:55 +02:00 committed by Rudy Attias
parent 32823a7431
commit 1352979299

View File

@ -421,6 +421,9 @@ def bootstrap(vm_, opts):
'win_installer', vm_, opts
)
if win_installer:
deploy_kwargs['port'] = salt.config.get_cloud_config_value(
'smb_port', vm_, opts, default=445
)
deploy_kwargs['win_installer'] = win_installer
minion = salt.utils.cloud.minion_config(opts, vm_)
deploy_kwargs['master'] = minion['master']