Skip to content

Commit

Permalink
Merge pull request #35 from laubstein/master
Browse files Browse the repository at this point in the history
allow custom python interpreter
  • Loading branch information
ltamaster authored Sep 16, 2019
2 parents 6f6710c + cc0f56f commit b4c6638
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
4 changes: 4 additions & 0 deletions contents/wrapper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
PYTHON=${RD_CONFIG_INTERPRETER:-python}
cd `dirname $0`
${PYTHON} -u "$@"
39 changes: 30 additions & 9 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,17 @@ providers:
description: Executing Scripts or Commands on remote Windows computer
service: NodeExecutor
plugin-type: script
script-interpreter: python -u
script-file: winrm-exec.py
script-args: ${node.hostname}
script-interpreter: /bin/sh
script-file: wrapper.sh
script-args: winrm-exec.py ${node.hostname}
config:
- name: interpreter
title: Python Interpreter
description: "Python Interpreter (Default: python)"
type: String
default: "python"
required: true
scope: Instance
- name: authtype
title: Authentication Type
description: "Authentication Type"
Expand Down Expand Up @@ -136,10 +143,17 @@ providers:
description: Copying files to remote Windows computer
service: FileCopier
plugin-type: script
script-interpreter: python -u
script-file: winrm-filecopier.py
script-args: ${node.hostname} ${file-copy.file} ${file-copy.destination}
script-interpreter: /bin/sh
script-file: wrapper.sh
script-args: winrm-filecopier.py ${node.hostname} ${file-copy.file} ${file-copy.destination}
config:
- name: interpreter
title: Python Interpreter
description: "Python Interpreter (Default: python)"
type: String
default: "python"
required: true
scope: Instance
- name: authtype
title: Authentication Type
description: "Authentication Type"
Expand Down Expand Up @@ -247,10 +261,17 @@ providers:
description: Check the connection with a remote node using winrm-python
service: WorkflowStep
plugin-type: script
script-interpreter: python -u
script-args: "--username ${config.username} --hostname ${config.hostname} --password ${config.password_storage_path} --authentication ${config.authtype} --transport ${config.winrmtransport} --port ${config.winrmport} --nossl ${config.nossl} --debug ${config.debug} --certpath ${config.certpath}"
script-file: winrm-check.py
script-interpreter: /bin/sh
script-file: wrapper.sh
script-args: winrm-check.py --username ${config.username} --hostname ${config.hostname} --password ${config.password_storage_path} --authentication ${config.authtype} --transport ${config.winrmtransport} --port ${config.winrmport} --nossl ${config.nossl} --debug ${config.debug} --certpath ${config.certpath}
config:
- name: interpreter
title: Python Interpreter
description: "Python Interpreter (Default: python)"
type: String
default: "python"
required: true
scope: Instance
- name: hostname
title: Hostname
description: "Window's Hostname"
Expand Down

0 comments on commit b4c6638

Please sign in to comment.