foreman_discovery 18.0.4 → 19.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/foreman/controller/parameters/discovered_host.rb +16 -4
  3. data/app/controllers/discovered_hosts_controller.rb +3 -0
  4. data/app/helpers/discovered_hosts_helper.rb +2 -3
  5. data/app/models/host/discovered.rb +6 -1
  6. data/app/services/foreman_discovery/subnet_suggestion.rb +8 -1
  7. data/app/views/discovered_hosts/welcome.html.erb +1 -1
  8. data/app/views/discovery_rules/welcome.html.erb +1 -1
  9. data/app/views/foreman_discovery/redhat_kexec.erb +2 -2
  10. data/lib/foreman_discovery/engine.rb +2 -2
  11. data/lib/foreman_discovery/version.rb +1 -1
  12. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  13. data/locale/ca/foreman_discovery.edit.po +41 -41
  14. data/locale/ca/foreman_discovery.po +5 -5
  15. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  16. data/locale/de/foreman_discovery.edit.po +74 -73
  17. data/locale/de/foreman_discovery.po +38 -37
  18. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  19. data/locale/en/foreman_discovery.edit.po +36 -36
  20. data/locale/en/foreman_discovery.po +1 -1
  21. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  22. data/locale/en_GB/foreman_discovery.edit.po +38 -38
  23. data/locale/en_GB/foreman_discovery.po +2 -2
  24. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  25. data/locale/es/foreman_discovery.edit.po +39 -39
  26. data/locale/es/foreman_discovery.po +3 -3
  27. data/locale/foreman_discovery.pot +38 -38
  28. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  29. data/locale/fr/foreman_discovery.edit.po +39 -39
  30. data/locale/fr/foreman_discovery.po +3 -3
  31. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  32. data/locale/gl/foreman_discovery.edit.po +39 -39
  33. data/locale/gl/foreman_discovery.po +3 -3
  34. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  35. data/locale/it/foreman_discovery.edit.po +39 -39
  36. data/locale/it/foreman_discovery.po +3 -3
  37. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  38. data/locale/ja/foreman_discovery.edit.po +39 -39
  39. data/locale/ja/foreman_discovery.po +3 -3
  40. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/ko/foreman_discovery.edit.po +39 -39
  42. data/locale/ko/foreman_discovery.po +3 -3
  43. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  44. data/locale/pt_BR/foreman_discovery.edit.po +39 -39
  45. data/locale/pt_BR/foreman_discovery.po +3 -3
  46. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  47. data/locale/ru/foreman_discovery.edit.po +39 -39
  48. data/locale/ru/foreman_discovery.po +3 -3
  49. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  50. data/locale/sv_SE/foreman_discovery.edit.po +39 -39
  51. data/locale/sv_SE/foreman_discovery.po +3 -3
  52. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  53. data/locale/zh_CN/foreman_discovery.edit.po +39 -39
  54. data/locale/zh_CN/foreman_discovery.po +3 -3
  55. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  56. data/locale/zh_TW/foreman_discovery.edit.po +39 -39
  57. data/locale/zh_TW/foreman_discovery.po +3 -3
  58. data/test/unit/managed_extensions_test.rb +1 -1
  59. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b89780a685ba935e63141f155eb8c1e5baaa4f9b36e4e71ac56c6eba33f11f26
4
- data.tar.gz: 741a2c3b783fa20c2cea7450b359b91583fc7da6e7b3e441e6121d3b9bea910f
3
+ metadata.gz: 1cda16d49c5599931d1446f4cd8166f92b2671e1acb24e7d7cd8e89ed158d303
4
+ data.tar.gz: e126cbf08924d0e09c9b0b367dc4ab8f2aadb4bdd8cd0bf1a69edca6c46cc915
5
5
  SHA512:
6
- metadata.gz: de3dad2c43932edc1e6a0974094f7baa6608a4c25c0020a67dfa8db0ef1f6d2fb54c7d07e314951975658a659cc671a1f7977c255efd3d0bc243ccca4a35c526
7
- data.tar.gz: ecdd28f538746981a162697f622861abf43513d3fdcbc5eaf5fda23fbebd73bfbd7334872396a52ac91a7cf17a4e1ef8784c89f5a33c523ac920d024b2aa78ab
6
+ metadata.gz: 1d1269213feae40fbdc833a3eea8a98a855b600e2513f44fd3f9dc452c09fa9c631c8ef02bf3ae485b1ef4bd1bd03efa733c5393b5b833d7c9d4c01c3259f3d8
7
+ data.tar.gz: 507e87375c35a562bc8ddb9aaccd51f58671772ea6e8a482150bf2bfb4bb665319744090bfd265102b8f98895a3e3075b731e0ce0c48e704561f898fcf1853dc
@@ -1,6 +1,9 @@
1
1
  module Foreman::Controller::Parameters::DiscoveredHost
2
2
  extend ActiveSupport::Concern
3
3
  include Foreman::Controller::Parameters::Host
4
+ if defined?(ForemanPuppet)
5
+ include ForemanPuppet::Extensions::ParametersHost
6
+ end
4
7
 
5
8
  class_methods do
6
9
  def discovered_host_params_filter
@@ -9,23 +12,32 @@ module Foreman::Controller::Parameters::DiscoveredHost
9
12
 
10
13
  add_host_base_params_filter(filter)
11
14
  add_host_common_params_filter(filter)
15
+ add_host_puppet_params_filter(filter) if defined?(ForemanPuppet)
12
16
  end
13
17
  end
14
18
  end
15
19
 
16
20
  def discovered_host_params
17
- self.class.discovered_host_params_filter.filter_params(params, parameter_filter_context)
21
+ filtered_params = self.class.discovered_host_params_filter.filter_params(params, parameter_filter_context)
22
+ process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
23
+ filtered_params
18
24
  end
19
25
 
20
26
  def discovered_host_params_host
21
- self.class.discovered_host_params_filter.filter_params(params, parameter_filter_context, :host)
27
+ filtered_params = self.class.discovered_host_params_filter.filter_params(params, parameter_filter_context, :host)
28
+ process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
29
+ filtered_params
22
30
  end
23
31
 
24
32
  def managed_host_params_host
25
- self.class.host_params_filter.filter_params(params, parameter_filter_context, :host)
33
+ filtered_params = self.class.host_params_filter.filter_params(params, parameter_filter_context, :host)
34
+ process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
35
+ filtered_params
26
36
  end
27
37
 
28
38
  def managed_host_params
29
- self.class.host_params_filter.filter_params(params, parameter_filter_context)
39
+ filtered_params = self.class.host_params_filter.filter_params(params, parameter_filter_context)
40
+ process_deprecated_puppet_params!(filtered_params) if defined?(ForemanPuppet)
41
+ filtered_params
30
42
  end
31
43
  end
@@ -15,7 +15,10 @@ class DiscoveredHostsController < ::ApplicationController
15
15
 
16
16
  helper :hosts
17
17
  if defined?(ForemanPuppet)
18
+ helper ForemanPuppet::HostsHelper
18
19
  helper ForemanPuppet::HostsAndHostgroupsHelper
20
+ helper ForemanPuppet::PuppetclassesHelper
21
+ helper ForemanPuppet::PuppetclassLookupKeysHelper
19
22
  end
20
23
 
21
24
  layout 'layouts/application'
@@ -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
@@ -89,15 +89,21 @@ class Host::Discovered < ::Host::Base
89
89
  existing_discovery_hosts = Nic::Managed.joins(:host).where(:mac => bootif_mac, :provision => true, :hosts => {:type => "Host::Discovered"}).order('created_at DESC')
90
90
  if existing_discovery_hosts.empty?
91
91
  host = Host.new(:name => hostname, :type => "Host::Discovered")
92
+ send_notifications = true
92
93
  else
93
94
  Rails.logger.warn "Multiple (#{existing_discovery_hosts.count}) discovery hosts found with MAC address #{name_fact} - picking most recent NIC entry" if existing_discovery_hosts.count > 1
94
95
  host = existing_discovery_hosts.first.host
96
+ send_notifications = false
95
97
  end
96
98
 
97
99
  # and save (interfaces are created via puppet parser extension)
98
100
  host.save(:validate => false) if host.new_record?
99
101
  importer = ForemanDiscovery::HostFactImporter.new(host)
100
102
  raise ::Foreman::Exception.new(N_("Facts could not be imported")) unless importer.import_facts(facts)
103
+
104
+ # finally, send out notifications for new hosts
105
+ host.create_notification if send_notifications
106
+
101
107
  host
102
108
  end
103
109
 
@@ -118,7 +124,6 @@ class Host::Discovered < ::Host::Base
118
124
  super(parser, type, source_proxy)
119
125
 
120
126
  populate_discovery_fields_from_facts(facts)
121
- create_notification
122
127
  parser
123
128
  end
124
129
 
@@ -14,7 +14,14 @@ module ForemanDiscovery
14
14
  def call
15
15
  return unless ip
16
16
 
17
- subnet = Subnet.unscoped.subnet_for(ip)
17
+ begin
18
+ subnet = Subnet.unscoped.subnet_for(ip)
19
+ rescue Exception => e
20
+ Rails.logger.error "Error while detecting subnet for IP #{ip}"
21
+ Foreman::Logging.exception "Unable to detect subnet", e
22
+ subnet = nil
23
+ end
24
+
18
25
  if subnet
19
26
  Rails.logger.info "Detected #{kind} subnet: #{subnet} with taxonomy #{subnet.organizations.collect(&:name)}/#{subnet.locations.collect(&:name)}"
20
27
  else
@@ -10,5 +10,5 @@
10
10
  <% content_for(:content) do %>
11
11
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
12
12
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
13
- <%= react_component('DiscoveredHosts', docUrl: discovery_doc_url ) %>
13
+ <%= react_component('DiscoveredHosts', docUrl: external_link_path(type: 'plugin_manual', name: 'foreman_discovery', version: discovery_doc_version)) %>
14
14
  <% end %>
@@ -10,5 +10,5 @@
10
10
  <% content_for(:content) do %>
11
11
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
12
12
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
13
- <%= react_component('DiscoveryRules', docUrl: discovery_doc_url + '/#4.3Automaticprovisioning' ) %>
13
+ <%= react_component('DiscoveryRules', docUrl: external_link_path(type: 'plugin_manual', name: 'foreman_discovery', version: discovery_doc_version, section: '#4.3Automaticprovisioning') ) %>
14
14
  <% end %>
@@ -47,9 +47,9 @@ Extra options like --reset-vga can be set via "extra" array.
47
47
  "initram": "<%= @initrd_uri %>",
48
48
  <% if (@host.operatingsystem.name == 'Fedora' and @host.operatingsystem.major.to_i > 16) or
49
49
  (@host.operatingsystem.name != 'Fedora' and @host.operatingsystem.major.to_i >= 7) -%>
50
- "append": "ks=<%= foreman_url('provision') + "&static=yes" %> inst.ks.sendmac <%= "ip=#{ip}::#{gw}:#{mask}:::none nameserver=#{dns} ksdevice=bootif BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
50
+ "append": "inst.ks=<%= foreman_url('provision') + "&static=yes" %> inst.ks.sendmac <%= "ip=#{ip}::#{gw}:#{mask}:::none nameserver=#{dns} ksdevice=bootif BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
51
51
  <% else -%>
52
- "append": "ks=<%= foreman_url('provision') + "&static=yes" %> kssendmac nicdelay=5 <%= "ip=#{ip} netmask=#{mask} gateway=#{gw} dns=#{dns} ksdevice=#{mac} BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
52
+ "append": "inst.ks=<%= foreman_url('provision') + "&static=yes" %> kssendmac nicdelay=5 <%= "ip=#{ip} netmask=#{mask} gateway=#{gw} dns=#{dns} ksdevice=#{mac} BOOTIF=#{bootif} nomodeset nokaslr " + options.compact.join(' ') %>",
53
53
  <% end -%>
54
54
  "extra": []
55
55
  }
@@ -43,7 +43,7 @@ module ForemanDiscovery
43
43
 
44
44
  initializer 'foreman_discovery.register_plugin', :before => :finisher_hook do |app|
45
45
  Foreman::Plugin.register :foreman_discovery do
46
- requires_foreman '>= 3.0'
46
+ requires_foreman '>= 3.1'
47
47
 
48
48
  # discovered hosts permissions
49
49
  security_block :discovery do
@@ -199,7 +199,7 @@ module ForemanDiscovery
199
199
  config.to_prepare do
200
200
 
201
201
  # Fact parsing
202
- ::FactParser.register_fact_parser(:foreman_discovery, ForemanDiscovery::FactParser)
202
+ Foreman::Plugin.fact_parser_registry.register(:foreman_discovery, ForemanDiscovery::FactParser)
203
203
 
204
204
  # Taxonomy extensions
205
205
  ::Location.send :include, DiscoveryTaxonomyExtensions
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "18.0.4"
2
+ VERSION = "19.0.2"
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 i Gelonch <rbuj@fedoraproject.org>, 2017
7
- # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015-2016
6
+ # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2017
7
+ # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015-2016
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: foreman_discovery 17.1.0\n"
10
+ "Project-Id-Version: foreman_discovery 18.0.1\n"
11
11
  "Report-Msgid-Bugs-To: \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"
12
+ "POT-Creation-Date: 2021-11-25 10:15+0100\n"
13
+ "PO-Revision-Date: 2021-09-20 17:24+0000\n"
14
+ "Last-Translator: Transifex Bot <>\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:160
123
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:163
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:167
131
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:170
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:173
139
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:176
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:176
143
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:179
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:129
163
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:132
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:63
243
+ #: ../app/controllers/discovered_hosts_controller.rb:66
244
244
  msgid "Successfully provisioned %s"
245
245
  msgstr ""
246
246
 
247
- #: ../app/controllers/discovered_hosts_controller.rb:97
247
+ #: ../app/controllers/discovered_hosts_controller.rb:100
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:99
251
+ #: ../app/controllers/discovered_hosts_controller.rb:102
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:102
255
+ #: ../app/controllers/discovered_hosts_controller.rb:105
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:109
259
+ #: ../app/controllers/discovered_hosts_controller.rb:112
260
260
  msgid "Host of type %s can not be rebooted"
261
261
  msgstr ""
262
262
 
263
- #: ../app/controllers/discovered_hosts_controller.rb:113
263
+ #: ../app/controllers/discovered_hosts_controller.rb:116
264
264
  msgid "Rebooting host %s"
265
265
  msgstr "S'està reiniciant l'amfitrió %s"
266
266
 
267
- #: ../app/controllers/discovered_hosts_controller.rb:115
267
+ #: ../app/controllers/discovered_hosts_controller.rb:118
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:118
271
+ #: ../app/controllers/discovered_hosts_controller.rb:121
272
272
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
273
273
  msgstr ""
274
274
 
275
- #: ../app/controllers/discovered_hosts_controller.rb:132
275
+ #: ../app/controllers/discovered_hosts_controller.rb:135
276
276
  msgid "Failed to reboot hosts with error %s"
277
277
  msgstr ""
278
278
 
279
- #: ../app/controllers/discovered_hosts_controller.rb:150
279
+ #: ../app/controllers/discovered_hosts_controller.rb:153
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:152
283
+ #: ../app/controllers/discovered_hosts_controller.rb:155
284
284
  msgid "The following hosts were not deleted: %s"
285
285
  msgstr ""
286
286
 
287
- #: ../app/controllers/discovered_hosts_controller.rb:164
287
+ #: ../app/controllers/discovered_hosts_controller.rb:167
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:192
291
+ #: ../app/controllers/discovered_hosts_controller.rb:195
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:277
295
+ #: ../app/controllers/discovered_hosts_controller.rb:280
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:282
299
+ #: ../app/controllers/discovered_hosts_controller.rb:285
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:296
303
+ #: ../app/controllers/discovered_hosts_controller.rb:299
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:300
307
+ #: ../app/controllers/discovered_hosts_controller.rb:303
308
308
  msgid "No hosts selected"
309
309
  msgstr "Cap amfitrió seleccionat"
310
310
 
311
- #: ../app/controllers/discovered_hosts_controller.rb:306
311
+ #: ../app/controllers/discovered_hosts_controller.rb:309
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
 
@@ -380,7 +380,7 @@ msgstr "Es va informar en els últims 7 dies"
380
380
  msgid "Provision"
381
381
  msgstr "Aprovisiona"
382
382
 
383
- #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:8 ../lib/foreman_discovery/engine.rb:159 ../lib/foreman_discovery/engine.rb:174
383
+ #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:8 ../lib/foreman_discovery/engine.rb:160 ../lib/foreman_discovery/engine.rb:175
384
384
  msgid "Discovered Hosts"
385
385
  msgstr ""
386
386
 
@@ -468,27 +468,27 @@ msgstr ""
468
468
  msgid "Invalid facts: hash does not contain a valid value for any of the facts in the discovery_hostname setting: %s"
469
469
  msgstr ""
470
470
 
471
- #: ../app/models/host/discovered.rb:100
471
+ #: ../app/models/host/discovered.rb:102
472
472
  msgid "Facts could not be imported"
473
473
  msgstr ""
474
474
 
475
- #: ../app/models/host/discovered.rb:155
475
+ #: ../app/models/host/discovered.rb:160
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:173
479
+ #: ../app/models/host/discovered.rb:178
480
480
  msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
481
481
  msgstr ""
482
482
 
483
- #: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
483
+ #: ../app/models/host/discovered.rb:182 ../app/models/host/discovered.rb:205
484
484
  msgid "Unable to perform %{action} on %{ips}"
485
485
  msgstr ""
486
486
 
487
- #: ../app/models/host/discovered.rb:196
487
+ #: ../app/models/host/discovered.rb:201
488
488
  msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
489
489
  msgstr ""
490
490
 
491
- #: ../app/models/host/discovered.rb:220
491
+ #: ../app/models/host/discovered.rb:225
492
492
  msgid "Invalid hostname: Could not normalize the hostname"
493
493
  msgstr ""
494
494
 
@@ -990,7 +990,7 @@ msgstr "Clona %s"
990
990
  msgid "Edit %s"
991
991
  msgstr "Edita %s"
992
992
 
993
- #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:164
993
+ #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:165
994
994
  msgid "Discovery Rules"
995
995
  msgstr "Regles de descobriment"
996
996
 
@@ -1058,19 +1058,19 @@ msgstr ""
1058
1058
  msgid "Error message goes here"
1059
1059
  msgstr ""
1060
1060
 
1061
- #: ../lib/foreman_discovery/engine.rb:176
1061
+ #: ../lib/foreman_discovery/engine.rb:177
1062
1062
  msgid "Discovery Kexec template"
1063
1063
  msgstr ""
1064
1064
 
1065
- #: ../lib/foreman_discovery/engine.rb:185
1065
+ #: ../lib/foreman_discovery/engine.rb:186
1066
1066
  msgid "Discovery Proxy"
1067
1067
  msgstr ""
1068
1068
 
1069
- #: ../lib/foreman_discovery/engine.rb:186
1069
+ #: ../lib/foreman_discovery/engine.rb:187
1070
1070
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1071
1071
  msgstr ""
1072
1072
 
1073
- #: ../lib/foreman_discovery/engine.rb:187
1073
+ #: ../lib/foreman_discovery/engine.rb:188
1074
1074
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1075
1075
  msgstr ""
1076
1076
 
@@ -3,14 +3,14 @@
3
3
  # This file is distributed under the same license as the foreman_discovery package.
4
4
  #
5
5
  # Translators:
6
- # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2017
7
- # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015-2016
6
+ # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2017
7
+ # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015-2016
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: foreman_discovery 17.1.0\n"
10
+ "Project-Id-Version: foreman_discovery 18.0.1\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "PO-Revision-Date: 2021-05-03 08:29+0000\n"
13
- "Last-Translator: Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>\n"
12
+ "PO-Revision-Date: 2021-09-20 17:24+0000\n"
13
+ "Last-Translator: Transifex Bot <>\n"
14
14
  "Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)"
15
15
  "\n"
16
16
  "MIME-Version: 1.0\n"