盐云: Windows上的Minion安装不起作用

我正在尝试使用salt堆栈提供Azure Windows。VM是成功配置的,但是当salt堆栈试图安装saltstack时,它尝试使用端口22连接到Windows,而端口22不能工作。

盐云的默认行为是在提供VM之后,它尝试在新VM上安装盐分。但是对于windows,它尝试使用端口22进行连接。

知道为什么怎么解决吗?

salt-cloud -p azure-win2012 test6: (这是使用profile azure-win2012部署名为test6的VM的命令)

代码语言:javascript复制[DEBUG ] Closing IPCMessageClient instance

[DEBUG ] Deploying 20.20.20.20 at 2022-11-03 13:30:03

[DEBUG ] Attempting connection to host 20.20.20.20 on port 22

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 1)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 2)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 3)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 4)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 5)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 6)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 7)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 8)

[DEBUG ] Caught exception in wait_for_port: timed out

[DEBUG ] Retrying connection to host 20.20.20.20 on port 22 (try 9)azure_cloud_profile.conf:

代码语言:javascript复制azure-win2012:

provider: my-azure-config

image: MicrosoftWindowsServer|WindowsServer|2012-R2-Datacenter|latest

size: Standard_B1s

location: 'westeurope'

win_username: azureuser

win_password: 'Verybadpass@!#'

allocate_public_ip: Truecloud_provider_conf:

代码语言:javascript复制my-azure-config:

driver: azurearm

subscription_id: xxxxxxxxxxxxxxxxxxx

tenant: xxxxxxxxxxxxxxxxxx

client_id: XXXXXXXXXXXXXXXX

secret: 'XXXXXXXXXXXXXXXXXXX'

certificate_path: /etc/salt/azure.pem

resource_group: test-rg

network: test-vnet

subnet: default

username: azureuser

password: 'Verybadpass@!#'

location: 'westeurope'

# Set up the location of the salt master

#

minion:

master: x.x.x.x

# Optional

management_host: management.core.windows.net