Skip to content

Commit

Permalink
add to file copier
Browse files Browse the repository at this point in the history
  • Loading branch information
jsboak committed Dec 6, 2023
1 parent 0cd4e46 commit 11ddab0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contents/winrm-filecopier.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ def winrm_upload(self,
if "RD_CONFIG_CERTPATH" in os.environ:
certpath = os.getenv("RD_CONFIG_CERTPATH")

if "RD_CONFIG_WINRMPROXY" in os.environ:
winrmproxy = os.getenv("RD_CONFIG_WINRMPROXY")

if "RD_OPTION_USERNAME" in os.environ and os.getenv("RD_OPTION_USERNAME"):
#take user from job
username = os.getenv("RD_OPTION_USERNAME").strip('\'')
Expand Down Expand Up @@ -327,6 +330,8 @@ def winrm_upload(self,

arguments["credssp_disable_tlsv1_2"] = diabletls12

if(winrmproxy):
arguments["proxy"] = winrmproxy

if not URLLIB_INSTALLED:
log.error("request and urllib3 not installed, try: pip install requests && pip install urllib3")
Expand Down
9 changes: 9 additions & 0 deletions plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,15 @@ providers:
required: false
renderingOptions:
groupName: Kerberos
- name: winrmproxy
title: Proxy
description: "Specify a proxy address for communicating with Windows nodes. Example HTTP proxy strings are http://server:port and http://user:pass@server:port. An example SOCKS5 proxy string is socks5://user:pass@server:port."
type: String
required: false
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-proxy"
- name: WinRMCheck
title: WinRM Check Step
description: Check the connection with a remote node using winrm-python
Expand Down

0 comments on commit 11ddab0

Please sign in to comment.