rundeck-windcom-plugin
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Rundeck Windows DCOM (j-interop) node executor and file copier plug-in
Rundeck DCOM Plugin
--------------------

This is a [Rundeck Node Execution plugin][1] that uses DCOM to connect to Windows and execute commands.  The plugin is based on the [j-Interop][2] open source library making cross-platform operations possible (i.e. you can run commands on Windows boxes from a non-Windows Rundeck server).

The NodeExecutor service is implemented using the WshShell (WScript.Shell) Windows Script Host (WSH) COM object's Exec method to [run Windows programs][3], capture their output and error streams and report their exit code.

[1]: http://rundeck.org/docs/manual/plugins.html#node-execution-plugins
[2]: http://j-interop.org
[3]: http://technet.microsoft.com/en-us/library/ee156605.aspx

Install
====

Copy the `rundeck-dcom-plugin-1.0.jar` to the `libext/` directory for Rundeck.

Configure The Plugin
====

Generate the encrypted password:

     [rundeck@centos62 libext]$ java -classpath rundeck-windcom-plugin.jar com.dtolabs.rundeck.plugin.windcom.CryptUtil /tmp/key.file Administrator '!1qazxsw2@'

     [INFO]: file: "/tmp/key.file" created.
     
     [INFO]: place the following in your project "resource.xml" file:
     
     
     

Setup the node entry:

     
       
       
     

Configure a Windows Server for DCOM 
====

Enabling DCOM access varies depending on the version of Windows you're using. This [Technet article][1] applies to the more recent releases. This article on [Configuring DCOM for Remote Access][2] outlines the various authentication levels and security permissions that have to be set.



[1]: http://technet.microsoft.com/en-us/library/cc771387.aspx
[2]: http://j-integra.intrinsyc.com/support/com/doc/remoteaccess.html

Build
=====

Build with gradle

Prerequisites: the `rundeck-core-1.4.x.jar` file should be placed in the lib directory.

Gradle build, result is `build/libs/rundeck-windcom-plugin-1.0.jar`.

	gradle clean build


Getting the Rundeck core jar
====	

If you're building the plug-in independently of Rundeck itself you can find the Rundeck core jar in a couple of places under your Rundeck install. e.g:

	[rundeck@centos62 ~]$ find . -name rundeck-core-\*.jar
	./cli/rundeck-core-1.4.4-dev.jar
	./exp/webapp/WEB-INF/lib/rundeck-core-1.4.4-dev.jar

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。