我一直在尝试使用Rundeck向windows boxes发送powershell命令。我使用的是"rundeck-winrm-plugin“
https://github.com/rundeck-plugins/rundeck-winrm-plugin
它说要在project.properties或framework.properties文件中配置它。下面是我的/var/rundeck/projects/SecureCloud/etc/project.properties文件的样子。
project.name=Cloud
project.ssh-authentication=privateKey
project.ssh.user=Domain\\rundeck-user
service.NodeExecutor.default.provider=jsch-ssh
project.ssh-keypath=/var/lib/rundeck/.ssh/id_rsa
resources.source.1.config.url=http\://localhost\:4567/puppetdb
resources.source.1.config.timeout=30
service.FileCopier.default.provider=jsch-scp
resources.source.1.type=url
resources.source.1.config.cache=true
service.NodeExecutor.default.provider=overthere-winrm
winrm-user=Domain\\rundeck-user
winrm-password-storage-path=keys/ldap-rundeck-user-pass我不知道如何根据这个文档定义用户名和密码:https://github.com/rundeck-plugins/rundeck-winrm-plugin
我已经定义了winrm-user,所以我不知道是否还需要定义rundeck-user@Domain如果需要,那么如何定义(我使用的是kerberos)?project.username=rundeck-user@Domain?
如何在这里定义主机名?Project.hostname=机器名?
如果我已经在/var/rundeck/projects/SecureCloud/etc/project.properties文件中声明了: service.NodeExecutor.default.provider=jsch-ssh,而这个文档说要将这一行放在那里: service.NodeExecutor.default.provider=overthere-winrm,那么我还应该使用它吗?
如果没有,那么我应该把我的配置放在哪里?
发布于 2015-10-09 03:56:03
您可以通过两种方式定义authentication:
- Basic: You can use a Secure option in the rundeck job and an option name that matches your node definition name for that option. You can set the username in the node definition as well
- Kerberos: This is how you define the username (Make sure you use Caps for the domain as defined in the krb5.conf file) username="user@YOUR\_DOMAIN.COM"
/var/rundeck/projects/SecureCloud/etc/resources.xml下定义,例如:node name="YOURSERVER“connectionType="WINRM_NATIVE”node -name==“overthere winrm”winrm-password- hostname="YOURHOSTNAME:PORT"
overthere-winrm不需要在节点定义中定义节点执行器,前提是已经在
中将overthere-winrm设置为项目的配置/插件/节点执行器部分中的缺省节点执行器
发布于 2016-04-23 05:23:58
您可以遵循Rundeck Windows Nodes Configuration,了解在那里进行winrm配置要遵循的步骤。
https://stackoverflow.com/questions/32181413
复制相似问题