如何解决如何在 Vagrant 中指定用于下载到 Virtualbox VM 的 salt 版本?
我正在尝试通过 Vagrant 在 Virtualbox 中建立一系列 VM(Ubuntu 20.04 上的 Master,Windows Server 2016 上的 7 个 Minion 和 Windows 10 上的 1 个)。在 vagrant up
的执行过程中,在创建完成并且 Salt 开始尝试安装后,我在第一个 VM (Windows Server 2016) 上收到以下错误:
==> VM24-APP-OSX-RISK: Checking for guest additions in VM...
==> VM24-APP-OSX-RISK: Setting hostname...
==> VM24-APP-OSX-RISK: Waiting for machine to reboot...
==> VM24-APP-OSX-RISK: Configuring and enabling network interfaces...
==> VM24-APP-OSX-RISK: Running provisioner: salt...
Copying salt minion config to vm.
Uploading minion keys.
Checking if C:\salt\salt-minion.bat is installed
C:\salt\salt-minion.bat was not found.
Checking if C:\salt\salt-call.bat is installed
C:\salt\salt-call.bat was not found.
Using Bootstrap Options: -P -c /tmp -x python3
Bootstrapping Salt... (this may take a while)
Defaulting to minion Python version 2
Service defaulting to run.
**Downloading Salt minion installer Salt-Minion-2018.3.3-Py2-AMD64-Setup.exe
WARNING: Retrying download in 2 seconds. Retry # 1
WARNING: Retrying download in 2 seconds. Retry # 2
WARNING: Retrying download in 2 seconds. Retry # 3
WARNING: Retrying download in 2 seconds. Retry # 4
The request was aborted: Could not create SSL/TLS secure channel.
At C:\tmp\bootstrap_salt.ps1:74 char:5
+ $webclient.DownloadFile($url,$file)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [],WebException
+ FullyQualifiedErrorId : WebException
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True ErrorRecord System.Object
The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.WebClient.DownloadFile(Uri address,String fileName)
at CallSite.Target(Closure,CallSite,Object,Object )
The following WinRM command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
powershell.exe -NonInteractive -NoProfile -executionpolicy bypass -file C:\tmp/bootstrap_salt.ps1 -P -c /tmp -x python3
Stdout from the command:
Defaulting to minion Python version 2
Service defaulting to run.
Downloading Salt minion installer Salt-Minion-2018.3.3-Py2-AMD64-Setup.exe
WARNING: Retrying download in 2 seconds. Retry # 1
WARNING: Retrying download in 2 seconds. Retry # 2
WARNING: Retrying download in 2 seconds. Retry # 3
WARNING: Retrying download in 2 seconds. Retry # 4
The request was aborted: Could not create SSL/TLS secure channel.
At C:\tmp\bootstrap_salt.ps1:74 char:5
+ $webclient.DownloadFile($url,Object )
Stderr from the command:
查看 Salt for Windows 的安装指南(此处:https://docs.saltstack.com/en/master/topics/installation/windows/)-我很确定问题在于可执行文件不再位于旧版本支持的主树中,但已移至存档部分,有效地打破了我认为安装程序试图运行的链接(Salt-Minion-2018.3.3-Py2-AMD64-Setup.exe)。但是,我没有看到任何方法可以通过 Vagrant 文件、salt 文件或代码中的任何地方指定要使用的 Salt 版本。
有人有什么想法吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。