forked from rundeck-plugins/py-winrm-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.yaml
147 lines (145 loc) · 5.09 KB
/
plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
name: py-winrm-plugin
version: 1.0.0
rundeckPluginVersion: 1.2
author: Luis Toledo
date: Tue Nov 28 2017
providers:
- name: WinRMPython
title: WinRM Node Executor Python
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.username} ${node.hostname}
config:
- name: authtype
title: Authentication Type
description: "Authentication Type"
type: Select
values: "basic,credssp,ntlm"
default: "plaintext"
required: true
scope: Instance
renderingOptions:
groupName: Authentication
instance-scope-node-attribute: "winrm-authtype"
- name: nossl
title: No SSL Verification
description: "When set to true ssl certificate validation is not performed"
type: Select
values: "true, false"
default: "false"
required: true
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-nossl"
- name: winrmtransport
title: WinRM Transport Protocol
description: "WinRM transport protocol (http or https)"
type: Select
default: "http"
values: "http, https"
required: true
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-transport"
- name: winrmport
title: WinRM Port
description: "WinRM port (Default: 5985/5986 for http/https)"
type: String
default: "5985"
required: true
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-port"
- name: shell
title: Shell
description: "Windows Shell interpreter"
type: Select
values: "cmd, powershell"
default: 'powershell'
required: true
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-shell"
- name: password_storage_path
title: Password Storage Path
type: String
required: false
description: "Optional storage password path. Can contain property references to node attributes. A node attribute named winrm-password-storage-path will override this value."
scope: Instance
renderingOptions:
groupName: Authentication
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "winrm-password-storage-path"
- name: WinRMcpPython
title: WinRM Python File Copier
description: Copying files to remote Windows computer
service: FileCopier
plugin-type: script
script-interpreter: python -u
script-file: winrm-filecopier.py
script-args: ${node.username} ${node.hostname} ${file-copy.file} ${file-copy.destination}
config:
- name: authtype
title: Authentication Type
description: "Authentication Type"
type: Select
values: "basic,credssp,ntlm"
default: "plaintext"
required: true
scope: Instance
renderingOptions:
groupName: Authentication
instance-scope-node-attribute: "winrm-authtype"
- name: nossl
title: No SSL Verification
description: "When set to true ssl certificate validation is not performed"
type: Select
values: "true, false"
default: "false"
required: true
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-nossl"
- name: winrmtransport
title: WinRM Transport Protocol
description: "WinRM transport protocol (Default: http or https when ssl is selected for Authentication type)"
type: Select
default: "http"
values: "http, https"
required: true
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-transport"
- name: winrmport
title: WinRM Port
description: "WinRM port (Default: 5985/5986 for http/https)"
type: String
default: "5985"
required: true
scope: Instance
renderingOptions:
groupName: Connection
instance-scope-node-attribute: "winrm-port"
- name: password_storage_path
title: Password Storage Path
type: String
required: false
description: "Optional storage password path. Can contain property references to node attributes. A node attribute named winrm-password-storage-path will override this value."
scope: Instance
renderingOptions:
groupName: Authentication
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "winrm-password-storage-path"