foreman_remote_execution 1.4.6 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/controllers/api/v2/job_invocations_controller.rb +3 -1
- data/app/models/concerns/foreman_remote_execution/foreman_tasks_cleaner_extensions.rb +6 -9
- data/app/models/job_invocation_composer.rb +1 -1
- data/foreman_remote_execution.gemspec +1 -1
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/locale/action_names.rb +2 -2
- data/locale/foreman_remote_execution.pot +304 -173
- data/test/functional/api/v2/job_templates_controller_test.rb +2 -0
- data/test/unit/concerns/foreman_tasks_cleaner_extensions_test.rb +9 -0
- metadata +13 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ba209c6348446c266991c2e6880200aaf8fb30bb
|
4
|
+
data.tar.gz: 3621380b18fd2c7da59ba1f7e4e099cdcd3a5fdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c1fbd4411e47233b8b8b839b1bb104caefbf24438e5c4643218e93d0ebc07163e6abd6fa88175383849baca51fecb05b26b11e9ee9eaba4a74e70469dd3056a
|
7
|
+
data.tar.gz: 461ec40952a2b9490a65edb47a99048b807d26ca37c1d238586e61093c32cd07ccf8238a856fc9a7567b8c6653173a6df5dfee244fbf313237cab467009ae625
|
@@ -148,7 +148,9 @@ module Api
|
|
148
148
|
def job_invocation_params
|
149
149
|
return @job_invocation_params if @job_invocation_params.present?
|
150
150
|
job_invocation_params = params.fetch(:job_invocation, {}).dup
|
151
|
-
|
151
|
+
if job_invocation_params.key?(:ssh)
|
152
|
+
job_invocation_params.merge!(job_invocation_params.delete(:ssh).permit(:effective_user))
|
153
|
+
end
|
152
154
|
job_invocation_params[:inputs] ||= {}
|
153
155
|
job_invocation_params[:inputs].permit!
|
154
156
|
@job_invocation_params = job_invocation_params
|
@@ -10,13 +10,10 @@ module ForemanRemoteExecution
|
|
10
10
|
module JobInvocationCleaner
|
11
11
|
def delete
|
12
12
|
super
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
count = orphaned_job_invocations.count
|
18
|
-
orphaned_job_invocations.find_each(&:destroy)
|
19
|
-
say "deleted #{count} orphaned job_invocations", false if verbose
|
13
|
+
with_noop(orphaned_job_invocations, 'oprhaned job invocations') do |source, name|
|
14
|
+
with_batches(source, name) do |invocations|
|
15
|
+
invocations.destroy_all
|
16
|
+
end
|
20
17
|
end
|
21
18
|
end
|
22
19
|
|
@@ -25,8 +22,8 @@ module ForemanRemoteExecution
|
|
25
22
|
delete_job_invocations(chunk)
|
26
23
|
end
|
27
24
|
|
28
|
-
def delete_job_invocations(
|
29
|
-
JobInvocation.where(:task_id =>
|
25
|
+
def delete_job_invocations(tasks)
|
26
|
+
JobInvocation.where(:task_id => tasks.map(&:id)).find_each(&:destroy)
|
30
27
|
end
|
31
28
|
|
32
29
|
def orphaned_job_invocations
|
@@ -11,7 +11,7 @@ class JobInvocationComposer
|
|
11
11
|
:targeting => ui_params.fetch(:targeting, {}).merge(:user_id => User.current.id),
|
12
12
|
:triggering => triggering,
|
13
13
|
:host_ids => ui_params[:host_ids],
|
14
|
-
:remote_execution_feature_id =>
|
14
|
+
:remote_execution_feature_id => job_invocation_base[:remote_execution_feature_id],
|
15
15
|
:description_format => job_invocation_base[:description_format],
|
16
16
|
:password => blank_to_nil(job_invocation_base[:password]),
|
17
17
|
:key_passphrase => blank_to_nil(job_invocation_base[:key_passphrase]),
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
s.extra_rdoc_files = Dir['README*', 'LICENSE']
|
25
25
|
|
26
26
|
s.add_dependency 'deface'
|
27
|
-
s.add_dependency 'dynflow', '
|
27
|
+
s.add_dependency 'dynflow', '>= 1.0.0', '< 2.0.0'
|
28
28
|
s.add_dependency 'foreman_remote_execution_core'
|
29
29
|
s.add_dependency 'foreman-tasks', '~> 0.12'
|
30
30
|
|
data/locale/action_names.rb
CHANGED
@@ -8,8 +8,8 @@ msgid ""
|
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: foreman_remote_execution 1.0.0\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
11
|
+
"POT-Creation-Date: 2018-03-12 13:59-0400\n"
|
12
|
+
"PO-Revision-Date: 2018-03-12 13:59-0400\n"
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
15
|
"Language: \n"
|
@@ -18,13 +18,13 @@ msgstr ""
|
|
18
18
|
"Content-Transfer-Encoding: 8bit\n"
|
19
19
|
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
20
20
|
|
21
|
-
#: ../app/assets/javascripts/execution_interface.js:2
|
21
|
+
#: ../app/assets/javascripts/foreman_remote_execution/execution_interface.js:2
|
22
22
|
msgid ""
|
23
23
|
"Another interface is already set as execution. Are you sure you want to use th"
|
24
24
|
"is one instead?"
|
25
25
|
msgstr ""
|
26
26
|
|
27
|
-
#: ../app/assets/javascripts/template_invocation.js:94
|
27
|
+
#: ../app/assets/javascripts/foreman_remote_execution/template_invocation.js:94
|
28
28
|
msgid "There was an error while updating the status, try refreshing the page."
|
29
29
|
msgstr ""
|
30
30
|
|
@@ -68,199 +68,217 @@ msgstr ""
|
|
68
68
|
msgid "Update a foreign input set"
|
69
69
|
msgstr ""
|
70
70
|
|
71
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
71
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:13
|
72
72
|
msgid "List job invocations"
|
73
73
|
msgstr ""
|
74
74
|
|
75
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
75
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:19
|
76
76
|
msgid "Show job invocation"
|
77
77
|
msgstr ""
|
78
78
|
|
79
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
80
|
-
msgid "The job template to use"
|
79
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:26
|
80
|
+
msgid "The job template to use, parameter is required unless feature was specified"
|
81
81
|
msgstr ""
|
82
82
|
|
83
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
83
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:27
|
84
84
|
msgid "Invocation type, one of %s"
|
85
85
|
msgstr ""
|
86
86
|
|
87
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
87
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:28
|
88
88
|
msgid "Inputs to use"
|
89
89
|
msgstr ""
|
90
90
|
|
91
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
92
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
91
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:29
|
92
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:60
|
93
93
|
msgid "SSH provider specific options"
|
94
94
|
msgstr ""
|
95
95
|
|
96
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
96
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:32
|
97
97
|
msgid ""
|
98
98
|
"What user should be used to run the script (using sudo-like mechanisms). Defau"
|
99
99
|
"lts to a template parameter or global setting."
|
100
100
|
msgstr ""
|
101
101
|
|
102
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
102
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:35
|
103
103
|
msgid "Create a recurring job"
|
104
104
|
msgstr ""
|
105
105
|
|
106
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
106
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:36
|
107
107
|
msgid "How often the job should occur, in the cron format"
|
108
108
|
msgstr ""
|
109
109
|
|
110
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
110
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:37
|
111
111
|
msgid "Repeat a maximum of N times"
|
112
112
|
msgstr ""
|
113
113
|
|
114
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
114
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:38
|
115
115
|
msgid "Perform no more executions after this time"
|
116
116
|
msgstr ""
|
117
117
|
|
118
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
118
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:41
|
119
119
|
msgid "Schedule the job to start at a later time"
|
120
120
|
msgstr ""
|
121
121
|
|
122
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
122
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:42
|
123
123
|
msgid "Schedule the job for a future time"
|
124
124
|
msgstr ""
|
125
125
|
|
126
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
126
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:43
|
127
127
|
msgid ""
|
128
128
|
"Indicates that the action should be cancelled if it cannot be started before t"
|
129
129
|
"his time."
|
130
130
|
msgstr ""
|
131
131
|
|
132
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
132
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:46
|
133
133
|
msgid "Control concurrency level and distribution over time"
|
134
134
|
msgstr ""
|
135
135
|
|
136
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
136
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:47
|
137
137
|
msgid "Distribute tasks over N seconds"
|
138
138
|
msgstr ""
|
139
139
|
|
140
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
141
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
140
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:48
|
141
|
+
#: ../app/views/job_invocations/_form.html.erb:99
|
142
142
|
msgid "Run at most N tasks at a time"
|
143
143
|
msgstr ""
|
144
144
|
|
145
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
145
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:53
|
146
146
|
msgid "Override the description format from the template for this invocation only"
|
147
147
|
msgstr ""
|
148
148
|
|
149
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
149
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:54
|
150
150
|
msgid "Override the timeout interval from the template for this invocation only"
|
151
151
|
msgstr ""
|
152
152
|
|
153
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
153
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:55
|
154
|
+
msgid ""
|
155
|
+
"Remote execution feature label that should be triggered, job template assigned"
|
156
|
+
" to this feature will be used"
|
157
|
+
msgstr ""
|
158
|
+
|
159
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:59
|
154
160
|
msgid "Create a job invocation"
|
155
161
|
msgstr ""
|
156
162
|
|
157
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
163
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:75
|
158
164
|
msgid "Get output for a host"
|
159
165
|
msgstr ""
|
160
166
|
|
161
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
167
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:98
|
168
|
+
msgid "Cancel job invocation"
|
169
|
+
msgstr ""
|
170
|
+
|
171
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:106
|
172
|
+
msgid "The job could not be cancelled."
|
173
|
+
msgstr ""
|
174
|
+
|
175
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:111
|
176
|
+
msgid "Rerun job on failed hosts"
|
177
|
+
msgstr ""
|
178
|
+
|
179
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:139
|
162
180
|
msgid "Host with id '%{id}' was not found"
|
163
181
|
msgstr ""
|
164
182
|
|
165
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
183
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:145
|
166
184
|
msgid "Template with id '%{id}' was not found"
|
167
185
|
msgstr ""
|
168
186
|
|
169
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
187
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:16
|
170
188
|
msgid "List job templates"
|
171
189
|
msgstr ""
|
172
190
|
|
173
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
191
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:17
|
174
192
|
msgid "List job templates per location"
|
175
193
|
msgstr ""
|
176
194
|
|
177
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
195
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:18
|
178
196
|
msgid "List job templates per organization"
|
179
197
|
msgstr ""
|
180
198
|
|
181
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
199
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:25
|
182
200
|
msgid "Import a job template from ERB"
|
183
201
|
msgstr ""
|
184
202
|
|
185
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
203
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:26
|
186
204
|
msgid "Template ERB"
|
187
205
|
msgstr ""
|
188
206
|
|
189
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
207
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:27
|
190
208
|
msgid "Overwrite template if it already exists"
|
191
209
|
msgstr ""
|
192
210
|
|
193
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
211
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:36
|
194
212
|
msgid "Export a job template to ERB"
|
195
213
|
msgstr ""
|
196
214
|
|
197
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
215
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:43
|
198
216
|
msgid "Show job template details"
|
199
217
|
msgstr ""
|
200
218
|
|
201
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
202
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
219
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:49
|
220
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:100
|
203
221
|
msgid "Template name"
|
204
222
|
msgstr ""
|
205
223
|
|
206
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
224
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:50
|
207
225
|
#: ../app/views/job_invocations/_form.html.erb:9
|
208
226
|
#: ../app/views/job_templates/_custom_tabs.html.erb:3
|
209
227
|
#: ../app/views/job_templates/_custom_tabs.html.erb:6
|
210
228
|
msgid "Job category"
|
211
229
|
msgstr ""
|
212
230
|
|
213
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
231
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:51
|
214
232
|
msgid ""
|
215
233
|
"This template is used to generate the description. Input values can be used us"
|
216
234
|
"ing the syntax %{package}. You may also include the job category and template "
|
217
235
|
"name using %{job_category} and %{template_name}."
|
218
236
|
msgstr ""
|
219
237
|
|
220
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
238
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:56
|
221
239
|
msgid "Provider type"
|
222
240
|
msgstr ""
|
223
241
|
|
224
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
242
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:59
|
225
243
|
msgid "Whether or not the template is locked for editing"
|
226
244
|
msgstr ""
|
227
245
|
|
228
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
246
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:61
|
229
247
|
msgid "Effective user options"
|
230
248
|
msgstr ""
|
231
249
|
|
232
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
250
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:62
|
233
251
|
msgid "What user should be used to run the script (using sudo-like mechanisms)"
|
234
252
|
msgstr ""
|
235
253
|
|
236
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
254
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:63
|
237
255
|
msgid ""
|
238
256
|
"Whether it should be allowed to override the effective user from the invocatio"
|
239
257
|
"n form."
|
240
258
|
msgstr ""
|
241
259
|
|
242
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
260
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:64
|
243
261
|
msgid "Whether the current user login should be used as the effective user"
|
244
262
|
msgstr ""
|
245
263
|
|
246
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
264
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:71
|
247
265
|
msgid "Create a job template"
|
248
266
|
msgstr ""
|
249
267
|
|
250
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
268
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:78
|
251
269
|
#: ../app/controllers/api/v2/remote_execution_features_controller.rb:24
|
252
270
|
msgid "Update a job template"
|
253
271
|
msgstr ""
|
254
272
|
|
255
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
273
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:86
|
256
274
|
msgid "Template version"
|
257
275
|
msgstr ""
|
258
276
|
|
259
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
277
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:92
|
260
278
|
msgid "Delete a job template"
|
261
279
|
msgstr ""
|
262
280
|
|
263
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
281
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:104
|
264
282
|
msgid "Clone a provision template"
|
265
283
|
msgstr ""
|
266
284
|
|
@@ -336,6 +354,22 @@ msgstr ""
|
|
336
354
|
msgid "Update a template input"
|
337
355
|
msgstr ""
|
338
356
|
|
357
|
+
#: ../app/controllers/job_invocations_controller.rb:82
|
358
|
+
msgid "Trying to abort the job"
|
359
|
+
msgstr ""
|
360
|
+
|
361
|
+
#: ../app/controllers/job_invocations_controller.rb:84
|
362
|
+
msgid "Trying to cancel the job"
|
363
|
+
msgstr ""
|
364
|
+
|
365
|
+
#: ../app/controllers/job_invocations_controller.rb:88
|
366
|
+
msgid "The job cannot be aborted at the moment."
|
367
|
+
msgstr ""
|
368
|
+
|
369
|
+
#: ../app/controllers/job_invocations_controller.rb:90
|
370
|
+
msgid "The job cannot be cancelled at the moment."
|
371
|
+
msgstr ""
|
372
|
+
|
339
373
|
#: ../app/controllers/job_templates_controller.rb:25
|
340
374
|
msgid ""
|
341
375
|
"Problem with previewing the template: %{error}. Note that you must save templa"
|
@@ -351,18 +385,18 @@ msgid "Unable to save template. Correct highlighted errors"
|
|
351
385
|
msgstr ""
|
352
386
|
|
353
387
|
#:
|
354
|
-
#: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:
|
355
|
-
#: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:
|
388
|
+
#: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:4
|
389
|
+
#: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:20
|
356
390
|
msgid "Schedule Remote Job"
|
357
391
|
msgstr ""
|
358
392
|
|
359
393
|
#:
|
360
|
-
#: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:
|
394
|
+
#: ../app/helpers/concerns/foreman_remote_execution/hosts_helper_extensions.rb:9
|
361
395
|
msgid "%s"
|
362
396
|
msgstr ""
|
363
397
|
|
364
398
|
#:
|
365
|
-
#: ../app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb:
|
399
|
+
#: ../app/helpers/concerns/foreman_remote_execution/job_templates_extensions.rb:7
|
366
400
|
msgid "Run"
|
367
401
|
msgstr ""
|
368
402
|
|
@@ -434,8 +468,8 @@ msgid "Rerun on %s"
|
|
434
468
|
msgstr ""
|
435
469
|
|
436
470
|
#: ../app/helpers/remote_execution_helper.rb:87
|
437
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
438
|
-
#: ../app/models/job_invocation.rb:
|
471
|
+
#: ../app/helpers/remote_execution_helper.rb:216
|
472
|
+
#: ../app/models/job_invocation.rb:167
|
439
473
|
msgid "N/A"
|
440
474
|
msgstr ""
|
441
475
|
|
@@ -444,12 +478,12 @@ msgid "Run Job"
|
|
444
478
|
msgstr ""
|
445
479
|
|
446
480
|
#: ../app/helpers/remote_execution_helper.rb:102
|
447
|
-
|
481
|
+
#: ../app/views/job_invocations/_form.html.erb:41
|
482
|
+
msgid "Refresh"
|
448
483
|
msgstr ""
|
449
484
|
|
450
485
|
#: ../app/helpers/remote_execution_helper.rb:102
|
451
|
-
|
452
|
-
msgid "Refresh"
|
486
|
+
msgid "Refresh this page"
|
453
487
|
msgstr ""
|
454
488
|
|
455
489
|
#: ../app/helpers/remote_execution_helper.rb:104
|
@@ -477,7 +511,7 @@ msgid "See the last task details"
|
|
477
511
|
msgstr ""
|
478
512
|
|
479
513
|
#: ../app/helpers/remote_execution_helper.rb:120
|
480
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
514
|
+
#: ../app/helpers/remote_execution_helper.rb:143
|
481
515
|
msgid "Cancel Job"
|
482
516
|
msgstr ""
|
483
517
|
|
@@ -485,47 +519,60 @@ msgstr ""
|
|
485
519
|
msgid "Try to cancel the job"
|
486
520
|
msgstr ""
|
487
521
|
|
488
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
522
|
+
#: ../app/helpers/remote_execution_helper.rb:125
|
523
|
+
#: ../app/helpers/remote_execution_helper.rb:148
|
524
|
+
msgid "Abort Job"
|
525
|
+
msgstr ""
|
526
|
+
|
527
|
+
#: ../app/helpers/remote_execution_helper.rb:127
|
528
|
+
msgid "Try to abort the job without waiting for the results from the remote hosts"
|
529
|
+
msgstr ""
|
530
|
+
|
531
|
+
#: ../app/helpers/remote_execution_helper.rb:138
|
489
532
|
msgid "Task Details"
|
490
533
|
msgstr ""
|
491
534
|
|
492
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
535
|
+
#: ../app/helpers/remote_execution_helper.rb:140
|
493
536
|
msgid "See the task details"
|
494
537
|
msgstr ""
|
495
538
|
|
496
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
539
|
+
#: ../app/helpers/remote_execution_helper.rb:145
|
497
540
|
msgid "Try to cancel the job on a host"
|
498
541
|
msgstr ""
|
499
542
|
|
500
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
501
|
-
msgid "
|
543
|
+
#: ../app/helpers/remote_execution_helper.rb:150
|
544
|
+
msgid "Try to abort the job on a host without waiting for its result"
|
502
545
|
msgstr ""
|
503
546
|
|
504
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
505
|
-
msgid "
|
547
|
+
#: ../app/helpers/remote_execution_helper.rb:194
|
548
|
+
msgid "Could not render the preview because no host matches the search query."
|
506
549
|
msgstr ""
|
507
550
|
|
508
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
551
|
+
#: ../app/helpers/remote_execution_helper.rb:218
|
509
552
|
msgid "in %s"
|
510
553
|
msgstr ""
|
511
554
|
|
512
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
555
|
+
#: ../app/helpers/remote_execution_helper.rb:218
|
556
|
+
msgid "%s ago"
|
557
|
+
msgstr ""
|
558
|
+
|
559
|
+
#: ../app/helpers/remote_execution_helper.rb:230
|
513
560
|
msgid "Template input"
|
514
561
|
msgstr ""
|
515
562
|
|
516
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
563
|
+
#: ../app/helpers/remote_execution_helper.rb:232
|
517
564
|
msgid "remove template input"
|
518
565
|
msgstr ""
|
519
566
|
|
520
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
567
|
+
#: ../app/helpers/remote_execution_helper.rb:245
|
521
568
|
msgid "Use default description template"
|
522
569
|
msgstr ""
|
523
570
|
|
524
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
571
|
+
#: ../app/helpers/remote_execution_helper.rb:250
|
525
572
|
msgid "Description template"
|
526
573
|
msgstr ""
|
527
574
|
|
528
|
-
#: ../app/helpers/remote_execution_helper.rb:
|
575
|
+
#: ../app/helpers/remote_execution_helper.rb:260
|
529
576
|
msgid ""
|
530
577
|
"This template is used to generate the description.<br/>Input values can be use"
|
531
578
|
"d using the syntax %{package}.<br/>You may also include the job category and t"
|
@@ -537,57 +584,65 @@ msgid "Could not use any template used in the job invocation"
|
|
537
584
|
msgstr ""
|
538
585
|
|
539
586
|
#: ../app/lib/actions/remote_execution/run_host_job.rb:33
|
540
|
-
msgid "
|
541
|
-
msgid_plural "All %{count} applicable proxies are down. Tried %{proxy_names}"
|
542
|
-
msgstr[0] ""
|
543
|
-
msgstr[1] ""
|
544
|
-
|
545
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:41
|
546
|
-
msgid ""
|
547
|
-
"Could not use any proxy. Consider configuring %{global_proxy}, %{fallback_prox"
|
548
|
-
"y} or %{no_proxy} in settings"
|
587
|
+
msgid "Failed rendering template: %s"
|
549
588
|
msgstr ""
|
550
589
|
|
551
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
552
|
-
msgid "
|
590
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:56
|
591
|
+
msgid "Task cancelled"
|
553
592
|
msgstr ""
|
554
593
|
|
555
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
594
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:57
|
556
595
|
msgid "Job execution failed"
|
557
596
|
msgstr ""
|
558
597
|
|
559
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
598
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:66
|
560
599
|
msgid "%{description} on %{host}"
|
561
600
|
msgstr ""
|
562
601
|
|
563
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
602
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:71 action_names.rb:2
|
564
603
|
msgid "Remote action:"
|
565
604
|
msgstr ""
|
566
605
|
|
567
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
606
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:95
|
607
|
+
msgid "Job cancelled by user"
|
608
|
+
msgstr ""
|
609
|
+
|
610
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:100
|
568
611
|
msgid "Exit status: %s"
|
569
612
|
msgstr ""
|
570
613
|
|
571
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
614
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:102
|
572
615
|
msgid "Job finished with error"
|
573
616
|
msgstr ""
|
574
617
|
|
575
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
618
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:105
|
576
619
|
msgid "Error loading data from proxy"
|
577
620
|
msgstr ""
|
578
621
|
|
579
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
622
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:130
|
580
623
|
msgid "User can not execute job on host %s"
|
581
624
|
msgstr ""
|
582
625
|
|
583
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
626
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:131
|
584
627
|
msgid "User can not execute this job template"
|
585
628
|
msgstr ""
|
586
629
|
|
587
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
630
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:136
|
588
631
|
msgid "User can not execute this job template on %s"
|
589
632
|
msgstr ""
|
590
633
|
|
634
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:146
|
635
|
+
msgid "The only applicable proxy %{proxy_names} is down"
|
636
|
+
msgid_plural "All %{count} applicable proxies are down. Tried %{proxy_names}"
|
637
|
+
msgstr[0] ""
|
638
|
+
msgstr[1] ""
|
639
|
+
|
640
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:154
|
641
|
+
msgid ""
|
642
|
+
"Could not use any proxy. Consider configuring %{global_proxy}, %{fallback_prox"
|
643
|
+
"y} or %{no_proxy} in settings"
|
644
|
+
msgstr ""
|
645
|
+
|
591
646
|
#: ../app/lib/proxy_api/remote_execution_ssh.rb:11
|
592
647
|
msgid "Unable to fetch public key"
|
593
648
|
msgstr ""
|
@@ -640,31 +695,31 @@ msgstr ""
|
|
640
695
|
msgid "included template '%s' not found"
|
641
696
|
msgstr ""
|
642
697
|
|
643
|
-
#: ../app/models/job_invocation.rb:
|
698
|
+
#: ../app/models/job_invocation.rb:10
|
644
699
|
msgid "template"
|
645
700
|
msgstr ""
|
646
701
|
|
647
|
-
#: ../app/models/job_invocation_composer.rb:
|
702
|
+
#: ../app/models/job_invocation_composer.rb:105
|
648
703
|
msgid "Cannot specify both bookmark_id and search_query"
|
649
704
|
msgstr ""
|
650
705
|
|
651
|
-
#: ../app/models/job_invocation_composer.rb:
|
706
|
+
#: ../app/models/job_invocation_composer.rb:110
|
652
707
|
msgid "Cannot specify both recurrence and scheduling"
|
653
708
|
msgstr ""
|
654
709
|
|
655
|
-
#: ../app/models/job_invocation_composer.rb:
|
710
|
+
#: ../app/models/job_invocation_composer.rb:144
|
656
711
|
msgid "Unknown input %{input_name} for template %{template_name}"
|
657
712
|
msgstr ""
|
658
713
|
|
659
|
-
#: ../app/models/job_invocation_composer.rb:
|
714
|
+
#: ../app/models/job_invocation_composer.rb:271
|
660
715
|
msgid "Feature input %{input_name} not defined in template %{template_name}"
|
661
716
|
msgstr ""
|
662
717
|
|
663
|
-
#: ../app/models/job_invocation_composer.rb:
|
718
|
+
#: ../app/models/job_invocation_composer.rb:280
|
664
719
|
msgid "No template mapped to feature %{feature_name}"
|
665
720
|
msgstr ""
|
666
721
|
|
667
|
-
#: ../app/models/job_invocation_composer.rb:
|
722
|
+
#: ../app/models/job_invocation_composer.rb:286
|
668
723
|
msgid ""
|
669
724
|
"The template %{template_name} mapped to feature %{feature_name} is not accessi"
|
670
725
|
"ble by the user"
|
@@ -682,24 +737,40 @@ msgstr ""
|
|
682
737
|
msgid "This template is locked. Please clone it to a new template to customize."
|
683
738
|
msgstr ""
|
684
739
|
|
685
|
-
#: ../app/models/remote_execution_feature.rb:
|
740
|
+
#: ../app/models/remote_execution_feature.rb:23
|
686
741
|
msgid "Unknown remote execution feature %s"
|
687
742
|
msgstr ""
|
688
743
|
|
689
|
-
#: ../app/models/
|
744
|
+
#: ../app/models/remote_execution_provider.rb:41
|
745
|
+
msgid "Effective user method \"%{current_value}\" is not one of %{valid_methods}"
|
746
|
+
msgstr ""
|
747
|
+
|
748
|
+
#: ../app/models/remote_execution_provider.rb:67
|
749
|
+
msgid "Could not find any suitable interface for execution"
|
750
|
+
msgstr ""
|
751
|
+
|
752
|
+
#: ../app/models/setting/remote_execution.rb:14
|
690
753
|
msgid ""
|
691
754
|
"Search the host for any proxy with Remote Execution, useful when the host has "
|
692
755
|
"no subnet or the subnet does not have an execution proxy"
|
693
756
|
msgstr ""
|
694
757
|
|
695
|
-
#: ../app/models/setting/remote_execution.rb:
|
758
|
+
#: ../app/models/setting/remote_execution.rb:16
|
759
|
+
msgid "Fallback to Any Proxy"
|
760
|
+
msgstr ""
|
761
|
+
|
762
|
+
#: ../app/models/setting/remote_execution.rb:18
|
696
763
|
msgid ""
|
697
764
|
"Search for remote execution proxy outside of the proxies assigned to the host."
|
698
765
|
" If locations or organizations are enabled, the search will be limited to the "
|
699
766
|
"host's organization or location."
|
700
767
|
msgstr ""
|
701
768
|
|
702
|
-
#: ../app/models/setting/remote_execution.rb:
|
769
|
+
#: ../app/models/setting/remote_execution.rb:22
|
770
|
+
msgid "Enable Global Proxy"
|
771
|
+
msgstr ""
|
772
|
+
|
773
|
+
#: ../app/models/setting/remote_execution.rb:24
|
703
774
|
msgid ""
|
704
775
|
"When enabled, the remote execution will try to run the commands directly, when"
|
705
776
|
" no\n"
|
@@ -707,49 +778,89 @@ msgid ""
|
|
707
778
|
" host."
|
708
779
|
msgstr ""
|
709
780
|
|
710
|
-
#: ../app/models/setting/remote_execution.rb:
|
781
|
+
#: ../app/models/setting/remote_execution.rb:27
|
782
|
+
msgid "Fallback Without Proxy"
|
783
|
+
msgstr ""
|
784
|
+
|
785
|
+
#: ../app/models/setting/remote_execution.rb:29
|
711
786
|
msgid ""
|
712
787
|
"Default user to use for SSH. You may override per host by setting a parameter"
|
713
788
|
" called remote_execution_ssh_user."
|
714
789
|
msgstr ""
|
715
790
|
|
716
|
-
#: ../app/models/setting/remote_execution.rb:
|
791
|
+
#: ../app/models/setting/remote_execution.rb:31
|
792
|
+
msgid "SSH User"
|
793
|
+
msgstr ""
|
794
|
+
|
795
|
+
#: ../app/models/setting/remote_execution.rb:33
|
717
796
|
msgid ""
|
718
797
|
"Default user to use for executing the script. If the user differs from the SSH"
|
719
798
|
" user, su or sudo is used to switch the user."
|
720
799
|
msgstr ""
|
721
800
|
|
722
|
-
#: ../app/models/setting/remote_execution.rb:
|
801
|
+
#: ../app/models/setting/remote_execution.rb:35
|
802
|
+
msgid "Effective User"
|
803
|
+
msgstr ""
|
804
|
+
|
805
|
+
#: ../app/models/setting/remote_execution.rb:37
|
723
806
|
msgid "What command should be used to switch to the effective user. One of %s"
|
724
807
|
msgstr ""
|
725
808
|
|
726
|
-
#: ../app/models/setting/remote_execution.rb:
|
809
|
+
#: ../app/models/setting/remote_execution.rb:39
|
810
|
+
msgid "Effective User Method"
|
811
|
+
msgstr ""
|
812
|
+
|
813
|
+
#: ../app/models/setting/remote_execution.rb:43
|
727
814
|
msgid "Whether we should sync templates from disk when running db:seed."
|
728
815
|
msgstr ""
|
729
816
|
|
730
|
-
#: ../app/models/setting/remote_execution.rb:
|
817
|
+
#: ../app/models/setting/remote_execution.rb:45
|
818
|
+
msgid "Sync Job Templates"
|
819
|
+
msgstr ""
|
820
|
+
|
821
|
+
#: ../app/models/setting/remote_execution.rb:47
|
731
822
|
msgid ""
|
732
823
|
"Port to use for SSH communication. Default port 22. You may override per host "
|
733
824
|
"by setting a parameter called remote_execution_ssh_port."
|
734
825
|
msgstr ""
|
735
826
|
|
736
|
-
#: ../app/models/setting/remote_execution.rb:
|
827
|
+
#: ../app/models/setting/remote_execution.rb:49
|
828
|
+
msgid "SSH Port"
|
829
|
+
msgstr ""
|
830
|
+
|
831
|
+
#: ../app/models/setting/remote_execution.rb:51
|
737
832
|
msgid ""
|
738
833
|
"Should the ip addresses on host interfaces be preferred over the fqdn? It is u"
|
739
834
|
"seful, when DNS not resolving the fqdns properly. You may override this per ho"
|
740
835
|
"st by setting a parameter called remote_execution_connect_by_ip."
|
741
836
|
msgstr ""
|
742
837
|
|
743
|
-
#: ../app/models/
|
744
|
-
msgid "
|
838
|
+
#: ../app/models/setting/remote_execution.rb:54
|
839
|
+
msgid "Connect by IP"
|
745
840
|
msgstr ""
|
746
841
|
|
747
|
-
#: ../app/models/
|
748
|
-
msgid "
|
842
|
+
#: ../app/models/setting/remote_execution.rb:56
|
843
|
+
msgid ""
|
844
|
+
"Default password to use for SSH. You may override per host by setting a parame"
|
845
|
+
"ter called remote_execution_ssh_password"
|
749
846
|
msgstr ""
|
750
847
|
|
751
|
-
#: ../app/models/
|
752
|
-
msgid "
|
848
|
+
#: ../app/models/setting/remote_execution.rb:58
|
849
|
+
msgid "Default SSH password"
|
850
|
+
msgstr ""
|
851
|
+
|
852
|
+
#: ../app/models/setting/remote_execution.rb:62
|
853
|
+
msgid ""
|
854
|
+
"Default key passphrase to use for SSH. You may override per host by setting a "
|
855
|
+
"parameter called remote_execution_ssh_key_passphrase"
|
856
|
+
msgstr ""
|
857
|
+
|
858
|
+
#: ../app/models/setting/remote_execution.rb:64
|
859
|
+
msgid "Default SSH key passphrase"
|
860
|
+
msgstr ""
|
861
|
+
|
862
|
+
#: ../app/models/ssh_execution_provider.rb:11
|
863
|
+
msgid "SSH"
|
753
864
|
msgstr ""
|
754
865
|
|
755
866
|
#: ../app/models/targeting.rb:5
|
@@ -773,7 +884,7 @@ msgid "Must select a bookmark or enter a search query"
|
|
773
884
|
msgstr ""
|
774
885
|
|
775
886
|
#: ../app/models/template_input.rb:9
|
776
|
-
msgid "
|
887
|
+
msgid "User input"
|
777
888
|
msgstr ""
|
778
889
|
|
779
890
|
#: ../app/models/template_input.rb:9
|
@@ -781,7 +892,7 @@ msgid "Fact value"
|
|
781
892
|
msgstr ""
|
782
893
|
|
783
894
|
#: ../app/models/template_input.rb:9
|
784
|
-
msgid "
|
895
|
+
msgid "Variable"
|
785
896
|
msgstr ""
|
786
897
|
|
787
898
|
#: ../app/models/template_input.rb:10
|
@@ -796,7 +907,7 @@ msgstr ""
|
|
796
907
|
msgid "Input"
|
797
908
|
msgstr ""
|
798
909
|
|
799
|
-
#: ../app/models/template_invocation.rb:
|
910
|
+
#: ../app/models/template_invocation.rb:94
|
800
911
|
msgid "Not all required inputs have values. Missing inputs: %s"
|
801
912
|
msgstr ""
|
802
913
|
|
@@ -806,71 +917,93 @@ msgstr ""
|
|
806
917
|
msgid "Description"
|
807
918
|
msgstr ""
|
808
919
|
|
809
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
920
|
+
#: ../app/views/job_invocations/_form.html.erb:21
|
810
921
|
msgid "Job template"
|
811
922
|
msgstr ""
|
812
923
|
|
813
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
924
|
+
#: ../app/views/job_invocations/_form.html.erb:37
|
814
925
|
msgid "Resolves to"
|
815
926
|
msgstr ""
|
816
927
|
|
817
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
928
|
+
#: ../app/views/job_invocations/_form.html.erb:40
|
818
929
|
msgid "hosts"
|
819
930
|
msgstr ""
|
820
931
|
|
821
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
932
|
+
#: ../app/views/job_invocations/_form.html.erb:44
|
822
933
|
msgid "Preview"
|
823
934
|
msgstr ""
|
824
935
|
|
825
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
826
|
-
msgid "
|
936
|
+
#: ../app/views/job_invocations/_form.html.erb:65
|
937
|
+
msgid "Display advanced fields"
|
827
938
|
msgstr ""
|
828
939
|
|
829
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
830
|
-
msgid "
|
940
|
+
#: ../app/views/job_invocations/_form.html.erb:65
|
941
|
+
msgid "Hide advanced fields"
|
831
942
|
msgstr ""
|
832
943
|
|
833
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
944
|
+
#: ../app/views/job_invocations/_form.html.erb:76
|
834
945
|
#: ../app/views/job_invocations/_tab_overview.html.erb:44
|
835
946
|
#: ../app/views/job_templates/_custom_tabs.html.erb:38
|
836
947
|
msgid "Effective user"
|
837
948
|
msgstr ""
|
838
949
|
|
839
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
950
|
+
#: ../app/views/job_invocations/_form.html.erb:76
|
840
951
|
msgid ""
|
841
952
|
"A user to be used for executing the script. If it differs from the SSH user, s"
|
842
953
|
"u or sudo is used to switch the accounts."
|
843
954
|
msgstr ""
|
844
955
|
|
845
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
956
|
+
#: ../app/views/job_invocations/_form.html.erb:82
|
957
|
+
#: ../app/views/job_templates/_custom_tabs.html.erb:18
|
958
|
+
msgid "Timeout to kill"
|
959
|
+
msgstr ""
|
960
|
+
|
961
|
+
#: ../app/views/job_invocations/_form.html.erb:82
|
846
962
|
msgid ""
|
847
963
|
"Time in seconds from the start on the remote host after which the job should b"
|
848
964
|
"e killed."
|
849
965
|
msgstr ""
|
850
966
|
|
851
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
852
|
-
msgid "
|
967
|
+
#: ../app/views/job_invocations/_form.html.erb:94
|
968
|
+
msgid "Password"
|
853
969
|
msgstr ""
|
854
970
|
|
855
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
856
|
-
msgid "
|
971
|
+
#: ../app/views/job_invocations/_form.html.erb:94
|
972
|
+
msgid ""
|
973
|
+
"Password is stored encrypted in DB until the job finishes. For future or recur"
|
974
|
+
"ring executions, it is removed after the last execution."
|
857
975
|
msgstr ""
|
858
976
|
|
859
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
860
|
-
msgid "
|
977
|
+
#: ../app/views/job_invocations/_form.html.erb:95
|
978
|
+
msgid "Private key passphrase"
|
861
979
|
msgstr ""
|
862
980
|
|
863
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
981
|
+
#: ../app/views/job_invocations/_form.html.erb:95
|
982
|
+
msgid ""
|
983
|
+
"Key passhprase is only applicable for SSH provider. Other providers ignore thi"
|
984
|
+
"s field. <br> Passphrase is stored encrypted in DB until the job finishes. For"
|
985
|
+
" future or recurring executions, it is removed after the last execution."
|
986
|
+
msgstr ""
|
987
|
+
|
988
|
+
#: ../app/views/job_invocations/_form.html.erb:99
|
989
|
+
msgid "Concurrency level"
|
990
|
+
msgstr ""
|
991
|
+
|
992
|
+
#: ../app/views/job_invocations/_form.html.erb:100
|
864
993
|
msgid "Time span"
|
865
994
|
msgstr ""
|
866
995
|
|
867
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
996
|
+
#: ../app/views/job_invocations/_form.html.erb:100
|
997
|
+
msgid "Distribute execution over N seconds"
|
998
|
+
msgstr ""
|
999
|
+
|
1000
|
+
#: ../app/views/job_invocations/_form.html.erb:104
|
868
1001
|
msgid "Type of query"
|
869
1002
|
msgstr ""
|
870
1003
|
|
871
|
-
#: ../app/views/job_invocations/_form.html.erb:
|
1004
|
+
#: ../app/views/job_invocations/_form.html.erb:104
|
872
1005
|
msgid ""
|
873
|
-
"Type has impact on when is the query
|
1006
|
+
"Type has impact on when is the query evaluated to hosts.<br><ul><li><b>Static<"
|
874
1007
|
"/b> - evaluates just after you submit this form</li><li><b>Dynamic</b> - evalu"
|
875
1008
|
"ates just before the execution is started, so if it's planed in future, target"
|
876
1009
|
"ed hosts set may change before it</li></ul>"
|
@@ -963,11 +1096,11 @@ msgid "following user inputs were provided"
|
|
963
1096
|
msgstr ""
|
964
1097
|
|
965
1098
|
#: ../app/views/job_invocations/_tab_overview.html.erb:47
|
966
|
-
msgid "
|
1099
|
+
msgid "Concurrency level limited to"
|
967
1100
|
msgstr ""
|
968
1101
|
|
969
1102
|
#: ../app/views/job_invocations/_tab_overview.html.erb:47
|
970
|
-
msgid "
|
1103
|
+
msgid "tasks at a time"
|
971
1104
|
msgstr ""
|
972
1105
|
|
973
1106
|
#: ../app/views/job_invocations/_tab_overview.html.erb:50
|
@@ -975,7 +1108,8 @@ msgid "Set to distribute over"
|
|
975
1108
|
msgstr ""
|
976
1109
|
|
977
1110
|
#: ../app/views/job_invocations/_tab_overview.html.erb:50
|
978
|
-
|
1111
|
+
#: ../app/views/job_invocations/_tab_overview.html.erb:56
|
1112
|
+
msgid "seconds"
|
979
1113
|
msgstr ""
|
980
1114
|
|
981
1115
|
#: ../app/views/job_invocations/_tab_overview.html.erb:53
|
@@ -986,10 +1120,6 @@ msgstr ""
|
|
986
1120
|
msgid "Timeout to kill after"
|
987
1121
|
msgstr ""
|
988
1122
|
|
989
|
-
#: ../app/views/job_invocations/_tab_overview.html.erb:56
|
990
|
-
msgid "seconds"
|
991
|
-
msgstr ""
|
992
|
-
|
993
1123
|
#: ../app/views/job_invocations/index.html.erb:1
|
994
1124
|
msgid "Job invocations"
|
995
1125
|
msgstr ""
|
@@ -1026,24 +1156,20 @@ msgstr ""
|
|
1026
1156
|
msgid "Type"
|
1027
1157
|
msgstr ""
|
1028
1158
|
|
1029
|
-
#: ../app/views/job_templates/_custom_tabs.html.erb:18
|
1030
|
-
msgid "Timeout interval"
|
1031
|
-
msgstr ""
|
1032
|
-
|
1033
1159
|
#: ../app/views/job_templates/_custom_tabs.html.erb:27
|
1034
|
-
msgid "
|
1160
|
+
msgid "Add Input"
|
1035
1161
|
msgstr ""
|
1036
1162
|
|
1037
1163
|
#: ../app/views/job_templates/_custom_tabs.html.erb:27
|
1038
|
-
msgid "
|
1164
|
+
msgid "add a input for this template"
|
1039
1165
|
msgstr ""
|
1040
1166
|
|
1041
1167
|
#: ../app/views/job_templates/_custom_tabs.html.erb:34
|
1042
|
-
msgid "
|
1168
|
+
msgid "Add Foreign Input Set"
|
1043
1169
|
msgstr ""
|
1044
1170
|
|
1045
1171
|
#: ../app/views/job_templates/_custom_tabs.html.erb:34
|
1046
|
-
msgid "
|
1172
|
+
msgid "add an input set for this template to reference a different template inputs"
|
1047
1173
|
msgstr ""
|
1048
1174
|
|
1049
1175
|
#: ../app/views/job_templates/_custom_tabs.html.erb:52
|
@@ -1109,6 +1235,10 @@ msgstr ""
|
|
1109
1235
|
msgid "Remote Execution"
|
1110
1236
|
msgstr ""
|
1111
1237
|
|
1238
|
+
#: ../app/views/overrides/subnets/_rex_tab_pane.html.erb:3
|
1239
|
+
msgid "Proxies"
|
1240
|
+
msgstr ""
|
1241
|
+
|
1112
1242
|
#: ../app/views/overrides/subnets/_rex_tab_pane.html.erb:3
|
1113
1243
|
msgid ""
|
1114
1244
|
"Select as many remote execution proxies as applicable for this subnet. When m"
|
@@ -1116,10 +1246,6 @@ msgid ""
|
|
1116
1246
|
"d among them."
|
1117
1247
|
msgstr ""
|
1118
1248
|
|
1119
|
-
#: ../app/views/overrides/subnets/_rex_tab_pane.html.erb:3
|
1120
|
-
msgid "Proxies"
|
1121
|
-
msgstr ""
|
1122
|
-
|
1123
1249
|
#: ../app/views/remote_execution_features/_form.html.erb:18
|
1124
1250
|
msgid ""
|
1125
1251
|
"You are not allowed to see the currently assigned template. Saving the form no"
|
@@ -1127,7 +1253,7 @@ msgid ""
|
|
1127
1253
|
msgstr ""
|
1128
1254
|
|
1129
1255
|
#: ../app/views/remote_execution_features/index.html.erb:1
|
1130
|
-
#: ../lib/foreman_remote_execution/engine.rb:
|
1256
|
+
#: ../lib/foreman_remote_execution/engine.rb:99
|
1131
1257
|
msgid "Remote Execution Features"
|
1132
1258
|
msgstr ""
|
1133
1259
|
|
@@ -1203,27 +1329,32 @@ msgstr ""
|
|
1203
1329
|
msgid "Unsupported or no operating system found for this host."
|
1204
1330
|
msgstr ""
|
1205
1331
|
|
1206
|
-
#: ../
|
1207
|
-
|
1332
|
+
#: ../db/seeds.d/50-notification_blueprints.rb:3
|
1333
|
+
#: ../lib/foreman_remote_execution/engine.rb:105
|
1334
|
+
msgid "Jobs"
|
1208
1335
|
msgstr ""
|
1209
1336
|
|
1210
|
-
#: ../
|
1211
|
-
msgid "
|
1337
|
+
#: ../db/seeds.d/50-notification_blueprints.rb:5
|
1338
|
+
msgid "A job '%{subject}' has finished successfully"
|
1212
1339
|
msgstr ""
|
1213
1340
|
|
1214
|
-
#:
|
1215
|
-
msgid "
|
1341
|
+
#: ../db/seeds.d/50-notification_blueprints.rb:12
|
1342
|
+
msgid "Job Details"
|
1216
1343
|
msgstr ""
|
1217
1344
|
|
1218
|
-
#:
|
1219
|
-
msgid "
|
1345
|
+
#: ../lib/foreman_remote_execution/engine.rb:94
|
1346
|
+
msgid "Job templates"
|
1220
1347
|
msgstr ""
|
1221
1348
|
|
1222
|
-
#: action_names.rb:
|
1349
|
+
#: action_names.rb:3
|
1223
1350
|
msgid "Import facts"
|
1224
1351
|
msgstr ""
|
1225
1352
|
|
1226
|
-
#: action_names.rb:
|
1353
|
+
#: action_names.rb:4
|
1354
|
+
msgid "Import Puppet classes"
|
1355
|
+
msgstr ""
|
1356
|
+
|
1357
|
+
#: action_names.rb:5
|
1227
1358
|
msgid "Action with sub plans"
|
1228
1359
|
msgstr ""
|
1229
1360
|
|
@@ -30,6 +30,8 @@ module Api
|
|
30
30
|
template = ActiveSupport::JSON.decode(@response.body)
|
31
31
|
assert !template.empty?
|
32
32
|
assert_equal template['name'], @template.name
|
33
|
+
refute_nil template['created_at']
|
34
|
+
refute_nil template['updated_at']
|
33
35
|
end
|
34
36
|
|
35
37
|
test 'should create valid' do
|
@@ -1,6 +1,15 @@
|
|
1
1
|
require 'test_plugin_helper'
|
2
2
|
|
3
3
|
class ForemanRemoteExecutionForemanTasksCleanerExtensionsTest < ActiveSupport::TestCase
|
4
|
+
# Apply the same stubbing as in foreman-tasks
|
5
|
+
before do
|
6
|
+
# To stop dynflow from backing up actions, execution_plans and steps
|
7
|
+
ForemanTasks.dynflow.world.persistence.adapter.stubs(:backup_to_csv)
|
8
|
+
ForemanTasks::Cleaner.any_instance.stubs(:say) # Make the tests silent
|
9
|
+
# Hack to make the tests pass due to ActiveRecord shenanigans
|
10
|
+
ForemanTasks::Cleaner.any_instance.stubs(:delete_orphaned_dynflow_tasks)
|
11
|
+
end
|
12
|
+
|
4
13
|
it 'tries to delete associated job invocations' do
|
5
14
|
job = FactoryBot.create(:job_invocation, :with_task)
|
6
15
|
ForemanTasks::Cleaner.new(:filter => "id = #{job.task.id}").delete
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_remote_execution
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Foreman Remote Execution team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: dynflow
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.0.0
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
36
|
+
version: 2.0.0
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 1.0.0
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
46
|
+
version: 2.0.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: foreman_remote_execution_core
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -380,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
380
386
|
version: '0'
|
381
387
|
requirements: []
|
382
388
|
rubyforge_project:
|
383
|
-
rubygems_version: 2.
|
389
|
+
rubygems_version: 2.6.12
|
384
390
|
signing_key:
|
385
391
|
specification_version: 4
|
386
392
|
summary: A plugin bringing remote execution to the Foreman, completing the config
|