foreman_discovery 18.0.3 → 19.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) 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/lib/foreman_discovery/engine.rb +5 -4
  10. data/lib/foreman_discovery/version.rb +1 -1
  11. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  12. data/locale/ca/foreman_discovery.edit.po +41 -41
  13. data/locale/ca/foreman_discovery.po +5 -5
  14. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  15. data/locale/de/foreman_discovery.edit.po +74 -73
  16. data/locale/de/foreman_discovery.po +38 -37
  17. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  18. data/locale/en/foreman_discovery.edit.po +36 -36
  19. data/locale/en/foreman_discovery.po +1 -1
  20. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  21. data/locale/en_GB/foreman_discovery.edit.po +38 -38
  22. data/locale/en_GB/foreman_discovery.po +2 -2
  23. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  24. data/locale/es/foreman_discovery.edit.po +39 -39
  25. data/locale/es/foreman_discovery.po +3 -3
  26. data/locale/foreman_discovery.pot +38 -38
  27. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  28. data/locale/fr/foreman_discovery.edit.po +39 -39
  29. data/locale/fr/foreman_discovery.po +3 -3
  30. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  31. data/locale/gl/foreman_discovery.edit.po +39 -39
  32. data/locale/gl/foreman_discovery.po +3 -3
  33. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  34. data/locale/it/foreman_discovery.edit.po +39 -39
  35. data/locale/it/foreman_discovery.po +3 -3
  36. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  37. data/locale/ja/foreman_discovery.edit.po +39 -39
  38. data/locale/ja/foreman_discovery.po +3 -3
  39. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  40. data/locale/ko/foreman_discovery.edit.po +39 -39
  41. data/locale/ko/foreman_discovery.po +3 -3
  42. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  43. data/locale/pt_BR/foreman_discovery.edit.po +39 -39
  44. data/locale/pt_BR/foreman_discovery.po +3 -3
  45. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  46. data/locale/ru/foreman_discovery.edit.po +39 -39
  47. data/locale/ru/foreman_discovery.po +3 -3
  48. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  49. data/locale/sv_SE/foreman_discovery.edit.po +39 -39
  50. data/locale/sv_SE/foreman_discovery.po +3 -3
  51. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  52. data/locale/zh_CN/foreman_discovery.edit.po +39 -39
  53. data/locale/zh_CN/foreman_discovery.po +3 -3
  54. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  55. data/locale/zh_TW/foreman_discovery.edit.po +39 -39
  56. data/locale/zh_TW/foreman_discovery.po +3 -3
  57. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13f251693b7208a8e223305e5c7013d3e54d79b7dc7b8ed2328b9677cb41e32b
4
- data.tar.gz: fb711efac2b9b6f85a6f938f6f9ad9ca1e3f19bbc1f69c5ed2672b0fb8509ffe
3
+ metadata.gz: 427ba539a0f0044029faf7ffaca507c4091736f89a14de73559e81515295780a
4
+ data.tar.gz: 4f7a1b8fee20f9dd472a06b9dce2f385bc02246de5e592a2923e3156e332ee66
5
5
  SHA512:
6
- metadata.gz: 5bcb5da5a5438284c887fa9bb6b880ff45d9eab74c845b135c6567371887c2d73ffcc02edb0d6b0571c40e809f73d63fa45234b74242ac5db3a8cd5606935ea8
7
- data.tar.gz: 3b570a9ec8102c9008b81f8c7faac9946783d1ed50145db53c569280c74e21a27cf54dcf1ef232adb5bf0c5abb6be8d7dfbb0c179fe0fe82acacc02c12b440c0
6
+ metadata.gz: 6e2655e4136af4af6cd76fa3415ce0463ecc3984ed6e89d703e24eedc83f518b59481722fb232d008643f8e78beb4d523f95f80333c6ffac0e120fb49d91fe48
7
+ data.tar.gz: d18c12e3f57d69a80bf79ebfaa4e5de88a779c10aa12790ae057446fc3a4940c47f6654aa64edcec8fbfe430b9fa6a54e727476319ac61b11e61e78893b712c6
@@ -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 %>
@@ -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
@@ -126,14 +126,12 @@ module ForemanDiscovery
126
126
  :assign_locations,
127
127
  :view_architectures,
128
128
  :view_domains,
129
- :view_environments,
130
129
  :view_hostgroups,
131
130
  :view_media,
132
131
  :view_models,
133
132
  :view_operatingsystems,
134
133
  :view_provisioning_templates,
135
134
  :view_ptables,
136
- :view_puppetclasses,
137
135
  :view_realms,
138
136
  :view_smart_proxies,
139
137
  :view_subnets,
@@ -149,6 +147,9 @@ module ForemanDiscovery
149
147
  :edit_discovery_rules,
150
148
  :destroy_discovery_rules,
151
149
  ]
150
+ if defined?(ForemanPuppet::VERSION)
151
+ MANAGER += [ :view_environments, :view_puppetclasses ]
152
+ end
152
153
  role "Discovery Reader", READER, "Role granting permissions to view discovered hosts"
153
154
  role "Discovery Manager", MANAGER, "Role granting permissions to perform provisioning of discovered hosts"
154
155
 
@@ -198,7 +199,7 @@ module ForemanDiscovery
198
199
  config.to_prepare do
199
200
 
200
201
  # Fact parsing
201
- ::FactParser.register_fact_parser(:foreman_discovery, ForemanDiscovery::FactParser)
202
+ Foreman::Plugin.fact_parser_registry.register(:foreman_discovery, ForemanDiscovery::FactParser)
202
203
 
203
204
  # Taxonomy extensions
204
205
  ::Location.send :include, DiscoveryTaxonomyExtensions
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "18.0.3"
2
+ VERSION = "19.0.1"
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"