-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathplugin.yaml
185 lines (185 loc) · 8.91 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
name: openssh node execution services
rundeckPluginVersion: 2.0
author: "@author@"
date: "@date@"
version: "@version@"
url: "@url@"
description: "OpenSSH Node Executor"
rundeckCompatibilityVersion: "3.2.x"
targetHostCompatibility: "all"
license: "Apache 2.0"
tags:
- script
- NodeExecutor
- FileCopier
providers:
- name: ssh-exec
service: NodeExecutor
title: 'openssh / executor'
description: Executes a openssh command on the node. Password Authentication needs sshpass installed on the rundeck server
plugin-type: script
script-interpreter: /bin/bash
script-file: ssh-exec.sh
script-args: ${node.username} ${node.hostname} ${exec.command}
config:
- name: dry_run
title: 'Dry run?'
type: Boolean
required: false
description: 'Just echo what would be done'
- type: Select
name: authentication
title: Authentication
description: Authentication SSH Type (password or privatekey). A node attribute named ssh-authentication will override this value.
default: password
values:
- password
- privatekey
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-authentication"
- name: ssh_key_storage_path
title: SSH key Storage Path
type: String
required: false
description: "Optional storage path for ssh-key saved on the key storage. Can contain property references to node attributes. A node attribute named ssh-key-storage-path will override this value."
scope: Instance
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "ssh-key-storage-path"
storage-file-meta-filter: "Rundeck-key-type=private"
- name: ssh_key_passphrase_storage_path
title: SSH key Passphrase Storage Path
type: String
required: false
description: "Optional storage path for ssh-key Passphrase. Can contain property references to node attributes. A node attribute named ssh-key-passphrase-storage-path will override this value."
scope: Instance
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "ssh-key-passphrase-storage-path"
storage-file-meta-filter: "Rundeck-data-type=password"
- name: ssh_password_storage_path
title: SSH Password Storage Path
type: String
required: false
description: "Optional storage password path. Can contain property references to node attributes. A node attribute named ssh-password-storage-path will override this value."
scope: Instance
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "ssh-password-storage-path"
storage-file-meta-filter: "Rundeck-data-type=password"
- name: ssh_options
title: SSH Custom Options
type: String
required: false
description: "Add custom settings to SSH connection. Eg: -o ConnectTimeout=10. A node attribute named ssh-options will override this value."
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-options"
- name: ssh_password_option
title: SSH Password with a Job Option
type: String
required: false
description: "Get the password form a job option (eg: `option.password`). The Job must define a Secure Remote Authentication Option to prompt the user for the password before execution. A node attribute named ssh-password-option will override this value"
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-password-option"
- name: ssh_key_passphrase_option
title: SSH Passphrase with a Job Option
type: String
required: false
description: "Get the passphrase form a job option (eg: `option.passphrase`). The Job must define a Secure Remote Authentication Option to prompt the user for the passphrase before execution. A node attribute named ssh-key-passphrase-option will override this value"
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-key-passphrase-option"
- name: ssh-copier
service: FileCopier
title: 'openssh / file-copier'
description: Copies file to the node via scp. Password Authentication needs sshpass installed on the rundeck server
plugin-type: script
script-interpreter: /bin/bash
script-file: ssh-copy.sh
script-args: ${node.username} ${node.hostname}
config:
- name: dry_run
title: 'Dry run?'
type: Boolean
required: false
description: 'Just echo what would be done'
- type: Select
name: authentication
title: Authentication
description: Authentication SSH Type (password or privatekey). A node attribute named ssh-authentication will override this value.
default: password
values:
- password
- privatekey
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-authentication"
- name: ssh_key_storage_path
title: SSH key Storage Path
type: String
required: false
description: "Optional storage path for ssh-key file. Can contain property references to node attributes. A node attribute named ssh-key-storage-path will override this value."
scope: Instance
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "ssh-key-storage-path"
storage-file-meta-filter: "Rundeck-key-type=private"
- name: ssh_key_passphrase_storage_path
title: SSH key Passphrase Storage Path
type: String
required: false
description: "Optional storage path for ssh-key Passphrase. Can contain property references to node attributes. A node attribute named ssh-key-passphrase-storage-path will override this value."
scope: Instance
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "ssh-key-passphrase-storage-path"
storage-file-meta-filter: "Rundeck-data-type=password"
- name: ssh_password_storage_path
title: SSH Password Storage Path
type: String
required: false
description: "Optional storage password path. Can contain property references to node attributes. A node attribute named ssh-password-storage-path will override this value."
scope: Instance
renderingOptions:
selectionAccessor: "STORAGE_PATH"
valueConversion: "STORAGE_PATH_AUTOMATIC_READ"
storage-path-root: "keys"
instance-scope-node-attribute: "ssh-password-storage-path"
storage-file-meta-filter: "Rundeck-data-type=password"
- name: ssh_options
title: SSH Custom Options
type: String
required: false
description: "Add custom settings to SSH connection. Eg: -o ConnectTimeout=10. A node attribute named ssh-options will override this value."
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-options"
- name: ssh_password_option
title: SSH Password with a Job Option
type: String
required: false
description: "Get the password form a job option (eg: `option.password`). The Job must define a Secure Remote Authentication Option to prompt the user for the password before execution. A node attribute named ssh-password-option will override this value"
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-password-option"
- name: ssh_key_passphrase_option
title: SSH Passphrase with a Job Option
type: String
required: false
description: "Get the passphrase form a job option (eg: `option.passphrase`). The Job must define a Secure Remote Authentication Option to prompt the user for the passphrase before execution. A node attribute named ssh-key-passphrase-option will override this value"
scope: Instance
renderingOptions:
instance-scope-node-attribute: "ssh-key-passphrase-option"