overthere-winrm插件配置报错:hostnameVerify与certTrust值无效
Rundeck WinRM插件配置错误解决办法
问题场景
我的Windows节点配置如下:
"goodhost":{ "description":"File host", "hostname":"goodhost", "node-executor":"overthere-winrm", "file-copier":"overthere-winrm", "nodename":"goodhost", "osArch":"amd64", "osFamily":"windows", "osName":"Windows Server", "osVersion":"2019", "username":"user1", "winrm-auth-type":"basic", "winrm-cmd":"PowerShell", "winrm-kerberos-debug":"true", "winrm-password-storage-path":"keys/windows_passwrod", "winrm-protocol":"http" },
执行任何命令时都会抛出如下错误:
[2023-06-02T00:10:56,814] ERROR services.PluginService - NodeExecutor: configuration was not valid for plugin 'overthere-winrm': hostnameVerify: Invalid value: BROWSER_COMPATIBLE certTrust: Invalid value: STRICT
插件官方文档里没提到这两个参数,不知道问题出在哪。
问题原因
这两个参数(hostnameVerify、certTrust)并非节点配置专属,而是Rundeck全局配置或插件默认配置中的项,大概率是你的Rundeck版本和winrm插件版本不兼容,导致默认参数值不符合当前插件的校验规则。
解决步骤
- 先确认Rundeck和winrm插件的版本兼容性,保证两者版本匹配(比如Rundeck 4.x对应最新版的winrm插件)
- 在节点配置里显式添加这两个参数,设置为插件支持的有效值。比如:
"goodhost":{ "description":"File host", "hostname":"goodhost", "node-executor":"overthere-winrm", "file-copier":"overthere-winrm", "nodename":"goodhost", "osArch":"amd64", "osFamily":"windows", "osName":"Windows Server", "osVersion":"2019", "username":"user1", "winrm-auth-type":"basic", "winrm-cmd":"PowerShell", "winrm-kerberos-debug":"true", "winrm-password-storage-path":"keys/windows_passwrod", "winrm-protocol":"http", "hostnameVerify": "ALLOW_ALL", "certTrust": "ALLOW_ALL" }, - 如果是全局配置问题,可前往Rundeck的
rundeck-config.properties文件或插件配置页面,调整对应参数为有效值。
内容的提问来源于stack exchange,提问作者user971741
相关产品推荐
相关产品推荐

