choria-mcorpc-support 2.25.0 → 2.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mcollective/agent/choria_provision.ddl +269 -200
- data/lib/mcollective/agent/choria_provision.json +40 -3
- data/lib/mcollective/agent/choria_registry.ddl +65 -0
- data/lib/mcollective/agent/choria_registry.json +74 -0
- data/lib/mcollective/agent/choria_util.ddl +1 -1
- data/lib/mcollective/agent/choria_util.json +1 -1
- data/lib/mcollective/agent/rpcutil.ddl +1 -1
- data/lib/mcollective/agent/rpcutil.json +1 -1
- data/lib/mcollective/agent/scout.ddl +1 -1
- data/lib/mcollective/agent/scout.json +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 434e6312294b09fba1fea87dd7c271492d89c29e68682577ae5c4b1ae0c2b701
|
|
4
|
+
data.tar.gz: 2a1bb5d6fe59ebcddf47f53a1405166bacc290619b75ce4136b81b5038d709e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d23e06c2ff49f69808a416d3d3b44b80b717cb16d6c3895a95d46299e5eb76eadff29ba6c3e68a317e2ef6c60216f34c0880a35509340c4b8047d54264310eb
|
|
7
|
+
data.tar.gz: 64abef1eddb1550c34a37f44d6bb77c51d048d6e98e6f6ba7489e30500f464cf9f6f4bde954eabfdc484e1106df0e34a335c627b624b77b9fb42b4730384f7bb
|
|
@@ -1,214 +1,283 @@
|
|
|
1
|
-
metadata :name
|
|
1
|
+
metadata :name => "choria_provision",
|
|
2
2
|
:description => "Choria Provisioner",
|
|
3
|
-
:author
|
|
4
|
-
:license
|
|
5
|
-
:version
|
|
6
|
-
:url
|
|
7
|
-
:timeout
|
|
3
|
+
:author => "R.I.Pienaar <rip@devco.net>",
|
|
4
|
+
:license => "Apache-2.0",
|
|
5
|
+
:version => "0.23.0",
|
|
6
|
+
:url => "https://choria.io",
|
|
7
|
+
:timeout => 20
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
action "configure", :description => "Configure the Choria Server" do
|
|
11
|
+
display :failed
|
|
12
|
+
|
|
13
|
+
input :ca,
|
|
14
|
+
:prompt => "CA Bundle",
|
|
15
|
+
:description => "PEM text block for the CA",
|
|
16
|
+
:type => :string,
|
|
17
|
+
:validation => '^-----BEGIN CERTIFICATE-----',
|
|
18
|
+
:maxlength => 20480,
|
|
19
|
+
:optional => true
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
input :certificate,
|
|
23
|
+
:prompt => "Certificate",
|
|
24
|
+
:description => "PEM text block for the certificate",
|
|
25
|
+
:type => :string,
|
|
26
|
+
:validation => '^-----BEGIN CERTIFICATE-----',
|
|
27
|
+
:maxlength => 10240,
|
|
28
|
+
:optional => true
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
input :config,
|
|
32
|
+
:prompt => "Configuration",
|
|
33
|
+
:description => "The configuration to apply to this node",
|
|
34
|
+
:type => :string,
|
|
35
|
+
:validation => '^{.+}$',
|
|
36
|
+
:maxlength => 2048,
|
|
37
|
+
:optional => false
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
input :ecdh_public,
|
|
41
|
+
:prompt => "ECDH Public Key",
|
|
42
|
+
:description => "Required when sending a private key",
|
|
43
|
+
:type => :string,
|
|
44
|
+
:validation => '.',
|
|
45
|
+
:maxlength => 64,
|
|
46
|
+
:optional => true
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
input :key,
|
|
50
|
+
:prompt => "PEM text block for the private key",
|
|
51
|
+
:description => "",
|
|
52
|
+
:type => :string,
|
|
53
|
+
:validation => '-----BEGIN RSA PRIVATE KEY-----',
|
|
54
|
+
:maxlength => 10240,
|
|
55
|
+
:optional => true
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
input :ssldir,
|
|
59
|
+
:prompt => "SSL Dir",
|
|
60
|
+
:description => "Directory for storing the certificate in",
|
|
61
|
+
:type => :string,
|
|
62
|
+
:validation => '.',
|
|
63
|
+
:maxlength => 500,
|
|
64
|
+
:optional => true
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
input :token,
|
|
68
|
+
:prompt => "Token",
|
|
69
|
+
:description => "Authentication token to pass to the server",
|
|
70
|
+
:type => :string,
|
|
71
|
+
:validation => '.',
|
|
72
|
+
:maxlength => 128,
|
|
73
|
+
:optional => true
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
output :message,
|
|
79
|
+
:description => "Status message from the Provisioner",
|
|
80
|
+
:type => "string",
|
|
81
|
+
:display_as => "Message"
|
|
82
|
+
|
|
83
|
+
end
|
|
8
84
|
|
|
9
85
|
action "gencsr", :description => "Request a CSR from the Choria Server" do
|
|
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
|
-
|
|
86
|
+
display :always
|
|
87
|
+
|
|
88
|
+
input :C,
|
|
89
|
+
:prompt => "Country",
|
|
90
|
+
:description => "Country Code",
|
|
91
|
+
:type => :string,
|
|
92
|
+
:validation => '^[A-Z]{2}$',
|
|
93
|
+
:maxlength => 2,
|
|
94
|
+
:optional => true
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
input :L,
|
|
98
|
+
:prompt => "Locality",
|
|
99
|
+
:description => "Locality or municipality (such as city or town name)",
|
|
100
|
+
:type => :string,
|
|
101
|
+
:validation => '^[\w\s-]+$',
|
|
102
|
+
:maxlength => 50,
|
|
103
|
+
:optional => true
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
input :O,
|
|
107
|
+
:prompt => "Organization",
|
|
108
|
+
:description => "Organization",
|
|
109
|
+
:type => :string,
|
|
110
|
+
:validation => '^[\w\s-]+$',
|
|
111
|
+
:maxlength => 50,
|
|
112
|
+
:optional => true
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
input :OU,
|
|
116
|
+
:prompt => "Organizational Unit",
|
|
117
|
+
:description => "Organizational Unit",
|
|
118
|
+
:type => :string,
|
|
119
|
+
:validation => '^[\w\s-]+$',
|
|
120
|
+
:maxlength => 50,
|
|
121
|
+
:optional => true
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
input :ST,
|
|
125
|
+
:prompt => "State",
|
|
126
|
+
:description => "State",
|
|
127
|
+
:type => :string,
|
|
128
|
+
:validation => '^[\w\s-]+$',
|
|
129
|
+
:maxlength => 50,
|
|
130
|
+
:optional => true
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
input :cn,
|
|
134
|
+
:prompt => "Common Name",
|
|
135
|
+
:description => "The certificate Common Name to place in the CSR",
|
|
136
|
+
:type => :string,
|
|
137
|
+
:validation => '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]).)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$',
|
|
138
|
+
:maxlength => 80,
|
|
139
|
+
:optional => true
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
input :token,
|
|
143
|
+
:prompt => "Token",
|
|
144
|
+
:description => "Authentication token to pass to the server",
|
|
145
|
+
:type => :string,
|
|
146
|
+
:validation => '.',
|
|
147
|
+
:maxlength => 128,
|
|
148
|
+
:optional => true
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
output :csr,
|
|
154
|
+
:description => "PEM text block for the CSR",
|
|
155
|
+
:type => "string",
|
|
156
|
+
:display_as => "CSR"
|
|
157
|
+
|
|
158
|
+
output :public_key,
|
|
159
|
+
:description => "PEM text block of the public key that made the CSR",
|
|
160
|
+
:type => "string",
|
|
161
|
+
:display_as => "Public Key"
|
|
162
|
+
|
|
163
|
+
output :ssldir,
|
|
164
|
+
:description => "SSL directory as determined by the server",
|
|
165
|
+
:type => "string",
|
|
166
|
+
:display_as => "SSL Dir"
|
|
167
|
+
|
|
76
168
|
end
|
|
77
169
|
|
|
78
|
-
action "
|
|
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
|
-
:type => :string,
|
|
116
|
-
:validation => ".",
|
|
117
|
-
:optional => true,
|
|
118
|
-
:maxlength => 500
|
|
119
|
-
|
|
120
|
-
output :message,
|
|
121
|
-
:description => "Status message from the Provisioner",
|
|
122
|
-
:display_as => "Message"
|
|
170
|
+
action "release_update", :description => "Performs an in-place binary update and restarts Choria" do
|
|
171
|
+
display :always
|
|
172
|
+
|
|
173
|
+
input :repository,
|
|
174
|
+
:prompt => "Repository URL",
|
|
175
|
+
:description => "HTTP(S) server hosting the update repository",
|
|
176
|
+
:type => :string,
|
|
177
|
+
:validation => '^http(s*)://',
|
|
178
|
+
:maxlength => 512,
|
|
179
|
+
:optional => false
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
input :token,
|
|
183
|
+
:prompt => "Token",
|
|
184
|
+
:description => "Authentication token to pass to the server",
|
|
185
|
+
:type => :string,
|
|
186
|
+
:validation => '.',
|
|
187
|
+
:maxlength => 128,
|
|
188
|
+
:optional => true
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
input :version,
|
|
192
|
+
:prompt => "Version to update to",
|
|
193
|
+
:description => "Package version to update to",
|
|
194
|
+
:type => :string,
|
|
195
|
+
:validation => '.+',
|
|
196
|
+
:maxlength => 32,
|
|
197
|
+
:optional => false
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
output :message,
|
|
203
|
+
:description => "Status message from the Provisioner",
|
|
204
|
+
:type => "string",
|
|
205
|
+
:display_as => "Message"
|
|
206
|
+
|
|
123
207
|
end
|
|
124
208
|
|
|
125
|
-
action "
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
209
|
+
action "jwt", :description => "Re-enable provision mode in a running Choria Server" do
|
|
210
|
+
display :always
|
|
211
|
+
|
|
212
|
+
input :token,
|
|
213
|
+
:prompt => "Token",
|
|
214
|
+
:description => "Authentication token to pass to the server",
|
|
215
|
+
:type => :string,
|
|
216
|
+
:validation => '.',
|
|
217
|
+
:maxlength => 128,
|
|
218
|
+
:optional => true
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
output :ecdh_public,
|
|
224
|
+
:description => "The ECDH public key for calculating shared secrets",
|
|
225
|
+
:type => "string",
|
|
226
|
+
:display_as => "ECDH Public Key"
|
|
227
|
+
|
|
228
|
+
output :jwt,
|
|
229
|
+
:description => "The contents of the JWT token",
|
|
230
|
+
:type => "string",
|
|
231
|
+
:display_as => "JWT Token"
|
|
232
|
+
|
|
144
233
|
end
|
|
145
234
|
|
|
146
235
|
action "reprovision", :description => "Reenable provision mode in a running Choria Server" do
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
236
|
+
display :always
|
|
237
|
+
|
|
238
|
+
input :token,
|
|
239
|
+
:prompt => "Token",
|
|
240
|
+
:description => "Authentication token to pass to the server",
|
|
241
|
+
:type => :string,
|
|
242
|
+
:validation => '.',
|
|
243
|
+
:maxlength => 128,
|
|
244
|
+
:optional => true
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
output :message,
|
|
250
|
+
:description => "Status message from the Provisioner",
|
|
251
|
+
:type => "string",
|
|
252
|
+
:display_as => "Message"
|
|
253
|
+
|
|
161
254
|
end
|
|
162
255
|
|
|
163
|
-
action "
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
256
|
+
action "restart", :description => "Restart the Choria Server" do
|
|
257
|
+
display :failed
|
|
258
|
+
|
|
259
|
+
input :splay,
|
|
260
|
+
:prompt => "Splay time",
|
|
261
|
+
:description => "The configuration to apply to this node",
|
|
262
|
+
:type => :number,
|
|
263
|
+
:optional => true
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
input :token,
|
|
267
|
+
:prompt => "Token",
|
|
268
|
+
:description => "Authentication token to pass to the server",
|
|
269
|
+
:type => :string,
|
|
270
|
+
:validation => '.',
|
|
271
|
+
:maxlength => 128,
|
|
272
|
+
:optional => true
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
output :message,
|
|
278
|
+
:description => "Status message from the Provisioner",
|
|
279
|
+
:type => "string",
|
|
280
|
+
:display_as => "Message"
|
|
281
|
+
|
|
179
282
|
end
|
|
180
283
|
|
|
181
|
-
action "release_update", :description => "Performs an in-place binary update and restarts Choria" do
|
|
182
|
-
display :always
|
|
183
|
-
|
|
184
|
-
input :token,
|
|
185
|
-
:prompt => "Token",
|
|
186
|
-
:description => "Authentication token to pass to the server",
|
|
187
|
-
:type => :string,
|
|
188
|
-
:validation => ".",
|
|
189
|
-
:optional => true,
|
|
190
|
-
:default => "",
|
|
191
|
-
:maxlength => 128
|
|
192
|
-
|
|
193
|
-
input :repository,
|
|
194
|
-
:prompt => "Repository URL",
|
|
195
|
-
:description => "HTTP(S) server hosting the update repository",
|
|
196
|
-
:type => :string,
|
|
197
|
-
:validation => "^http(s*):\/\/",
|
|
198
|
-
:optional => false,
|
|
199
|
-
:default => "",
|
|
200
|
-
:maxlength => "512"
|
|
201
|
-
|
|
202
|
-
input :version,
|
|
203
|
-
:prompt => "Version to update to",
|
|
204
|
-
:description => "Package version to update to",
|
|
205
|
-
:type => :string,
|
|
206
|
-
:validation => ".+",
|
|
207
|
-
:optional => false,
|
|
208
|
-
:default => "",
|
|
209
|
-
:maxlength => "32"
|
|
210
|
-
|
|
211
|
-
output :message,
|
|
212
|
-
:description => "Status message from the Provisioner",
|
|
213
|
-
:display_as => "Message"
|
|
214
|
-
end
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Choria Provisioner",
|
|
6
6
|
"author": "R.I.Pienaar <rip@devco.net>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.23.0",
|
|
9
9
|
"url": "https://choria.io",
|
|
10
10
|
"timeout": 20
|
|
11
11
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"default": null,
|
|
48
48
|
"optional": true,
|
|
49
49
|
"validation": "^-----BEGIN CERTIFICATE-----",
|
|
50
|
-
"maxlength":
|
|
50
|
+
"maxlength": 20480
|
|
51
51
|
},
|
|
52
52
|
"ssldir": {
|
|
53
53
|
"prompt": "SSL Dir",
|
|
@@ -57,12 +57,31 @@
|
|
|
57
57
|
"optional": true,
|
|
58
58
|
"validation": ".",
|
|
59
59
|
"maxlength": 500
|
|
60
|
+
},
|
|
61
|
+
"key": {
|
|
62
|
+
"prompt": "PEM text block for the private key",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"default": null,
|
|
65
|
+
"optional": true,
|
|
66
|
+
"validation": "-----BEGIN RSA PRIVATE KEY-----",
|
|
67
|
+
"maxlength": 10240
|
|
68
|
+
},
|
|
69
|
+
"ecdh_public": {
|
|
70
|
+
"prompt": "ECDH Public Key",
|
|
71
|
+
"description": "Required when sending a private key",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"default": "",
|
|
74
|
+
"optional": true,
|
|
75
|
+
"maxlength": 64,
|
|
76
|
+
"validation": "."
|
|
60
77
|
}
|
|
78
|
+
|
|
61
79
|
},
|
|
62
80
|
"output": {
|
|
63
81
|
"message": {
|
|
64
82
|
"description": "Status message from the Provisioner",
|
|
65
83
|
"display_as": "Message",
|
|
84
|
+
"type": "string",
|
|
66
85
|
"default": null
|
|
67
86
|
}
|
|
68
87
|
},
|
|
@@ -140,11 +159,19 @@
|
|
|
140
159
|
"csr": {
|
|
141
160
|
"description": "PEM text block for the CSR",
|
|
142
161
|
"display_as": "CSR",
|
|
162
|
+
"type": "string",
|
|
163
|
+
"default": null
|
|
164
|
+
},
|
|
165
|
+
"public_key": {
|
|
166
|
+
"description": "PEM text block of the public key that made the CSR",
|
|
167
|
+
"display_as": "Public Key",
|
|
168
|
+
"type": "string",
|
|
143
169
|
"default": null
|
|
144
170
|
},
|
|
145
171
|
"ssldir": {
|
|
146
172
|
"description": "SSL directory as determined by the server",
|
|
147
173
|
"display_as": "SSL Dir",
|
|
174
|
+
"type": "string",
|
|
148
175
|
"default": null
|
|
149
176
|
}
|
|
150
177
|
},
|
|
@@ -186,6 +213,7 @@
|
|
|
186
213
|
"message": {
|
|
187
214
|
"description": "Status message from the Provisioner",
|
|
188
215
|
"display_as": "Message",
|
|
216
|
+
"type": "string",
|
|
189
217
|
"default": null
|
|
190
218
|
}
|
|
191
219
|
},
|
|
@@ -209,11 +237,18 @@
|
|
|
209
237
|
"jwt": {
|
|
210
238
|
"description": "The contents of the JWT token",
|
|
211
239
|
"display_as": "JWT Token",
|
|
240
|
+
"type": "string",
|
|
241
|
+
"default": ""
|
|
242
|
+
},
|
|
243
|
+
"ecdh_public": {
|
|
244
|
+
"description": "The ECDH public key for calculating shared secrets",
|
|
245
|
+
"display_as": "ECDH Public Key",
|
|
246
|
+
"type": "string",
|
|
212
247
|
"default": ""
|
|
213
248
|
}
|
|
214
249
|
},
|
|
215
250
|
"display": "always",
|
|
216
|
-
"description": "
|
|
251
|
+
"description": "Re-enable provision mode in a running Choria Server"
|
|
217
252
|
},
|
|
218
253
|
{
|
|
219
254
|
"action": "reprovision",
|
|
@@ -232,6 +267,7 @@
|
|
|
232
267
|
"message": {
|
|
233
268
|
"description": "Status message from the Provisioner",
|
|
234
269
|
"display_as": "Message",
|
|
270
|
+
"type": "string",
|
|
235
271
|
"default": null
|
|
236
272
|
}
|
|
237
273
|
},
|
|
@@ -262,6 +298,7 @@
|
|
|
262
298
|
"message": {
|
|
263
299
|
"description": "Status message from the Provisioner",
|
|
264
300
|
"display_as": "Message",
|
|
301
|
+
"type": "string",
|
|
265
302
|
"default": null
|
|
266
303
|
}
|
|
267
304
|
},
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
metadata :name => "choria_registry",
|
|
2
|
+
:description => "Choria Registry Service",
|
|
3
|
+
:author => "rip@devco.net <rip@devco.net>",
|
|
4
|
+
:license => "Apache-2.0",
|
|
5
|
+
:version => "0.23.0",
|
|
6
|
+
:url => "https://choria.io",
|
|
7
|
+
:provider => "golang",
|
|
8
|
+
:service => true,
|
|
9
|
+
:timeout => 2
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
action "ddl", :description => "Retrieve the DDL for a specific plugin" do
|
|
13
|
+
display :always
|
|
14
|
+
|
|
15
|
+
input :format,
|
|
16
|
+
:prompt => "Plugin Format",
|
|
17
|
+
:description => "The result format the plugin should be retrieved in",
|
|
18
|
+
:type => :list,
|
|
19
|
+
:default => "json",
|
|
20
|
+
:list => ["ddl", "json"],
|
|
21
|
+
:optional => true
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
input :name,
|
|
25
|
+
:prompt => "Plugin Name",
|
|
26
|
+
:description => "The name of the plugin",
|
|
27
|
+
:type => :string,
|
|
28
|
+
:validation => :shellsafe,
|
|
29
|
+
:maxlength => 64,
|
|
30
|
+
:optional => false
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
input :plugin_type,
|
|
34
|
+
:prompt => "Plugin Type",
|
|
35
|
+
:description => "The type of plugin",
|
|
36
|
+
:type => :list,
|
|
37
|
+
:default => "agent",
|
|
38
|
+
:list => ["agent"],
|
|
39
|
+
:optional => false
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
output :ddl,
|
|
45
|
+
:description => "The plugin DDL in the requested format",
|
|
46
|
+
:type => "string",
|
|
47
|
+
:display_as => "DDL"
|
|
48
|
+
|
|
49
|
+
output :name,
|
|
50
|
+
:description => "The name of the plugin",
|
|
51
|
+
:type => "string",
|
|
52
|
+
:display_as => "Name"
|
|
53
|
+
|
|
54
|
+
output :plugin_type,
|
|
55
|
+
:description => "The type of plugin",
|
|
56
|
+
:type => "string",
|
|
57
|
+
:display_as => "Type"
|
|
58
|
+
|
|
59
|
+
output :version,
|
|
60
|
+
:description => "The version of the plugin",
|
|
61
|
+
:type => "string",
|
|
62
|
+
:display_as => "Version"
|
|
63
|
+
|
|
64
|
+
end
|
|
65
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://choria.io/schemas/mcorpc/ddl/v1/agent.json",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"author": "rip@devco.net \u003crip@devco.net\u003e",
|
|
6
|
+
"timeout": 2,
|
|
7
|
+
"name": "choria_registry",
|
|
8
|
+
"version": "0.23.0",
|
|
9
|
+
"url": "https://choria.io",
|
|
10
|
+
"description": "Choria Registry Service",
|
|
11
|
+
"provider": "golang",
|
|
12
|
+
"service": true
|
|
13
|
+
},
|
|
14
|
+
"actions": [
|
|
15
|
+
{
|
|
16
|
+
"action": "ddl",
|
|
17
|
+
"input": {
|
|
18
|
+
"format": {
|
|
19
|
+
"prompt": "Plugin Format",
|
|
20
|
+
"description": "The result format the plugin should be retrieved in",
|
|
21
|
+
"type": "list",
|
|
22
|
+
"default": "json",
|
|
23
|
+
"optional": true,
|
|
24
|
+
"list": [
|
|
25
|
+
"ddl",
|
|
26
|
+
"json"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"name": {
|
|
30
|
+
"prompt": "Plugin Name",
|
|
31
|
+
"description": "The name of the plugin",
|
|
32
|
+
"type": "string",
|
|
33
|
+
"optional": false,
|
|
34
|
+
"validation": "shellsafe",
|
|
35
|
+
"maxlength": 64
|
|
36
|
+
},
|
|
37
|
+
"plugin_type": {
|
|
38
|
+
"prompt": "Plugin Type",
|
|
39
|
+
"description": "The type of plugin",
|
|
40
|
+
"type": "list",
|
|
41
|
+
"default": "agent",
|
|
42
|
+
"optional": false,
|
|
43
|
+
"list": [
|
|
44
|
+
"agent"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"output": {
|
|
49
|
+
"ddl": {
|
|
50
|
+
"description": "The plugin DDL in the requested format",
|
|
51
|
+
"display_as": "DDL",
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"name": {
|
|
55
|
+
"description": "The name of the plugin",
|
|
56
|
+
"display_as": "Name",
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"plugin_type": {
|
|
60
|
+
"description": "The type of plugin",
|
|
61
|
+
"display_as": "Type",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"version": {
|
|
65
|
+
"description": "The version of the plugin",
|
|
66
|
+
"display_as": "Version",
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"display": "always",
|
|
71
|
+
"description": "Retrieve the DDL for a specific plugin"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
@@ -2,7 +2,7 @@ metadata :name => "rpcutil",
|
|
|
2
2
|
:description => "Utility actions that expose information about the state of the running Server",
|
|
3
3
|
:author => "R.I.Pienaar <rip@devco.net>",
|
|
4
4
|
:license => "Apache-2.0",
|
|
5
|
-
:version => "0.
|
|
5
|
+
:version => "0.23.0",
|
|
6
6
|
:url => "https://choria.io/",
|
|
7
7
|
:timeout => 2
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Utility actions that expose information about the state of the running Server",
|
|
6
6
|
"author": "R.I.Pienaar <rip@devco.net>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.23.0",
|
|
9
9
|
"url": "https://choria.io/",
|
|
10
10
|
"timeout": 2
|
|
11
11
|
},
|
|
@@ -2,7 +2,7 @@ metadata :name => "scout",
|
|
|
2
2
|
:description => "Choria Scout Agent Management API",
|
|
3
3
|
:author => "R.I.Pienaar <rip@devco.net>",
|
|
4
4
|
:license => "Apache-2.0",
|
|
5
|
-
:version => "0.
|
|
5
|
+
:version => "0.23.0",
|
|
6
6
|
:url => "https://choria.io",
|
|
7
7
|
:provider => "golang",
|
|
8
8
|
:timeout => 5
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: choria-mcorpc-support
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.25.
|
|
4
|
+
version: 2.25.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- R.I.Pienaar
|
|
@@ -65,6 +65,8 @@ files:
|
|
|
65
65
|
- lib/mcollective/agent/bolt_tasks.rb
|
|
66
66
|
- lib/mcollective/agent/choria_provision.ddl
|
|
67
67
|
- lib/mcollective/agent/choria_provision.json
|
|
68
|
+
- lib/mcollective/agent/choria_registry.ddl
|
|
69
|
+
- lib/mcollective/agent/choria_registry.json
|
|
68
70
|
- lib/mcollective/agent/choria_util.ddl
|
|
69
71
|
- lib/mcollective/agent/choria_util.json
|
|
70
72
|
- lib/mcollective/agent/rpcutil.ddl
|