salt icon indicating copy to clipboard operation
salt copied to clipboard

salt-cloud Windows provisioning on EC2 fails to use winrm

Open trevor-h opened this issue 11 years ago • 1 comments

While winrm support is built into 2015.8 it seems it can sometimes be bypassed in the specific provider itself. This is what is observed provisioning Windows on EC2 almost certainly due to the proprietary way Windows passwords are generated by AWS.

The bug is here https://github.com/saltstack/salt/blob/2015.8/salt/cloud/clouds/ec2.py#L2160 as part of 'wait_for_instance'.

There is no check for use_winrm option and the default behavior to use winexe is executed. This subsequently fails on systems with winexe unavailable leading to a deployment failure.

trevor-h avatar Nov 25 '15 13:11 trevor-h

Issue fixed. See above.

trevor-h avatar Nov 25 '15 20:11 trevor-h