Closed andrejohansson closed 9 years ago
Part of this one is on us; it should definitely use the azure.servicemanagement.WindowsConfigurationSet
for Windows. However, the win_installer
, etc. configs require port 445 to be open on the target image, and most providers don't do that by default. Do you know if the Azure image that you're using meets that requirement?
Sorry, I have no idea, I used "list_images" and just picked one of the default azure images. So I'm guessing that the port is not open.
If the win_ configs are not used and the images spin up, is it still possible to configure the minion afterwards or are both needed on spinup?
Once the image is spun up, you can either open up port 445 and use the saltify driver, or you can just run the salt-minion windows installer manually.
Keep in mind that just because that port isn't usually open by default, doesn't mean that Azure doesn't open it. It's probably worth spinning up an image manually and checking.
Hmm, I don't know if that is a good fit for my use case. I was thinking of using Salt to deploy and scale our application. The application consists of different components running on different parts of Azure and AWS.
My idea was to define the applications infrastructure in salt and then get a mechanism for "one button deployment/scaling".
But if it is required to manually work on a deployed instance to get the minion on there the concept fails. Is there other ways to get the minion on the instances?
Of course I could make custom images but it would be preferable if the standard issue images could be used directly. Could salt be pushed out via remote powershell maybe?
Or maybe I'm stretching a bit what salt is made for?
I've started on a fix here but I didn't get all the way, maybe something you can use? https://github.com/andrejohansson/salt/commit/84f61683c53a13bba0ecdd82901ce9f813618b98
My comment was wrong, the instance do spinup but I set it to staging mode. I couldn't RDP to the machine. Running another test with production now to see if RDP is open.
RDP is, to my knowledge, the only port opened by default on a Windows install. That's helpful, because with a desktop you can open up other ports or disable the firewall entirely, but that's still a manual process. I have heard a rumor that RDP can be used to open a port in an automated fashion, but I have been unable to find instructions. It looks like you're headed in that direction; do you know how to do it?
To automate opening a port using RDP you have to enable the option to be able to shell out through RDP.
Is there any news on this? Because as I see it, it is not possible to spin up Windows based servers on Azure using salt-cloud today right?
I am seeing the same issue as andrejohansson. Using version 2014.10 I can't spin up Windows VM's in Azure. Like posted above, it seems to ignore win_password and win_username, forcing to set ssh_username and password, which again fails.
First of all, it's a bit unclear if this is a bug or this is a feature request for me, I'm filing it as a bug right now.
I'm trying to spin up a Windows Server 2012 R2 based minion in Azure following these instructions: http://docs.saltstack.com/en/latest/topics/cloud/azure.html
According to the documentation it should be possible to spin up Windows Images http://docs.saltstack.com/en/latest/topics/cloud/windows.html
But trying to spin up one in Azure gives the error:
Here is my /etc/salt/cloud.profiles
From what I can see the following line is hardcoded to
azure.servicemanagement.LinuxConfigurationSet
https://github.com/saltstack/salt/blob/develop/salt/cloud/clouds/msazure.py#L437Shouldn't this be calling
azure.servicemanagement.WindowsConfigurationSet
depending on image type?My salt --versions-report gives