foreman_remote_execution 2.0.0 → 2.0.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/app/views/templates/ssh/check_update.erb +36 -0
- data/app/views/templates/ssh/package_action.erb +26 -1
- data/extra/cockpit/foreman-cockpit +3 -0
- data/extra/cockpit/foreman-cockpit.service +8 -1
- data/lib/foreman_remote_execution/version.rb +1 -1
- data/locale/action_names.rb +2 -2
- data/locale/foreman_remote_execution.pot +129 -94
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c87f68201cd5bb766074263eff65704e09276121a6459352132675b2fe016621
|
4
|
+
data.tar.gz: '01904e570fdd9dca1ed27839dfd33ae57bc9969f04f9f9c7c5ac95e4f55d8969'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4de36678a692b43a26c73522a943eeddf20e0c7b5d6d94fdf8846ee1d40fc0fbe480bb99a8cff651fbe91b642fdb4f9baa88805f204706373b3cdd0e758a5d7
|
7
|
+
data.tar.gz: 8b7d50f9381efd754e2ef0a326d52365401fc67f15435d8dafff037454438a2d994cdb39331e3db629d37b11433ea836563193f5adf2f972eec5b6526cab2c39
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<%#
|
2
|
+
kind: job_template
|
3
|
+
name: Check Update - SSH Default
|
4
|
+
model: JobTemplate
|
5
|
+
job_category: Packages
|
6
|
+
description_format: "Check for package updates"
|
7
|
+
provider_type: SSH
|
8
|
+
%>
|
9
|
+
|
10
|
+
<%
|
11
|
+
supported_families = ['Redhat', 'Debian', 'Suse']
|
12
|
+
render_error(N_('Unsupported or no operating system found for this host.')) unless @host.operatingsystem && supported_families.include?(@host.operatingsystem.family)
|
13
|
+
|
14
|
+
command = case @host.operatingsystem.family
|
15
|
+
when 'Redhat'
|
16
|
+
'yum check-update'
|
17
|
+
when 'Debian'
|
18
|
+
'apt list --upgradable'
|
19
|
+
when 'Suse'
|
20
|
+
'zypper list-updates'
|
21
|
+
end
|
22
|
+
-%>
|
23
|
+
|
24
|
+
<%= command %>
|
25
|
+
<% if command.start_with? 'yum' %>
|
26
|
+
rc=$?
|
27
|
+
# yum check-update returns 100 when there are updates available
|
28
|
+
if [ $rc -eq 100 ]; then
|
29
|
+
# In this case, we override the exit code to 0 so Remote Execution
|
30
|
+
# can consider this run as successful
|
31
|
+
(exit 0)
|
32
|
+
else
|
33
|
+
# For any other exit code, we don't modify it
|
34
|
+
(exit $rc)
|
35
|
+
fi
|
36
|
+
<% end %>
|
@@ -52,6 +52,29 @@ exit_with_message () {
|
|
52
52
|
exit $2
|
53
53
|
}
|
54
54
|
|
55
|
+
<% if package_manager == 'zypper' -%>
|
56
|
+
handle_zypp_res_codes () {
|
57
|
+
RETVAL=$1
|
58
|
+
|
59
|
+
# See https://github.com/openSUSE/zypper/blob/master/src/main.h
|
60
|
+
declare -A ZYPP_RES_CODES
|
61
|
+
ZYPP_RES_CODES[100]='Updates are needed'
|
62
|
+
ZYPP_RES_CODES[101]='Security updates are needed'
|
63
|
+
ZYPP_RES_CODES[102]='Reboot needed after install/upgrade'
|
64
|
+
ZYPP_RES_CODES[103]='Restart of package manager itself needed'
|
65
|
+
ZYPP_RES_CODES[104]='given capability not found'
|
66
|
+
ZYPP_RES_CODES[105]='SIGINT or SIGTERM received'
|
67
|
+
ZYPP_RES_CODES[106]='Some repos have been skipped due to refresh errors'
|
68
|
+
ZYPP_RES_CODES[107]='Some rpm %post configuration script failed'
|
69
|
+
|
70
|
+
if [ "${ZYPP_RES_CODES[$RETVAL]}" != "" ]; then
|
71
|
+
echo ${ZYPP_RES_CODES[$RETVAL]}
|
72
|
+
RETVAL=0
|
73
|
+
fi
|
74
|
+
return $RETVAL
|
75
|
+
}
|
76
|
+
<% end -%>
|
77
|
+
|
55
78
|
<% unless input("pre_script").blank? -%>
|
56
79
|
# Pre Script
|
57
80
|
<%= input("pre_script") %>
|
@@ -75,7 +98,7 @@ exit_with_message () {
|
|
75
98
|
end
|
76
99
|
-%>
|
77
100
|
apt-get -y update
|
78
|
-
apt-get -y <%= action %> <%= input("package") %>
|
101
|
+
apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y <%= action %> <%= input("package") %>
|
79
102
|
<% elsif package_manager == 'zypper' -%>
|
80
103
|
<%-
|
81
104
|
if action == "group install"
|
@@ -84,7 +107,9 @@ exit_with_message () {
|
|
84
107
|
action = "remove -t pattern"
|
85
108
|
end
|
86
109
|
-%>
|
110
|
+
zypper refresh
|
87
111
|
zypper -n <%= action %> <%= input("package") %>
|
112
|
+
handle_zypp_res_codes $?
|
88
113
|
<% end -%>
|
89
114
|
RETVAL=$?
|
90
115
|
[ $RETVAL -eq 0 ] || exit_with_message "Package action failed" $RETVAL
|
@@ -1,7 +1,14 @@
|
|
1
|
+
[Unit]
|
2
|
+
Description=Foreman authentication service for Cockpit
|
3
|
+
Documentation=https://theforeman.org
|
4
|
+
After=network.target remote-fs.target nss-lookup.target
|
5
|
+
|
1
6
|
[Service]
|
2
7
|
Environment=XDG_CONFIG_DIRS=/etc/foreman/
|
3
8
|
Environment=FOREMAN_COCKPIT_SETTINGS=/etc/foreman/cockpit/foreman-cockpit-session.yml
|
4
|
-
|
9
|
+
Environment=FOREMAN_COCKPIT_ADDRESS=127.0.0.1
|
10
|
+
Environment=FOREMAN_COCKPIT_PORT=9999
|
11
|
+
ExecStart=/usr/libexec/foreman-cockpit --no-tls --address $FOREMAN_COCKPIT_ADDRESS --port $FOREMAN_COCKPIT_PORT
|
5
12
|
User=foreman
|
6
13
|
Group=foreman
|
7
14
|
|
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: 2019-
|
12
|
-
"PO-Revision-Date: 2019-
|
11
|
+
"POT-Creation-Date: 2019-10-16 08:54+0200\n"
|
12
|
+
"PO-Revision-Date: 2019-10-16 08:54+0200\n"
|
13
13
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14
14
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15
15
|
"Language: \n"
|
@@ -85,110 +85,114 @@ msgid "Invocation type, one of %s"
|
|
85
85
|
msgstr ""
|
86
86
|
|
87
87
|
#: ../app/controllers/api/v2/job_invocations_controller.rb:28
|
88
|
-
msgid "
|
88
|
+
msgid "Execute the jobs on hosts in randomized order"
|
89
89
|
msgstr ""
|
90
90
|
|
91
91
|
#: ../app/controllers/api/v2/job_invocations_controller.rb:29
|
92
|
+
msgid "Inputs to use"
|
93
|
+
msgstr ""
|
94
|
+
|
95
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:30
|
92
96
|
msgid "SSH provider specific options"
|
93
97
|
msgstr ""
|
94
98
|
|
95
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
99
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:33
|
96
100
|
msgid ""
|
97
101
|
"What user should be used to run the script (using sudo-like mechanisms). Defau"
|
98
102
|
"lts to a template parameter or global setting."
|
99
103
|
msgstr ""
|
100
104
|
|
101
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
105
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:36
|
102
106
|
msgid "Create a recurring job"
|
103
107
|
msgstr ""
|
104
108
|
|
105
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
109
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:37
|
106
110
|
msgid "How often the job should occur, in the cron format"
|
107
111
|
msgstr ""
|
108
112
|
|
109
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
113
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:38
|
110
114
|
msgid "Repeat a maximum of N times"
|
111
115
|
msgstr ""
|
112
116
|
|
113
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
117
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:39
|
114
118
|
msgid "Perform no more executions after this time"
|
115
119
|
msgstr ""
|
116
120
|
|
117
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
121
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:42
|
118
122
|
msgid "Schedule the job to start at a later time"
|
119
123
|
msgstr ""
|
120
124
|
|
121
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
125
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:43
|
122
126
|
msgid "Schedule the job for a future time"
|
123
127
|
msgstr ""
|
124
128
|
|
125
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
129
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:44
|
126
130
|
msgid ""
|
127
131
|
"Indicates that the action should be cancelled if it cannot be started before t"
|
128
132
|
"his time."
|
129
133
|
msgstr ""
|
130
134
|
|
131
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
135
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:47
|
132
136
|
msgid "Control concurrency level and distribution over time"
|
133
137
|
msgstr ""
|
134
138
|
|
135
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
139
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:48
|
136
140
|
msgid "Distribute tasks over N seconds"
|
137
141
|
msgstr ""
|
138
142
|
|
139
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
143
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:49
|
140
144
|
#: ../app/views/job_invocations/_form.html.erb:102
|
141
145
|
msgid "Run at most N tasks at a time"
|
142
146
|
msgstr ""
|
143
147
|
|
144
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
148
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:54
|
145
149
|
msgid "Override the description format from the template for this invocation only"
|
146
150
|
msgstr ""
|
147
151
|
|
148
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
152
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:55
|
149
153
|
msgid "Override the timeout interval from the template for this invocation only"
|
150
154
|
msgstr ""
|
151
155
|
|
152
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
156
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:56
|
153
157
|
msgid ""
|
154
158
|
"Remote execution feature label that should be triggered, job template assigned"
|
155
159
|
" to this feature will be used"
|
156
160
|
msgstr ""
|
157
161
|
|
158
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
162
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:60
|
159
163
|
msgid "Create a job invocation"
|
160
164
|
msgstr ""
|
161
165
|
|
162
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
166
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:76
|
163
167
|
msgid "Get output for a host"
|
164
168
|
msgstr ""
|
165
169
|
|
166
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
170
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:89
|
167
171
|
msgid "Get raw output for a host"
|
168
172
|
msgstr ""
|
169
173
|
|
170
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
174
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:101
|
171
175
|
msgid "Cancel job invocation"
|
172
176
|
msgstr ""
|
173
177
|
|
174
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
178
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:109
|
175
179
|
msgid "The job could not be cancelled."
|
176
180
|
msgstr ""
|
177
181
|
|
178
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
182
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:114
|
179
183
|
msgid "Rerun job on failed hosts"
|
180
184
|
msgstr ""
|
181
185
|
|
182
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
186
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:124
|
183
187
|
#: ../app/views/job_invocations/_form.html.erb:4
|
184
188
|
msgid "Could not rerun job %{id} because its template could not be found"
|
185
189
|
msgstr ""
|
186
190
|
|
187
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
191
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:151
|
188
192
|
msgid "Host with id '%{id}' was not found"
|
189
193
|
msgstr ""
|
190
194
|
|
191
|
-
#: ../app/controllers/api/v2/job_invocations_controller.rb:
|
195
|
+
#: ../app/controllers/api/v2/job_invocations_controller.rb:157
|
192
196
|
msgid "Template with id '%{id}' was not found"
|
193
197
|
msgstr ""
|
194
198
|
|
@@ -225,68 +229,68 @@ msgid "Show job template details"
|
|
225
229
|
msgstr ""
|
226
230
|
|
227
231
|
#: ../app/controllers/api/v2/job_templates_controller.rb:49
|
228
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
232
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:99
|
229
233
|
msgid "Template name"
|
230
234
|
msgstr ""
|
231
235
|
|
232
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
236
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:51
|
233
237
|
#: ../app/views/job_invocations/_form.html.erb:11
|
234
238
|
#: ../app/views/job_templates/_custom_tabs.html.erb:3
|
235
239
|
#: ../app/views/job_templates/_custom_tabs.html.erb:6
|
236
240
|
msgid "Job category"
|
237
241
|
msgstr ""
|
238
242
|
|
239
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
243
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:52
|
240
244
|
msgid ""
|
241
245
|
"This template is used to generate the description. Input values can be used us"
|
242
246
|
"ing the syntax %{package}. You may also include the job category and template "
|
243
247
|
"name using %{job_category} and %{template_name}."
|
244
248
|
msgstr ""
|
245
249
|
|
246
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
250
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:57
|
247
251
|
msgid "Provider type"
|
248
252
|
msgstr ""
|
249
253
|
|
250
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
254
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:60
|
251
255
|
msgid "Whether or not the template is locked for editing"
|
252
256
|
msgstr ""
|
253
257
|
|
254
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
258
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:61
|
255
259
|
msgid "Effective user options"
|
256
260
|
msgstr ""
|
257
261
|
|
258
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
262
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:62
|
259
263
|
msgid "What user should be used to run the script (using sudo-like mechanisms)"
|
260
264
|
msgstr ""
|
261
265
|
|
262
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
266
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:63
|
263
267
|
msgid ""
|
264
268
|
"Whether it should be allowed to override the effective user from the invocatio"
|
265
269
|
"n form."
|
266
270
|
msgstr ""
|
267
271
|
|
268
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
272
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:64
|
269
273
|
msgid "Whether the current user login should be used as the effective user"
|
270
274
|
msgstr ""
|
271
275
|
|
272
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
276
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:70
|
273
277
|
msgid "Create a job template"
|
274
278
|
msgstr ""
|
275
279
|
|
276
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
280
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:77
|
277
281
|
#: ../app/controllers/api/v2/remote_execution_features_controller.rb:24
|
278
282
|
msgid "Update a job template"
|
279
283
|
msgstr ""
|
280
284
|
|
281
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
285
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:85
|
282
286
|
msgid "Template version"
|
283
287
|
msgstr ""
|
284
288
|
|
285
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
289
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:91
|
286
290
|
msgid "Delete a job template"
|
287
291
|
msgstr ""
|
288
292
|
|
289
|
-
#: ../app/controllers/api/v2/job_templates_controller.rb:
|
293
|
+
#: ../app/controllers/api/v2/job_templates_controller.rb:103
|
290
294
|
msgid "Clone a provision template"
|
291
295
|
msgstr ""
|
292
296
|
|
@@ -533,57 +537,57 @@ msgstr ""
|
|
533
537
|
msgid "Failed rendering template: %s"
|
534
538
|
msgstr ""
|
535
539
|
|
536
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
540
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:67
|
537
541
|
msgid "Task cancelled"
|
538
542
|
msgstr ""
|
539
543
|
|
540
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
544
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:68
|
541
545
|
msgid "Job execution failed"
|
542
546
|
msgstr ""
|
543
547
|
|
544
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
548
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:77
|
545
549
|
msgid "%{description} on %{host}"
|
546
550
|
msgstr ""
|
547
551
|
|
548
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
552
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:82 action_names.rb:2
|
549
553
|
msgid "Remote action:"
|
550
554
|
msgstr ""
|
551
555
|
|
552
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
556
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:106
|
553
557
|
msgid "Job cancelled by user"
|
554
558
|
msgstr ""
|
555
559
|
|
556
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
560
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:111
|
557
561
|
msgid "Exit status: %s"
|
558
562
|
msgstr ""
|
559
563
|
|
560
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
564
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:113
|
561
565
|
msgid "Job finished with error"
|
562
566
|
msgstr ""
|
563
567
|
|
564
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
568
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:116
|
565
569
|
msgid "Error loading data from proxy"
|
566
570
|
msgstr ""
|
567
571
|
|
568
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
572
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:148
|
569
573
|
msgid "User can not execute job on host %s"
|
570
574
|
msgstr ""
|
571
575
|
|
572
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
576
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:149
|
573
577
|
msgid "User can not execute this job template"
|
574
578
|
msgstr ""
|
575
579
|
|
576
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
580
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:154
|
577
581
|
msgid "User can not execute this job template on %s"
|
578
582
|
msgstr ""
|
579
583
|
|
580
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
584
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:164
|
581
585
|
msgid "The only applicable proxy %{proxy_names} is down"
|
582
586
|
msgid_plural "All %{count} applicable proxies are down. Tried %{proxy_names}"
|
583
587
|
msgstr[0] ""
|
584
588
|
msgstr[1] ""
|
585
589
|
|
586
|
-
#: ../app/lib/actions/remote_execution/run_host_job.rb:
|
590
|
+
#: ../app/lib/actions/remote_execution/run_host_job.rb:171
|
587
591
|
msgid ""
|
588
592
|
"Could not use any proxy. Consider configuring %{global_proxy}, %{fallback_prox"
|
589
593
|
"y} in settings"
|
@@ -687,149 +691,148 @@ msgstr ""
|
|
687
691
|
msgid "Unknown remote execution feature %s"
|
688
692
|
msgstr ""
|
689
693
|
|
690
|
-
#: ../app/models/remote_execution_provider.rb:
|
694
|
+
#: ../app/models/remote_execution_provider.rb:49
|
691
695
|
msgid "Effective user method \"%{current_value}\" is not one of %{valid_methods}"
|
692
696
|
msgstr ""
|
693
697
|
|
694
|
-
#: ../app/models/remote_execution_provider.rb:
|
698
|
+
#: ../app/models/remote_execution_provider.rb:75
|
695
699
|
msgid "Could not find any suitable interface for execution"
|
696
700
|
msgstr ""
|
697
701
|
|
698
|
-
#: ../app/models/setting/remote_execution.rb:
|
702
|
+
#: ../app/models/setting/remote_execution.rb:9
|
699
703
|
msgid ""
|
700
704
|
"Search the host for any proxy with Remote Execution, useful when the host has "
|
701
705
|
"no subnet or the subnet does not have an execution proxy"
|
702
706
|
msgstr ""
|
703
707
|
|
704
|
-
#: ../app/models/setting/remote_execution.rb:
|
708
|
+
#: ../app/models/setting/remote_execution.rb:11
|
705
709
|
msgid "Fallback to Any Proxy"
|
706
710
|
msgstr ""
|
707
711
|
|
708
|
-
#: ../app/models/setting/remote_execution.rb:
|
712
|
+
#: ../app/models/setting/remote_execution.rb:13
|
709
713
|
msgid ""
|
710
714
|
"Search for remote execution proxy outside of the proxies assigned to the host."
|
711
|
-
"
|
712
|
-
"host's organization or location."
|
715
|
+
" The search will be limited to the host's organization and location."
|
713
716
|
msgstr ""
|
714
717
|
|
715
|
-
#: ../app/models/setting/remote_execution.rb:
|
718
|
+
#: ../app/models/setting/remote_execution.rb:16
|
716
719
|
msgid "Enable Global Proxy"
|
717
720
|
msgstr ""
|
718
721
|
|
719
|
-
#: ../app/models/setting/remote_execution.rb:
|
722
|
+
#: ../app/models/setting/remote_execution.rb:18
|
720
723
|
msgid ""
|
721
724
|
"Default user to use for SSH. You may override per host by setting a parameter"
|
722
725
|
" called remote_execution_ssh_user."
|
723
726
|
msgstr ""
|
724
727
|
|
725
|
-
#: ../app/models/setting/remote_execution.rb:
|
728
|
+
#: ../app/models/setting/remote_execution.rb:20
|
726
729
|
msgid "SSH User"
|
727
730
|
msgstr ""
|
728
731
|
|
729
|
-
#: ../app/models/setting/remote_execution.rb:
|
732
|
+
#: ../app/models/setting/remote_execution.rb:22
|
730
733
|
msgid ""
|
731
734
|
"Default user to use for executing the script. If the user differs from the SSH"
|
732
735
|
" user, su or sudo is used to switch the user."
|
733
736
|
msgstr ""
|
734
737
|
|
735
|
-
#: ../app/models/setting/remote_execution.rb:
|
738
|
+
#: ../app/models/setting/remote_execution.rb:24
|
736
739
|
msgid "Effective User"
|
737
740
|
msgstr ""
|
738
741
|
|
739
|
-
#: ../app/models/setting/remote_execution.rb:
|
742
|
+
#: ../app/models/setting/remote_execution.rb:26
|
740
743
|
msgid "What command should be used to switch to the effective user. One of %s"
|
741
744
|
msgstr ""
|
742
745
|
|
743
|
-
#: ../app/models/setting/remote_execution.rb:
|
746
|
+
#: ../app/models/setting/remote_execution.rb:28
|
744
747
|
msgid "Effective User Method"
|
745
748
|
msgstr ""
|
746
749
|
|
747
|
-
#: ../app/models/setting/remote_execution.rb:
|
750
|
+
#: ../app/models/setting/remote_execution.rb:31
|
748
751
|
#: ../app/views/job_invocations/_form.html.erb:98
|
749
752
|
msgid "Sudo password"
|
750
753
|
msgstr ""
|
751
754
|
|
752
|
-
#: ../app/models/setting/remote_execution.rb:
|
755
|
+
#: ../app/models/setting/remote_execution.rb:33
|
753
756
|
msgid "Whether we should sync templates from disk when running db:seed."
|
754
757
|
msgstr ""
|
755
758
|
|
756
|
-
#: ../app/models/setting/remote_execution.rb:
|
759
|
+
#: ../app/models/setting/remote_execution.rb:35
|
757
760
|
msgid "Sync Job Templates"
|
758
761
|
msgstr ""
|
759
762
|
|
760
|
-
#: ../app/models/setting/remote_execution.rb:
|
763
|
+
#: ../app/models/setting/remote_execution.rb:37
|
761
764
|
msgid ""
|
762
765
|
"Port to use for SSH communication. Default port 22. You may override per host "
|
763
766
|
"by setting a parameter called remote_execution_ssh_port."
|
764
767
|
msgstr ""
|
765
768
|
|
766
|
-
#: ../app/models/setting/remote_execution.rb:
|
769
|
+
#: ../app/models/setting/remote_execution.rb:39
|
767
770
|
msgid "SSH Port"
|
768
771
|
msgstr ""
|
769
772
|
|
770
|
-
#: ../app/models/setting/remote_execution.rb:
|
773
|
+
#: ../app/models/setting/remote_execution.rb:41
|
771
774
|
msgid ""
|
772
775
|
"Should the ip addresses on host interfaces be preferred over the fqdn? It is u"
|
773
776
|
"seful, when DNS not resolving the fqdns properly. You may override this per ho"
|
774
777
|
"st by setting a parameter called remote_execution_connect_by_ip."
|
775
778
|
msgstr ""
|
776
779
|
|
777
|
-
#: ../app/models/setting/remote_execution.rb:
|
780
|
+
#: ../app/models/setting/remote_execution.rb:44
|
778
781
|
msgid "Connect by IP"
|
779
782
|
msgstr ""
|
780
783
|
|
781
|
-
#: ../app/models/setting/remote_execution.rb:
|
784
|
+
#: ../app/models/setting/remote_execution.rb:46
|
782
785
|
msgid ""
|
783
786
|
"Default password to use for SSH. You may override per host by setting a parame"
|
784
787
|
"ter called remote_execution_ssh_password"
|
785
788
|
msgstr ""
|
786
789
|
|
787
|
-
#: ../app/models/setting/remote_execution.rb:
|
790
|
+
#: ../app/models/setting/remote_execution.rb:48
|
788
791
|
msgid "Default SSH password"
|
789
792
|
msgstr ""
|
790
793
|
|
791
|
-
#: ../app/models/setting/remote_execution.rb:
|
794
|
+
#: ../app/models/setting/remote_execution.rb:52
|
792
795
|
msgid ""
|
793
796
|
"Default key passphrase to use for SSH. You may override per host by setting a "
|
794
797
|
"parameter called remote_execution_ssh_key_passphrase"
|
795
798
|
msgstr ""
|
796
799
|
|
797
|
-
#: ../app/models/setting/remote_execution.rb:
|
800
|
+
#: ../app/models/setting/remote_execution.rb:54
|
798
801
|
msgid "Default SSH key passphrase"
|
799
802
|
msgstr ""
|
800
803
|
|
801
|
-
#: ../app/models/setting/remote_execution.rb:
|
804
|
+
#: ../app/models/setting/remote_execution.rb:58
|
802
805
|
msgid ""
|
803
806
|
"Amount of workers in the pool to handle the execution of the remote execution "
|
804
807
|
"jobs. Restart of the dynflowd/foreman-tasks service is required."
|
805
808
|
msgstr ""
|
806
809
|
|
807
|
-
#: ../app/models/setting/remote_execution.rb:
|
810
|
+
#: ../app/models/setting/remote_execution.rb:60
|
808
811
|
msgid "Workers pool size"
|
809
812
|
msgstr ""
|
810
813
|
|
811
|
-
#: ../app/models/setting/remote_execution.rb:
|
814
|
+
#: ../app/models/setting/remote_execution.rb:62
|
812
815
|
msgid ""
|
813
816
|
"When enabled, working directories will be removed after task completion. You m"
|
814
817
|
"ay override this per host by setting a parameter called remote_execution_clean"
|
815
818
|
"up_working_dirs."
|
816
819
|
msgstr ""
|
817
820
|
|
818
|
-
#: ../app/models/setting/remote_execution.rb:
|
821
|
+
#: ../app/models/setting/remote_execution.rb:64
|
819
822
|
msgid "Cleanup working directories"
|
820
823
|
msgstr ""
|
821
824
|
|
822
|
-
#: ../app/models/setting/remote_execution.rb:
|
825
|
+
#: ../app/models/setting/remote_execution.rb:66
|
823
826
|
msgid ""
|
824
827
|
"Where to find the Cockpit instance for the Web Console button. By default, no"
|
825
828
|
" button is shown."
|
826
829
|
msgstr ""
|
827
830
|
|
828
|
-
#: ../app/models/setting/remote_execution.rb:
|
831
|
+
#: ../app/models/setting/remote_execution.rb:68
|
829
832
|
msgid "Cockpit URL"
|
830
833
|
msgstr ""
|
831
834
|
|
832
|
-
#: ../app/models/ssh_execution_provider.rb:
|
835
|
+
#: ../app/models/ssh_execution_provider.rb:12
|
833
836
|
msgid "SSH"
|
834
837
|
msgstr ""
|
835
838
|
|
@@ -841,15 +844,23 @@ msgstr ""
|
|
841
844
|
msgid "Dynamic Query"
|
842
845
|
msgstr ""
|
843
846
|
|
844
|
-
#: ../app/models/targeting.rb:
|
847
|
+
#: ../app/models/targeting.rb:10
|
848
|
+
msgid "Alphabetical"
|
849
|
+
msgstr ""
|
850
|
+
|
851
|
+
#: ../app/models/targeting.rb:10
|
852
|
+
msgid "Randomized"
|
853
|
+
msgstr ""
|
854
|
+
|
855
|
+
#: ../app/models/targeting.rb:39
|
845
856
|
msgid "Cannot resolve hosts without a user"
|
846
857
|
msgstr ""
|
847
858
|
|
848
|
-
#: ../app/models/targeting.rb:
|
859
|
+
#: ../app/models/targeting.rb:40
|
849
860
|
msgid "Cannot resolve hosts without a bookmark or search query"
|
850
861
|
msgstr ""
|
851
862
|
|
852
|
-
#: ../app/models/targeting.rb:
|
863
|
+
#: ../app/models/targeting.rb:80 ../app/models/targeting.rb:81
|
853
864
|
msgid "Must select a bookmark or enter a search query"
|
854
865
|
msgstr ""
|
855
866
|
|
@@ -914,7 +925,11 @@ msgstr ""
|
|
914
925
|
msgid "using "
|
915
926
|
msgstr ""
|
916
927
|
|
917
|
-
#: ../app/views/job_invocations/_card_target_hosts.html.erb:
|
928
|
+
#: ../app/views/job_invocations/_card_target_hosts.html.erb:21
|
929
|
+
msgid "Execution order"
|
930
|
+
msgstr ""
|
931
|
+
|
932
|
+
#: ../app/views/job_invocations/_card_target_hosts.html.erb:26
|
918
933
|
msgid "Evaluated at:"
|
919
934
|
msgstr ""
|
920
935
|
|
@@ -1019,11 +1034,23 @@ msgid "Distribute execution over N seconds"
|
|
1019
1034
|
msgstr ""
|
1020
1035
|
|
1021
1036
|
#: ../app/views/job_invocations/_form.html.erb:107
|
1022
|
-
msgid "
|
1037
|
+
msgid "Execution ordering"
|
1023
1038
|
msgstr ""
|
1024
1039
|
|
1025
1040
|
#: ../app/views/job_invocations/_form.html.erb:107
|
1026
1041
|
msgid ""
|
1042
|
+
"Execution ordering determines whether the jobs should be executed on hosts in "
|
1043
|
+
"alphabetical order or in randomized order.<br><ul><li><b>Ordered</b> - execute"
|
1044
|
+
"s the jobs on hosts in alphabetical order</li><li><b>Randomized</b> - randomiz"
|
1045
|
+
"es the order in which jobs are executed on hosts</li></ul>"
|
1046
|
+
msgstr ""
|
1047
|
+
|
1048
|
+
#: ../app/views/job_invocations/_form.html.erb:116
|
1049
|
+
msgid "Type of query"
|
1050
|
+
msgstr ""
|
1051
|
+
|
1052
|
+
#: ../app/views/job_invocations/_form.html.erb:116
|
1053
|
+
msgid ""
|
1027
1054
|
"Type has impact on when is the query evaluated to hosts.<br><ul><li><b>Static<"
|
1028
1055
|
"/b> - evaluates just after you submit this form</li><li><b>Dynamic</b> - evalu"
|
1029
1056
|
"ates just before the execution is started, so if it's planed in future, target"
|
@@ -1361,16 +1388,24 @@ msgstr ""
|
|
1361
1388
|
msgid "Job templates"
|
1362
1389
|
msgstr ""
|
1363
1390
|
|
1364
|
-
#:
|
1365
|
-
msgid "
|
1391
|
+
#: ../lib/foreman_remote_execution/engine.rb:197
|
1392
|
+
msgid "Run Puppet Once"
|
1393
|
+
msgstr ""
|
1394
|
+
|
1395
|
+
#: ../lib/foreman_remote_execution/engine.rb:198
|
1396
|
+
msgid "Perform a single Puppet run"
|
1366
1397
|
msgstr ""
|
1367
1398
|
|
1368
1399
|
#: action_names.rb:3
|
1369
|
-
msgid "Import
|
1400
|
+
msgid "Import Puppet classes"
|
1370
1401
|
msgstr ""
|
1371
1402
|
|
1372
1403
|
#: action_names.rb:4
|
1373
|
-
msgid "Import
|
1404
|
+
msgid "Import facts"
|
1405
|
+
msgstr ""
|
1406
|
+
|
1407
|
+
#: action_names.rb:5
|
1408
|
+
msgid "Action with sub plans"
|
1374
1409
|
msgstr ""
|
1375
1410
|
|
1376
1411
|
#: gemspec.rb:2
|
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: 2.0.
|
4
|
+
version: 2.0.1
|
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: 2019-10-
|
11
|
+
date: 2019-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
@@ -275,6 +275,7 @@ files:
|
|
275
275
|
- app/views/template_invocations/show.html.erb
|
276
276
|
- app/views/template_invocations/show.js.erb
|
277
277
|
- app/views/templates/README.md
|
278
|
+
- app/views/templates/ssh/check_update.erb
|
278
279
|
- app/views/templates/ssh/module_action.erb
|
279
280
|
- app/views/templates/ssh/package_action.erb
|
280
281
|
- app/views/templates/ssh/power_action.erb
|
@@ -333,6 +334,7 @@ files:
|
|
333
334
|
- db/seeds.d/70-job_templates.rb
|
334
335
|
- db/seeds.d/90-bookmarks.rb
|
335
336
|
- extra/cockpit/cockpit.conf.example
|
337
|
+
- extra/cockpit/foreman-cockpit
|
336
338
|
- extra/cockpit/foreman-cockpit-session
|
337
339
|
- extra/cockpit/foreman-cockpit.service
|
338
340
|
- extra/cockpit/settings.yml.example
|