foreman_discovery 17.0.0 → 17.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72a3be5def914f11b7186ee0dee5289a2ab43d7294404843736dd3097af42a82
4
- data.tar.gz: 3bc20158d91425e487c81b115230c09b6a7d40bfaf604149e429f2e485cf0f04
3
+ metadata.gz: 35fdf9e36a5a8093c7532a47c9e9a8fd2bae879a30eab70fcc286c9b6c1cd256
4
+ data.tar.gz: 145fc876af62068eebcdc997f6e8ffaa1bc9861ff6aab63ef992396da32277f3
5
5
  SHA512:
6
- metadata.gz: bf1f325066358628d3d0682efe0819cb7e3511b175bb709d97a8c977cf4cd77d49648730dc6bf98749d317adb01e404baacd5995b0c88d9d6bda44c4e715e952
7
- data.tar.gz: 14197db5b6c073d1b1a490cb06a226687a38b3cb73db4c48c900848df986325ce0204c6d4f0bf95eb1eab27a363591bb8cda50ab6e0f75a62833a69dbc48ab19
6
+ metadata.gz: 87665e788d3aa6db8d3b9b13d5165a23ca4509dfb1bd98cd76bdc46f6779d6aa279aa95a044ac0ae515ac652d88d28c0a792f7c8eeb7b664ec57dabc3aab2023
7
+ data.tar.gz: 5cad4226da69dd1ed80fcfa89ff20c4a590373c00753f1a390ceb0a324401b8c96f52aabece9f86ed70c86be542e6afd73e5dcbdd70367f1f2ddcfdd5cd7f924
@@ -20,7 +20,7 @@ class DiscoveryRulesController < ApplicationController
20
20
  end
21
21
 
22
22
  def clone
23
- @discovery_rule = @discovery_rule.deep_clone except: [:name, :priority]
23
+ @discovery_rule.deep_clone except: [:name, :priority], include: [:organizations, :locations]
24
24
  @discovery_rule.priority = DiscoveryRule.suggest_priority
25
25
  end
26
26
 
@@ -98,8 +98,7 @@ module DiscoveredHostsHelper
98
98
  discovered_host_path(host)
99
99
  end
100
100
 
101
- def discovery_doc_url
102
- doc_version = Foreman::Plugin.find(:foreman_discovery).version.scan(/\d+\.\d+/).first
103
- "https://theforeman.org/plugins/foreman_discovery/#{doc_version}"
101
+ def discovery_doc_version
102
+ Foreman::Plugin.find(:foreman_discovery).version.scan(/\d+\.\d+/).first
104
103
  end
105
104
  end
@@ -133,26 +133,39 @@ class Host::Discovered < ::Host::Base
133
133
  subnet.present? && subnet.discovery.present?
134
134
  end
135
135
 
136
+ def ip4or6
137
+ if Setting[:discovery_prefer_ipv6]
138
+ IPAddr.new(self.ip6 || self.ip)
139
+ else
140
+ IPAddr.new(self.ip || self.ip6)
141
+ end
142
+ end
143
+
136
144
  def proxy_url(node_ip)
137
- proxied? ? subnet.discovery.url + "/discovery/#{node_ip}" : "https://#{node_ip}:8443"
145
+ wrapped_ip = node_ip.ipv6? ? "[#{node_ip}]" : node_ip
146
+ proxied? ? subnet.discovery.url + "/discovery/#{node_ip}" : "https://#{wrapped_ip}:8443"
138
147
  end
139
148
 
140
149
  def refresh_facts
141
- facts = ::ForemanDiscovery::NodeAPI::Inventory.new(:url => proxy_url(self.ip)).facter
150
+ facts = ::ForemanDiscovery::NodeAPI::Inventory.new(:url => proxy_url(ip4or6)).facter
142
151
  self.class.import_host facts
143
152
  ::ForemanDiscovery::HostFactImporter.new(self).import_facts facts
144
153
  rescue => e
145
154
  ::Foreman::Logging.exception("Unable to get facts from proxy", e)
146
- raise ::Foreman::WrappedException.new(e, N_("Could not get facts from proxy %{url}: %{error}"), :url => proxy_url(self.ip), :error => e)
155
+ raise ::Foreman::WrappedException.new(e, N_("Could not get facts from proxy %{url}: %{error}"), :url => proxy_url(ip4or6), :error => e)
147
156
  end
148
157
 
149
- def reboot(old_ip = nil, new_ip = nil)
158
+ def reboot(old_ip = nil, new_ip = nil, old_ip6 = nil, new_ip6 = nil)
150
159
  # perform the action against the original lease as well as the new reservation
151
- ips = [old_ip, new_ip, self.ip].compact.uniq
160
+ if Setting[:discovery_prefer_ipv6]
161
+ ips = [old_ip6, new_ip6, self.ip6, old_ip, new_ip, self.ip].compact.uniq
162
+ else
163
+ ips = [old_ip, new_ip, self.ip, old_ip6, new_ip6, self.ip6].compact.uniq
164
+ end
152
165
  logger.debug "Performing reboot calls against #{ips.to_sentence}, facts left #{facts.count}"
153
166
  ips.each do |next_ip|
154
167
  begin
155
- node_url = proxy_url(next_ip)
168
+ node_url = proxy_url(IPAddr.new(next_ip))
156
169
  logger.debug "Performing reboot call against #{node_url}"
157
170
  resource = ::ForemanDiscovery::NodeAPI::Power.service(:url => node_url)
158
171
  return true if resource.reboot
@@ -165,13 +178,17 @@ class Host::Discovered < ::Host::Base
165
178
  raise ::Foreman::Exception.new(msg, action: "reboot", ips: ips.to_sentence)
166
179
  end
167
180
 
168
- def kexec(json, old_ip = nil, new_ip = nil)
181
+ def kexec(json, old_ip = nil, new_ip = nil, old_ip6 = nil, new_ip6 = nil)
169
182
  # perform the action against the original lease as well as the new reservation
170
- ips = [old_ip, new_ip, self.ip].compact.uniq
183
+ if Setting[:discovery_prefer_ipv6]
184
+ ips = [old_ip6, new_ip6, self.ip6, old_ip, new_ip, self.ip].compact.uniq
185
+ else
186
+ ips = [old_ip, new_ip, self.ip, old_ip6, new_ip6, self.ip6].compact.uniq
187
+ end
171
188
  logger.debug "Performing kexec calls against #{ips.to_sentence}, #{facts.count} facts left"
172
189
  ips.each do |next_ip|
173
190
  begin
174
- node_url = proxy_url(next_ip)
191
+ node_url = proxy_url(IPAddr.new(next_ip))
175
192
  logger.debug "Performing kexec call against #{node_url}"
176
193
  resource = ::ForemanDiscovery::NodeAPI::Power.service(:url => node_url)
177
194
  return true if resource.kexec(json)
@@ -27,7 +27,7 @@ module Host::ManagedExtensions
27
27
  end
28
28
 
29
29
  def setReboot
30
- old.becomes(Host::Discovered).reboot(old.ip, ip)
30
+ old.becomes(Host::Discovered).reboot(old.ip, ip, old.ip6, ip6)
31
31
  # It is too late to report error in the post_queue, we catch them and
32
32
  # continue. If flash is implemented for new hosts (http://projects.theforeman.org/issues/10559)
33
33
  # we can report the error to the user perhaps.
@@ -55,7 +55,7 @@ module Host::ManagedExtensions
55
55
  end
56
56
 
57
57
  def setKexec
58
- old.becomes(Host::Discovered).kexec(render_kexec_template.to_json, old.ip, ip)
58
+ old.becomes(Host::Discovered).kexec(render_kexec_template.to_json, old.ip, ip, old.ip6, ip6)
59
59
  true
60
60
  rescue ::Foreman::Exception => e
61
61
  Foreman::Logging.exception("Unable to kexec", e)
@@ -37,6 +37,7 @@ class Setting::Discovered < ::Setting
37
37
  self.set('discovery_always_rebuild_dns', N_("Force DNS entries creation when provisioning discovered host"), true, N_("Force DNS")),
38
38
  self.set('discovery_error_on_existing', N_("Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"), false, N_("Error on existing NIC")),
39
39
  self.set('discovery_naming', N_("Discovery hostname naming pattern"), 'Fact', N_("Type of name generator"), nil, {:collection => Proc.new {::Host::Discovered::NAMING_PATTERNS} }),
40
+ self.set('discovery_prefer_ipv6', N_("Prefer IPv6 to IPv4 when calling discovered nodes"), false, N_("Prefer IPv6")),
40
41
  ]
41
42
  end
42
43
 
@@ -11,5 +11,5 @@
11
11
  <%= notifications %>
12
12
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
13
13
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
14
- <%= react_component('DiscoveredHosts', docUrl: discovery_doc_url ) %>
14
+ <%= react_component('DiscoveredHosts', docUrl: external_link_path(type: 'plugin_manual', name: 'foreman_discovery', version: discovery_doc_version)) %>
15
15
  <% end %>
@@ -11,5 +11,5 @@
11
11
  <%= notifications %>
12
12
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
13
13
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
14
- <%= react_component('DiscoveryRules', docUrl: discovery_doc_url + '/#4.3Automaticprovisioning' ) %>
14
+ <%= react_component('DiscoveryRules', docUrl: external_link_path(type: 'plugin_manual', name: 'foreman_discovery', version: discovery_doc_version, section: '#4.3Automaticprovisioning') ) %>
15
15
  <% end %>
@@ -19,7 +19,7 @@ Extra options like --reset-vga can be set via "extra" array.
19
19
  -%>
20
20
  <%
21
21
  mac = @host.facts['discovery_bootif']
22
- bootif = host_param("hardware_type", "01") + mac.gsub(':', '-') if mac
22
+ bootif = host_param("hardware_type", "01") + '-' + mac.gsub(':', '-') if mac
23
23
  ip_cidr = @host.facts['discovery_ip_cidr']
24
24
  ip = @host.facts['discovery_ip']
25
25
  mask = @host.facts['discovery_netmask']
@@ -29,7 +29,7 @@ Extra options like --reset-vga can be set via "extra" array.
29
29
  -%>
30
30
  <%
31
31
  mac = @host.facts['discovery_bootif']
32
- bootif = host_param("hardware_type", "01") + mac.gsub(':', '-') if mac
32
+ bootif = host_param("hardware_type", "01") + '-' + mac.gsub(':', '-') if mac
33
33
  ip_cidr = @host.facts['discovery_ip_cidr']
34
34
  ip = @host.facts['discovery_ip']
35
35
  mask = @host.facts['discovery_netmask']
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "17.0.0"
2
+ VERSION = "17.0.4"
3
3
  end
@@ -3,15 +3,15 @@
3
3
  # This file is distributed under the same license as the foreman_discovery package.
4
4
  #
5
5
  # Translators:
6
- # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2017
7
- # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015-2016
6
+ # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2017
7
+ # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015-2016
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: foreman_discovery 16.3.4\n"
10
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "POT-Creation-Date: 2021-05-03 08:46+0200\n"
13
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
14
- "Last-Translator: Transifex Bot <>\n"
12
+ "POT-Creation-Date: 2021-09-20 17:25+0200\n"
13
+ "PO-Revision-Date: 2021-05-03 08:29+0000\n"
14
+ "Last-Translator: Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>\n"
15
15
  "Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)"
16
16
  "\n"
17
17
  "MIME-Version: 1.0\n"
@@ -120,7 +120,7 @@ msgstr ""
120
120
  msgid "Execute rules against a discovered host"
121
121
  msgstr ""
122
122
 
123
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:157
123
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:160
124
124
  msgid "Host %{host} was provisioned with rule %{rule}"
125
125
  msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
126
126
 
@@ -128,7 +128,7 @@ msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
128
128
  msgid "Unable to provision %{host}: %{errors}"
129
129
  msgstr "No es pot aprovisionar a %{host}: %{errors}"
130
130
 
131
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:164
131
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:167
132
132
  msgid "No rule found for host %s"
133
133
  msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
134
134
 
@@ -136,11 +136,11 @@ msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
136
136
  msgid "Execute rules against all currently discovered hosts"
137
137
  msgstr "Executa les regles contra tots els amfitrions detectats actualment"
138
138
 
139
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:170
139
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:173
140
140
  msgid "Errors during auto provisioning: %s"
141
141
  msgstr "Erros durant l'auto aprovisionament: %s"
142
142
 
143
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:173
143
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:176
144
144
  msgid "No discovered hosts to provision"
145
145
  msgstr "Sense amfitrions descoberts per aprovisionar"
146
146
 
@@ -160,7 +160,7 @@ msgstr "S'està reiniciant un amfitrió descobert"
160
160
  msgid "Rebooting all discovered hosts"
161
161
  msgstr "S'estan reiniciant tots els amfitrions descoberts"
162
162
 
163
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:126
163
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:129
164
164
  msgid "Discovered hosts are rebooting now"
165
165
  msgstr "Ara s'estan reiniciant els amfitrions descoberts"
166
166
 
@@ -240,75 +240,75 @@ msgstr "Errors durant el reinici: %s"
240
240
  msgid "No discovered hosts to reboot"
241
241
  msgstr ""
242
242
 
243
- #: ../app/controllers/discovered_hosts_controller.rb:60
243
+ #: ../app/controllers/discovered_hosts_controller.rb:63
244
244
  msgid "Successfully provisioned %s"
245
245
  msgstr ""
246
246
 
247
- #: ../app/controllers/discovered_hosts_controller.rb:94
247
+ #: ../app/controllers/discovered_hosts_controller.rb:97
248
248
  msgid "Facts refreshed for %s"
249
249
  msgstr "Els objectes d'interès que s'han refrescat per a %s"
250
250
 
251
- #: ../app/controllers/discovered_hosts_controller.rb:96
251
+ #: ../app/controllers/discovered_hosts_controller.rb:99
252
252
  msgid "Failed to refresh facts for %s"
253
253
  msgstr "No s'ha pogut refrescar els objectes d'interès per a %s"
254
254
 
255
- #: ../app/controllers/discovered_hosts_controller.rb:99
255
+ #: ../app/controllers/discovered_hosts_controller.rb:102
256
256
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
257
257
  msgstr ""
258
258
 
259
- #: ../app/controllers/discovered_hosts_controller.rb:106
259
+ #: ../app/controllers/discovered_hosts_controller.rb:109
260
260
  msgid "Host of type %s can not be rebooted"
261
261
  msgstr ""
262
262
 
263
- #: ../app/controllers/discovered_hosts_controller.rb:110
263
+ #: ../app/controllers/discovered_hosts_controller.rb:113
264
264
  msgid "Rebooting host %s"
265
265
  msgstr "S'està reiniciant l'amfitrió %s"
266
266
 
267
- #: ../app/controllers/discovered_hosts_controller.rb:112
267
+ #: ../app/controllers/discovered_hosts_controller.rb:115
268
268
  msgid "Failed to reboot host %s"
269
269
  msgstr "No s'ha pogut reiniciar l'amfitrió %s."
270
270
 
271
- #: ../app/controllers/discovered_hosts_controller.rb:115
271
+ #: ../app/controllers/discovered_hosts_controller.rb:118
272
272
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
273
273
  msgstr ""
274
274
 
275
- #: ../app/controllers/discovered_hosts_controller.rb:129
275
+ #: ../app/controllers/discovered_hosts_controller.rb:132
276
276
  msgid "Failed to reboot hosts with error %s"
277
277
  msgstr ""
278
278
 
279
- #: ../app/controllers/discovered_hosts_controller.rb:147
279
+ #: ../app/controllers/discovered_hosts_controller.rb:150
280
280
  msgid "Destroyed selected hosts"
281
281
  msgstr "S'han destruït els amfitrions seleccionats"
282
282
 
283
- #: ../app/controllers/discovered_hosts_controller.rb:149
283
+ #: ../app/controllers/discovered_hosts_controller.rb:152
284
284
  msgid "The following hosts were not deleted: %s"
285
285
  msgstr ""
286
286
 
287
- #: ../app/controllers/discovered_hosts_controller.rb:161
287
+ #: ../app/controllers/discovered_hosts_controller.rb:164
288
288
  msgid "Failed to auto provision host %s: %s"
289
289
  msgstr "No s'ha pogut auto aprovisionar l'amfitrió %s: %s"
290
290
 
291
- #: ../app/controllers/discovered_hosts_controller.rb:189
291
+ #: ../app/controllers/discovered_hosts_controller.rb:192
292
292
  msgid "Discovered hosts are provisioning now"
293
293
  msgstr "Els amfitrions descoberts ara tenen aprovisionament"
294
294
 
295
- #: ../app/controllers/discovered_hosts_controller.rb:270
295
+ #: ../app/controllers/discovered_hosts_controller.rb:277
296
296
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
297
297
  msgstr ""
298
298
 
299
- #: ../app/controllers/discovered_hosts_controller.rb:275
299
+ #: ../app/controllers/discovered_hosts_controller.rb:282
300
300
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
301
301
  msgstr ""
302
302
 
303
- #: ../app/controllers/discovered_hosts_controller.rb:289
303
+ #: ../app/controllers/discovered_hosts_controller.rb:296
304
304
  msgid "No hosts were found with that id or name"
305
305
  msgstr "No s'ha trobat cap amfitrió amb aquest ID o nom"
306
306
 
307
- #: ../app/controllers/discovered_hosts_controller.rb:293
307
+ #: ../app/controllers/discovered_hosts_controller.rb:300
308
308
  msgid "No hosts selected"
309
309
  msgstr "Cap amfitrió seleccionat"
310
310
 
311
- #: ../app/controllers/discovered_hosts_controller.rb:299
311
+ #: ../app/controllers/discovered_hosts_controller.rb:306
312
312
  msgid "Something went wrong while selecting hosts - %s"
313
313
  msgstr "Alguna cosa va anar malament mentre se seleccionaven els amfitrions - %s"
314
314
 
@@ -406,7 +406,7 @@ msgstr ""
406
406
 
407
407
  #: ../app/helpers/discovery_rules_helper.rb:33
408
408
  msgid "Clone"
409
- msgstr ""
409
+ msgstr "Clona"
410
410
 
411
411
  #: ../app/helpers/discovery_rules_helper.rb:34
412
412
  msgid "Delete rule '%s'?"
@@ -472,23 +472,23 @@ msgstr ""
472
472
  msgid "Facts could not be imported"
473
473
  msgstr ""
474
474
 
475
- #: ../app/models/host/discovered.rb:146
475
+ #: ../app/models/host/discovered.rb:155
476
476
  msgid "Could not get facts from proxy %{url}: %{error}"
477
477
  msgstr "No s'han pogut obtenir els objectes d'interès del servidor intermediari %{url}: %{error}"
478
478
 
479
- #: ../app/models/host/discovered.rb:160
479
+ #: ../app/models/host/discovered.rb:173
480
480
  msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
481
481
  msgstr ""
482
482
 
483
- #: ../app/models/host/discovered.rb:164 ../app/models/host/discovered.rb:183
483
+ #: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
484
484
  msgid "Unable to perform %{action} on %{ips}"
485
485
  msgstr ""
486
486
 
487
- #: ../app/models/host/discovered.rb:179
487
+ #: ../app/models/host/discovered.rb:196
488
488
  msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
489
489
  msgstr ""
490
490
 
491
- #: ../app/models/host/discovered.rb:203
491
+ #: ../app/models/host/discovered.rb:220
492
492
  msgid "Invalid hostname: Could not normalize the hostname"
493
493
  msgstr ""
494
494
 
@@ -696,6 +696,14 @@ msgstr ""
696
696
  msgid "Type of name generator"
697
697
  msgstr ""
698
698
 
699
+ #: ../app/models/setting/discovered.rb:40
700
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
701
+ msgstr ""
702
+
703
+ #: ../app/models/setting/discovered.rb:40
704
+ msgid "Prefer IPv6"
705
+ msgstr ""
706
+
699
707
  #: ../app/services/foreman_discovery/fact_parser.rb:4
700
708
  msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
701
709
  msgstr ""
@@ -976,7 +984,7 @@ msgstr ""
976
984
 
977
985
  #: ../app/views/discovery_rules/clone.erb:1
978
986
  msgid "Clone %s"
979
- msgstr ""
987
+ msgstr "Clona %s"
980
988
 
981
989
  #: ../app/views/discovery_rules/edit.html.erb:1
982
990
  msgid "Edit %s"
@@ -1089,7 +1097,3 @@ msgstr ""
1089
1097
  #: action_names.rb:5
1090
1098
  msgid "Action with sub plans"
1091
1099
  msgstr ""
1092
-
1093
- #: ../app/helpers/discovered_hosts_helper.rb:10
1094
- #~ msgid "%s ago"
1095
- #~ msgstr "fa %s"
@@ -14,11 +14,11 @@
14
14
  # stbenjam <stephen@redhat.com>, 2016
15
15
  msgid ""
16
16
  msgstr ""
17
- "Project-Id-Version: foreman_discovery 16.3.4\n"
17
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
18
18
  "Report-Msgid-Bugs-To: \n"
19
- "POT-Creation-Date: 2021-05-03 08:46+0200\n"
20
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
21
- "Last-Translator: Crited <Alexander.Stoll@netways.de>\n"
19
+ "POT-Creation-Date: 2021-09-20 17:25+0200\n"
20
+ "PO-Revision-Date: 2021-05-03 08:29+0000\n"
21
+ "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\n"
22
22
  "Language-Team: German (http://www.transifex.com/foreman/foreman/language/de/)\n"
23
23
  "MIME-Version: 1.0\n"
24
24
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -126,7 +126,7 @@ msgstr "Hash, der Fakten für den Host mit minimaler Anzahl an Fakten enthält:
126
126
  msgid "Execute rules against a discovered host"
127
127
  msgstr "Regeln auf einem entdeckten Host anwenden"
128
128
 
129
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:157
129
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:160
130
130
  msgid "Host %{host} was provisioned with rule %{rule}"
131
131
  msgstr "Host %{host} wurde bereitgestellt mit Regel %{rule}"
132
132
 
@@ -134,7 +134,7 @@ msgstr "Host %{host} wurde bereitgestellt mit Regel %{rule}"
134
134
  msgid "Unable to provision %{host}: %{errors}"
135
135
  msgstr "%{host} kann nicht bereitgestellt werden: %{errors} "
136
136
 
137
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:164
137
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:167
138
138
  msgid "No rule found for host %s"
139
139
  msgstr "Keine Regel gefunden für Host %s"
140
140
 
@@ -142,11 +142,11 @@ msgstr "Keine Regel gefunden für Host %s"
142
142
  msgid "Execute rules against all currently discovered hosts"
143
143
  msgstr "Regeln auf allen kürzlich entdeckten Hosts anwenden"
144
144
 
145
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:170
145
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:173
146
146
  msgid "Errors during auto provisioning: %s"
147
147
  msgstr "Fehler bei automatischer Bereitstellung: %s"
148
148
 
149
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:173
149
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:176
150
150
  msgid "No discovered hosts to provision"
151
151
  msgstr "Keine entdeckten Hosts zur Bereitstellung"
152
152
 
@@ -166,7 +166,7 @@ msgstr "Entdeckten Host neu starten"
166
166
  msgid "Rebooting all discovered hosts"
167
167
  msgstr "Alle entdeckten Hosts neu starten"
168
168
 
169
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:126
169
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:129
170
170
  msgid "Discovered hosts are rebooting now"
171
171
  msgstr "Entdeckte Hosts werden jetzt neu gestartet"
172
172
 
@@ -246,75 +246,75 @@ msgstr "Fehler bei Neustart: %s"
246
246
  msgid "No discovered hosts to reboot"
247
247
  msgstr "Keine entdeckten Hosts zum Neustarten"
248
248
 
249
- #: ../app/controllers/discovered_hosts_controller.rb:60
249
+ #: ../app/controllers/discovered_hosts_controller.rb:63
250
250
  msgid "Successfully provisioned %s"
251
251
  msgstr "%s erfolgreich bereitgestellt"
252
252
 
253
- #: ../app/controllers/discovered_hosts_controller.rb:94
253
+ #: ../app/controllers/discovered_hosts_controller.rb:97
254
254
  msgid "Facts refreshed for %s"
255
255
  msgstr "Fakten für %s erneuert"
256
256
 
257
- #: ../app/controllers/discovered_hosts_controller.rb:96
257
+ #: ../app/controllers/discovered_hosts_controller.rb:99
258
258
  msgid "Failed to refresh facts for %s"
259
259
  msgstr "Fehler beim Aktualisieren von Fakten für %s"
260
260
 
261
- #: ../app/controllers/discovered_hosts_controller.rb:99
261
+ #: ../app/controllers/discovered_hosts_controller.rb:102
262
262
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
263
263
  msgstr "Fehler beim Aktualisieren der Fakten für %{hostname} mit Fehlermeldung %{error_message}"
264
264
 
265
- #: ../app/controllers/discovered_hosts_controller.rb:106
265
+ #: ../app/controllers/discovered_hosts_controller.rb:109
266
266
  msgid "Host of type %s can not be rebooted"
267
267
  msgstr "Host vom Typ %s kann nicht neu gestartet werden"
268
268
 
269
- #: ../app/controllers/discovered_hosts_controller.rb:110
269
+ #: ../app/controllers/discovered_hosts_controller.rb:113
270
270
  msgid "Rebooting host %s"
271
271
  msgstr "Host %s wird neu gestartet"
272
272
 
273
- #: ../app/controllers/discovered_hosts_controller.rb:112
273
+ #: ../app/controllers/discovered_hosts_controller.rb:115
274
274
  msgid "Failed to reboot host %s"
275
275
  msgstr "Fehler beim Neustart von Host %s"
276
276
 
277
- #: ../app/controllers/discovered_hosts_controller.rb:115
277
+ #: ../app/controllers/discovered_hosts_controller.rb:118
278
278
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
279
279
  msgstr "Fehler beim Neustart von Host %{hostname} mit Fehlermeldung %{error_message}"
280
280
 
281
- #: ../app/controllers/discovered_hosts_controller.rb:129
281
+ #: ../app/controllers/discovered_hosts_controller.rb:132
282
282
  msgid "Failed to reboot hosts with error %s"
283
283
  msgstr "Neustart von Hosts fehlgeschlagen mit Fehler %s"
284
284
 
285
- #: ../app/controllers/discovered_hosts_controller.rb:147
285
+ #: ../app/controllers/discovered_hosts_controller.rb:150
286
286
  msgid "Destroyed selected hosts"
287
287
  msgstr "Ausgewählte Hosts gelöscht"
288
288
 
289
- #: ../app/controllers/discovered_hosts_controller.rb:149
289
+ #: ../app/controllers/discovered_hosts_controller.rb:152
290
290
  msgid "The following hosts were not deleted: %s"
291
291
  msgstr "Die folgenden Hosts wurden nicht gelöscht: %s"
292
292
 
293
- #: ../app/controllers/discovered_hosts_controller.rb:161
293
+ #: ../app/controllers/discovered_hosts_controller.rb:164
294
294
  msgid "Failed to auto provision host %s: %s"
295
295
  msgstr "Fehler bei automatischer Bereitstellung von Host %s: %s"
296
296
 
297
- #: ../app/controllers/discovered_hosts_controller.rb:189
297
+ #: ../app/controllers/discovered_hosts_controller.rb:192
298
298
  msgid "Discovered hosts are provisioning now"
299
299
  msgstr "Entdeckte Hosts, die jetzt bereitgestellt werden"
300
300
 
301
- #: ../app/controllers/discovered_hosts_controller.rb:270
301
+ #: ../app/controllers/discovered_hosts_controller.rb:277
302
302
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
303
303
  msgstr ""
304
304
 
305
- #: ../app/controllers/discovered_hosts_controller.rb:275
305
+ #: ../app/controllers/discovered_hosts_controller.rb:282
306
306
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
307
307
  msgstr ""
308
308
 
309
- #: ../app/controllers/discovered_hosts_controller.rb:289
309
+ #: ../app/controllers/discovered_hosts_controller.rb:296
310
310
  msgid "No hosts were found with that id or name"
311
311
  msgstr "Keine Systeme mit dieser ID oder diesem Namen gefunden"
312
312
 
313
- #: ../app/controllers/discovered_hosts_controller.rb:293
313
+ #: ../app/controllers/discovered_hosts_controller.rb:300
314
314
  msgid "No hosts selected"
315
315
  msgstr "Keine Hosts ausgewählt"
316
316
 
317
- #: ../app/controllers/discovered_hosts_controller.rb:299
317
+ #: ../app/controllers/discovered_hosts_controller.rb:306
318
318
  msgid "Something went wrong while selecting hosts - %s"
319
319
  msgstr "Fehler beim Auswählen der Hosts – %s"
320
320
 
@@ -412,7 +412,7 @@ msgstr "Regel '%s' aktivieren?"
412
412
 
413
413
  #: ../app/helpers/discovery_rules_helper.rb:33
414
414
  msgid "Clone"
415
- msgstr ""
415
+ msgstr "Klonen"
416
416
 
417
417
  #: ../app/helpers/discovery_rules_helper.rb:34
418
418
  msgid "Delete rule '%s'?"
@@ -478,23 +478,23 @@ msgstr ""
478
478
  msgid "Facts could not be imported"
479
479
  msgstr "Fakten konnten nicht importiert werden"
480
480
 
481
- #: ../app/models/host/discovered.rb:146
481
+ #: ../app/models/host/discovered.rb:155
482
482
  msgid "Could not get facts from proxy %{url}: %{error}"
483
483
  msgstr "Fakten konnten nicht vom Proxy %{url} abgerufen werden: %{error}"
484
484
 
485
- #: ../app/models/host/discovered.rb:160
485
+ #: ../app/models/host/discovered.rb:173
486
486
  msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
487
487
  msgstr ""
488
488
 
489
- #: ../app/models/host/discovered.rb:164 ../app/models/host/discovered.rb:183
489
+ #: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
490
490
  msgid "Unable to perform %{action} on %{ips}"
491
491
  msgstr ""
492
492
 
493
- #: ../app/models/host/discovered.rb:179
493
+ #: ../app/models/host/discovered.rb:196
494
494
  msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
495
495
  msgstr ""
496
496
 
497
- #: ../app/models/host/discovered.rb:203
497
+ #: ../app/models/host/discovered.rb:220
498
498
  msgid "Invalid hostname: Could not normalize the hostname"
499
499
  msgstr "Ungültiger Hostname: Konnte den Hostnamen nicht normalisieren"
500
500
 
@@ -702,6 +702,14 @@ msgstr ""
702
702
  msgid "Type of name generator"
703
703
  msgstr "Typ des Namensgenerators"
704
704
 
705
+ #: ../app/models/setting/discovered.rb:40
706
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
707
+ msgstr ""
708
+
709
+ #: ../app/models/setting/discovered.rb:40
710
+ msgid "Prefer IPv6"
711
+ msgstr ""
712
+
705
713
  #: ../app/services/foreman_discovery/fact_parser.rb:4
706
714
  msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
707
715
  msgstr ""
@@ -982,7 +990,7 @@ msgstr ""
982
990
 
983
991
  #: ../app/views/discovery_rules/clone.erb:1
984
992
  msgid "Clone %s"
985
- msgstr ""
993
+ msgstr "%s klonen"
986
994
 
987
995
  #: ../app/views/discovery_rules/edit.html.erb:1
988
996
  msgid "Edit %s"
@@ -1095,7 +1103,3 @@ msgstr "Fakten importieren"
1095
1103
  #: action_names.rb:5
1096
1104
  msgid "Action with sub plans"
1097
1105
  msgstr "Aktion mit Unterplänen"
1098
-
1099
- #: ../app/helpers/discovered_hosts_helper.rb:10
1100
- #~ msgid "%s ago"
1101
- #~ msgstr "vor %s"