Hi,
You can try with PyWinRM plugin (out of the box with Rundeck, “overthere winrm” plugin is outdated right now) which supports Kerberos by default and is under active development. I leave a basic job definition example to call the PowerShell.exe command.
<joblist>
<job>
<defaultTab>nodes</defaultTab>
<description></description>
<dispatch>
<excludePrecedence>true</excludePrecedence>
<keepgoing>false</keepgoing>
<rankOrder>ascending</rankOrder>
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter>
<threadcount>1</threadcount>
</dispatch>
<executionEnabled>true</executionEnabled>
<id>7fe85de3-dfa3-441d-a427-6fb7ad45668a</id>
<loglevel>INFO</loglevel>
<name>PowerSHELLTest</name>
<nodeFilterEditable>false</nodeFilterEditable>
<nodefilters>
<filter>name: windows</filter>
</nodefilters>
<nodesSelectedByDefault>true</nodesSelectedByDefault>
<plugins />
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='node-first'>
<command>
<exec>powershell.exe Write-Host "hello world!"</exec>
</command>
<command>
<fileExtension>.ps1</fileExtension>
<script><![CDATA[Write-Host "hello world!"]]></script>
<scriptargs />
<scriptinterpreter>powershell.exe</scriptinterpreter>
</command>
</sequence>
<uuid>7fe85de3-dfa3-441d-a427-6fb7ad45668a</uuid>
</job>
</joblist>
Here the result.
Hope it helps!
--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/84e6f9fb-e681-41b0-bf79-f340cfd54e59n%40googlegroups.com.
Hi,
Your project is configured to use “WInRM Node Executor Python”? (Project Settings -> Edit Configuration -> Default Node Executor -> WInRM Node Executor Python?. Additionally, make sure that you’re not missing the PowerShell path on your environment (also works if you pass the full powershell.exe path on “Invocation String”, usually at C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe).
<joblist>
<job>
<defaultTab>nodes</defaultTab>
<description></description>
<dispatch>
<excludePrecedence>true</excludePrecedence>
<keepgoing>false</keepgoing>
<rankOrder>ascending</rankOrder>
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter>
<threadcount>1</threadcount>
</dispatch>
<executionEnabled>true</executionEnabled>
<id>edac37ca-fc40-4d77-94ac-ab3127fd5c0f</id>
<loglevel>INFO</loglevel>
<name>PowerSHELLTest</name>
<nodeFilterEditable>false</nodeFilterEditable>
<nodefilters>
<filter>name: windows</filter>
</nodefilters>
<nodesSelectedByDefault>true</nodesSelectedByDefault>
<plugins />
<scheduleEnabled>true</scheduleEnabled>
<sequence keepgoing='false' strategy='node-first'>
<command>
<fileExtension>.ps1</fileExtension>
<script><![CDATA[Write-Host "hey"]]></script>
<scriptargs />
<scriptinterpreter>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</scriptinterpreter>
</command>
</sequence>
<uuid>edac37ca-fc40-4d77-94ac-ab3127fd5c0f</uuid>
</job>
</joblist>
Hope it helps!