foreman_discovery 16.1.4 → 16.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +3 -10
  3. data/app/models/host/discovered.rb +10 -14
  4. data/app/models/setting/discovered.rb +3 -1
  5. data/app/services/foreman_discovery/host_fact_importer.rb +10 -0
  6. data/app/views/foreman_discovery/debian_kexec.erb +2 -1
  7. data/app/views/foreman_discovery/redhat_kexec.erb +2 -1
  8. data/lib/foreman_discovery/engine.rb +1 -1
  9. data/lib/foreman_discovery/version.rb +1 -1
  10. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  11. data/locale/ca/foreman_discovery.edit.po +67 -99
  12. data/locale/ca/foreman_discovery.po +1 -1
  13. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  14. data/locale/de/foreman_discovery.edit.po +71 -103
  15. data/locale/de/foreman_discovery.po +1 -1
  16. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  17. data/locale/en/foreman_discovery.edit.po +65 -97
  18. data/locale/en/foreman_discovery.po +1 -1
  19. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  20. data/locale/en_GB/foreman_discovery.edit.po +70 -102
  21. data/locale/en_GB/foreman_discovery.po +1 -1
  22. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  23. data/locale/es/foreman_discovery.edit.po +94 -128
  24. data/locale/es/foreman_discovery.po +1 -1
  25. data/locale/foreman_discovery.pot +85 -85
  26. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  27. data/locale/fr/foreman_discovery.edit.po +102 -134
  28. data/locale/fr/foreman_discovery.po +1 -1
  29. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  30. data/locale/gl/foreman_discovery.edit.po +66 -98
  31. data/locale/gl/foreman_discovery.po +1 -1
  32. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  33. data/locale/it/foreman_discovery.edit.po +71 -103
  34. data/locale/it/foreman_discovery.po +1 -1
  35. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  36. data/locale/ja/foreman_discovery.edit.po +107 -137
  37. data/locale/ja/foreman_discovery.po +1 -1
  38. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/ko/foreman_discovery.edit.po +71 -103
  40. data/locale/ko/foreman_discovery.po +1 -1
  41. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  42. data/locale/pt_BR/foreman_discovery.edit.po +92 -127
  43. data/locale/pt_BR/foreman_discovery.po +1 -1
  44. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/ru/foreman_discovery.edit.po +71 -103
  46. data/locale/ru/foreman_discovery.po +1 -1
  47. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/sv_SE/foreman_discovery.edit.po +67 -99
  49. data/locale/sv_SE/foreman_discovery.po +1 -1
  50. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  51. data/locale/zh_CN/foreman_discovery.edit.po +143 -172
  52. data/locale/zh_CN/foreman_discovery.po +1 -1
  53. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  54. data/locale/zh_TW/foreman_discovery.edit.po +71 -103
  55. data/locale/zh_TW/foreman_discovery.po +1 -1
  56. data/test/facts/only-ipv6.json +205 -0
  57. data/test/facts/skylake-ipv6.json +223 -0
  58. data/test/functional/api/v2/settings_controller_test.rb +2 -2
  59. data/test/unit/host_discovered_test.rb +0 -16
  60. metadata +19 -16
  61. data/test/facts/vmware-facter4-nolegacy.json +0 -402
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93f2f0828e78292ef40c46535f34d32d616ccf00b91465a5ca103d497510de5b
4
- data.tar.gz: 3f661f14112f905f9e6b4c15955ebdd8b942f5a88349ab08c6568a07b51bed5f
3
+ metadata.gz: accf12de8ae1253e5023ba98c65da7c3af14aa8da4691fe67dd7f18bc5717518
4
+ data.tar.gz: 0dd4c83a875917ccf3933679a31a747d8f559e5195415fab619cc0220bcd97c4
5
5
  SHA512:
6
- metadata.gz: bbbc9c3d5fa3d24b86beecb90c7237e5ea8093331762a9667576d3472df5e7e099dcf076c0d3e277c8bc75bfc56a8ff5079dd381514e7ac4ded899bc22205e37
7
- data.tar.gz: 209b24b5230750c5a428198c87405607ac925fa6bf173a45c5e593a93408d4b8a46e476f3563c93f2031b8c965bb3f3077b146283a1f87aec29df94a037c72e1
6
+ metadata.gz: a8fd61670a325106898043ab9533f7512835394a6141139580436e9c8fdd0027ff0aee02c0a53f6d92b5b4535d5bcbcabfb1cd91ddc0fd85ce8a0a54d2cde27e
7
+ data.tar.gz: 90263e8535e3d338ee335a280ff89dafd188d7e92c8f7becb340bc6ede0884bbf4ee915ad158de546c84058240c7338d1d4a736f3124e8c6c57f935862073f83
@@ -102,16 +102,9 @@ module Api
102
102
  state = true
103
103
  User.as_anonymous_admin do
104
104
  @discovered_host = Host::Discovered.import_host(facts)
105
- # Host::Based.set_taxonomies sets taxonomies during import from either
106
- # facts or via Global Foreman setting "default_taxonomy", reset it back so
107
- # the anonymous admin can see all records. We set taxonomy explicitly via
108
- # discovery SubnetAndTaxonomy import hook and enforce taxnomy manually
109
- # in find_discovery_rule method via validate_rule_by_taxonomy.
110
- Taxonomy.no_taxonomy_scope do
111
- Rails.logger.warn 'Discovered facts import unsuccessful, skipping auto provisioning' unless @discovered_host
112
- if Setting['discovery_auto'] && @discovered_host && (rule = find_discovery_rule(@discovered_host))
113
- state = perform_auto_provision(@discovered_host, rule)
114
- end
105
+ Rails.logger.warn 'Discovered facts import unsuccessful, skipping auto provisioning' unless @discovered_host
106
+ if Setting['discovery_auto'] && @discovered_host && (rule = find_discovery_rule(@discovered_host))
107
+ state = perform_auto_provision(@discovered_host, rule)
115
108
  end
116
109
  end
117
110
  process_response state
@@ -44,9 +44,13 @@ class Host::Discovered < ::Host::Base
44
44
 
45
45
  # Discovery import workflow:
46
46
  # discovered#import_host ->
47
- # discovered#import_facts -> base#import_facts -> base#parse_facts ->
48
- # discovered#populate_fields_from_facts -> base#populate_fields_from_facts -> base#set_interfaces
49
- # discovered#populate_discovery_fields_from_facts
47
+ # ForemanDiscovery::HostFactImporter#import_facts ->
48
+ # ::HostFactImporter#import_facts ->
49
+ # ::HostFactImporter#parse_facts ->
50
+ # discovered#populate_fields_from_facts ->
51
+ # base#populate_fields_from_facts ->
52
+ # base#set_interfaces ->
53
+ # discovered#populate_discovery_fields_from_facts
50
54
  def self.import_host facts
51
55
  raise(::Foreman::Exception.new(N_("Invalid facts, must be a Hash"))) unless facts.is_a?(Hash) || facts.is_a?(ActionController::Parameters)
52
56
 
@@ -92,19 +96,11 @@ class Host::Discovered < ::Host::Base
92
96
 
93
97
  # and save (interfaces are created via puppet parser extension)
94
98
  host.save(:validate => false) if host.new_record?
95
- raise ::Foreman::Exception.new(N_("Facts could not be imported")) unless host.import_facts(facts)
99
+ importer = ForemanDiscovery::HostFactImporter.new(host)
100
+ raise ::Foreman::Exception.new(N_("Facts could not be imported")) unless importer.import_facts(facts)
96
101
  host
97
102
  end
98
103
 
99
- def import_facts(facts)
100
- # Discovered Hosts won't report in via puppet, so we can use that field to
101
- # record the last time it sent facts...
102
- self.last_report = Time.now
103
- # Set the correct facts type for new foreman facts importing code.
104
- facts[:_type] = :foreman_discovery
105
- super(facts)
106
- end
107
-
108
104
  def setup_clone
109
105
  # Nic::Managed needs this method but Discovered hosts shouldn't
110
106
  # be doing orchestration anyway...
@@ -144,7 +140,7 @@ class Host::Discovered < ::Host::Base
144
140
  def refresh_facts
145
141
  facts = ::ForemanDiscovery::NodeAPI::Inventory.new(:url => proxy_url(self.ip)).facter
146
142
  self.class.import_host facts
147
- import_facts facts
143
+ ::ForemanDiscovery::HostFactImporter.new(self).import_facts facts
148
144
  rescue => e
149
145
  ::Foreman::Logging.exception("Unable to get facts from proxy", e)
150
146
  raise ::Foreman::WrappedException.new(e, N_("Could not get facts from proxy %{url}: %{error}"), :url => proxy_url, :error => e)
@@ -8,7 +8,9 @@ class Setting::Discovered < ::Setting
8
8
  BLANK_ATTRS << 'discovery_facts_hardware'
9
9
  BLANK_ATTRS << 'discovery_facts_network'
10
10
  BLANK_ATTRS << 'discovery_facts_ipmi'
11
- BLANK_ATTRS << 'discovery_prefix'
11
+
12
+ STRING_PRESENCE_ATTRS = ['discovery_hostname', 'discovery_prefix']
13
+ validates :value, :presence => true, :if => proc { |s| STRING_PRESENCE_ATTRS.include?(s.name) }
12
14
 
13
15
  def self.default_settings
14
16
  [
@@ -0,0 +1,10 @@
1
+ class ForemanDiscovery::HostFactImporter < ::HostFactImporter
2
+ def import_facts(facts)
3
+ # Discovered Hosts won't report in via puppet, so we can use that field to
4
+ # record the last time it sent facts...
5
+ host.last_report = Time.now
6
+ # Set the correct facts type for new foreman facts importing code.
7
+ facts[:_type] = :foreman_discovery
8
+ super(facts)
9
+ end
10
+ end
@@ -12,9 +12,10 @@ environments. The template must generate JSON format with the following items
12
12
  "kernel", "initram", "append" and "extra". The kexec command is composed in
13
13
  the following way:
14
14
 
15
- kexec --force --reset-vga --append=$append --initrd=$initram $extra $kernel
15
+ kexec --force --debug --append=$append --initrd=$initram $extra $kernel
16
16
 
17
17
  Please read kexec(8) man page for more information about semantics.
18
+ Extra options like --reset-vga can be set via "extra" array.
18
19
  -%>
19
20
  <%
20
21
  mac = @host.facts['discovery_bootif']
@@ -22,9 +22,10 @@ environments. The template must generate JSON format with the following items
22
22
  "kernel", "initram", "append" and "extra". The kexec command is composed in
23
23
  the following way:
24
24
 
25
- kexec --force --reset-vga --append=$append --initrd=$initram $extra $kernel
25
+ kexec --force --debug --append=$append --initrd=$initram $extra $kernel
26
26
 
27
27
  Please read kexec(8) man page for more information about semantics.
28
+ Extra options like --reset-vga can be set via "extra" array.
28
29
  -%>
29
30
  <%
30
31
  mac = @host.facts['discovery_bootif']
@@ -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 '>= 1.24.0'
46
+ requires_foreman '>= 2.2'
47
47
 
48
48
  # discovered hosts permissions
49
49
  security_block :discovery do
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "16.1.4"
2
+ VERSION = "16.2.0"
3
3
  end
@@ -7,10 +7,10 @@
7
7
  # Robert Antoni Buj 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 16.1.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "PO-Revision-Date: 2020-10-29 17:16+0000\n"
13
- "Last-Translator: Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>\n"
12
+ "PO-Revision-Date: 2020-05-26 17:21+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"
@@ -43,7 +43,7 @@ msgstr "Nombre d'entrades per petició"
43
43
  msgid "Show a discovered host"
44
44
  msgstr "Mostra un amfitrió descobert"
45
45
 
46
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:37 ../app/controllers/api/v2/discovered_hosts_controller.rb:85
46
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:37 ../app/controllers/api/v2/discovered_hosts_controller.rb:79
47
47
  msgid "DHCP filename option (Grub2 or PXELinux by default)"
48
48
  msgstr ""
49
49
 
@@ -55,10 +55,6 @@ msgstr "Crea un amfitrió descobert per a provar-ho (utilitzeu /facts per crear
55
55
  msgid "Provision a discovered host"
56
56
  msgstr "Aprovisiona un amfitrió descobert"
57
57
 
58
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:54 ../app/controllers/api/v2/discovered_hosts_controller.rb:57 ../app/controllers/api/v2/discovered_hosts_controller.rb:58 ../app/controllers/api/v2/discovered_hosts_controller.rb:61 ../app/controllers/api/v2/discovered_hosts_controller.rb:64
59
- msgid "required if host is managed and value is not inherited from host group"
60
- msgstr ""
61
-
62
58
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:55
63
59
  msgid "not required if using a subnet with DHCP proxy"
64
60
  msgstr "no es requereix si s'està utilitzant una subxarxa amb servidor intermediari DHCP"
@@ -67,99 +63,71 @@ msgstr "no es requereix si s'està utilitzant una subxarxa amb servidor intermed
67
63
  msgid "not required if it's a virtual machine"
68
64
  msgstr ""
69
65
 
70
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:62
71
- msgid "required if not imaged based provisioning and host is managed and value is not inherited from host group"
72
- msgstr ""
73
-
74
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:63
75
- msgid "required if host is managed and custom partition has not been defined"
76
- msgstr "es requereix si l'amfitrió està gestionat i no s'ha definit la partició personalitzada"
77
-
78
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:69
79
- msgid "Host's owner type"
80
- msgstr "Tipus de propietari de l'amfitrió"
81
-
82
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:72
83
- msgid "Host's parameters (array or indexed hash)"
84
- msgstr ""
85
-
86
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:73
87
- msgid "Name of the parameter"
88
- msgstr "Nom del paràmetre"
89
-
90
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:74
91
- msgid "Parameter value"
92
- msgstr "Valor del paràmetre"
93
-
94
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:75
95
- msgid "Type of value"
96
- msgstr ""
97
-
98
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:82
66
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:76
99
67
  msgid "UUID to track orchestration tasks status, GET /api/orchestration/:UUID/tasks"
100
68
  msgstr ""
101
69
 
102
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:84
70
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:78
103
71
  msgid "required if value is not inherited from host group or default password in settings"
104
72
  msgstr ""
105
73
 
106
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:95
74
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:89
107
75
  msgid "Delete a discovered host"
108
76
  msgstr "Suprimeix un amfitrió descobert"
109
77
 
110
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:102
78
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:96
111
79
  msgid "Upload facts for a host, creating the host if required"
112
80
  msgstr "Puja els objectes d'interès per a un amfitrió, creant el nou amfitrió si fos necessari"
113
81
 
114
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:103
82
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:97
115
83
  msgid "hash containing facts for the host with minimum set of facts: discovery_bootif, macaddress_eth0, ipaddress, ipaddress_eth0, interfaces: eth0 (example in case primary interface is named eth0)"
116
84
  msgstr ""
117
85
 
118
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:129
86
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:116
119
87
  msgid "Execute rules against a discovered host"
120
88
  msgstr ""
121
89
 
122
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:135 ../app/controllers/discovered_hosts_controller.rb:160
90
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:122 ../app/controllers/discovered_hosts_controller.rb:160
123
91
  msgid "Host %{host} was provisioned with rule %{rule}"
124
92
  msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
125
93
 
126
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
94
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:125
127
95
  msgid "Unable to provision %{host}: %{errors}"
128
96
  msgstr "No es pot aprovisionar a %{host}: %{errors}"
129
97
 
130
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:144 ../app/controllers/discovered_hosts_controller.rb:167
98
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:131 ../app/controllers/discovered_hosts_controller.rb:167
131
99
  msgid "No rule found for host %s"
132
100
  msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
133
101
 
134
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:151
102
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
135
103
  msgid "Execute rules against all currently discovered hosts"
136
104
  msgstr "Executa les regles contra tots els amfitrions detectats actualment"
137
105
 
138
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:155 ../app/controllers/discovered_hosts_controller.rb:173
106
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:142 ../app/controllers/discovered_hosts_controller.rb:173
139
107
  msgid "Errors during auto provisioning: %s"
140
108
  msgstr "Erros durant l'auto aprovisionament: %s"
141
109
 
142
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:158 ../app/controllers/discovered_hosts_controller.rb:176
110
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:176
143
111
  msgid "No discovered hosts to provision"
144
112
  msgstr "Sense amfitrions descoberts per aprovisionar"
145
113
 
146
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:180
114
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:167
147
115
  msgid "%s discovered hosts were provisioned"
148
116
  msgstr "%s amfitrions descoberts van ser aprovisionats"
149
117
 
150
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:191
118
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:178
151
119
  msgid "Refreshing the facts of a discovered host"
152
120
  msgstr "S'estan refrescant els objectes d'interès d'un amfitrió descobert"
153
121
 
154
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:200
122
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:187
155
123
  msgid "Rebooting a discovered host"
156
124
  msgstr "S'està reiniciant un amfitrió descobert"
157
125
 
158
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:209
126
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:196
159
127
  msgid "Rebooting all discovered hosts"
160
128
  msgstr "S'estan reiniciant tots els amfitrions descoberts"
161
129
 
162
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:220 ../app/controllers/discovered_hosts_controller.rb:129
130
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:207 ../app/controllers/discovered_hosts_controller.rb:129
163
131
  msgid "Discovered hosts are rebooting now"
164
132
  msgstr "Ara s'estan reiniciant els amfitrions descoberts"
165
133
 
@@ -331,11 +299,11 @@ msgstr "Cap amfitrió seleccionat"
331
299
  msgid "Something went wrong while selecting hosts - %s"
332
300
  msgstr "Alguna cosa va anar malament mentre se seleccionaven els amfitrions - %s"
333
301
 
334
- #: ../app/controllers/discovery_rules_controller.rb:72
302
+ #: ../app/controllers/discovery_rules_controller.rb:68
335
303
  msgid "Rule enabled"
336
304
  msgstr "Regla habilitada"
337
305
 
338
- #: ../app/controllers/discovery_rules_controller.rb:72
306
+ #: ../app/controllers/discovery_rules_controller.rb:68
339
307
  msgid "Rule disabled"
340
308
  msgstr "Regla inhabilitada"
341
309
 
@@ -343,15 +311,15 @@ msgstr "Regla inhabilitada"
343
311
  msgid "%s ago"
344
312
  msgstr "fa %s"
345
313
 
346
- #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/helpers/discovered_hosts_helper.rb:29 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:40
314
+ #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/helpers/discovered_hosts_helper.rb:29 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:37
347
315
  msgid "Auto Provision"
348
316
  msgstr "Auto aprovisiona"
349
317
 
350
- #: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:41
318
+ #: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:38
351
319
  msgid "Refresh facts"
352
320
  msgstr "Refresca els objectes d'interès"
353
321
 
354
- #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/models/setting/discovered.rb:24 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:42
322
+ #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/models/setting/discovered.rb:24 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:39
355
323
  msgid "Reboot"
356
324
  msgstr "Reinicia"
357
325
 
@@ -363,7 +331,7 @@ msgstr "Enrere"
363
331
  msgid "Select Action"
364
332
  msgstr "Selecciona l'acció"
365
333
 
366
- #: ../app/helpers/discovered_hosts_helper.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:43
334
+ #: ../app/helpers/discovered_hosts_helper.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:40
367
335
  msgid "Delete %s?"
368
336
  msgstr "Voleu suprimir %s?"
369
337
 
@@ -403,7 +371,7 @@ msgstr "Es va informar en els últims 7 dies"
403
371
  msgid "Provision"
404
372
  msgstr "Aprovisiona"
405
373
 
406
- #: ../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
374
+ #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:6 ../lib/foreman_discovery/engine.rb:158 ../lib/foreman_discovery/engine.rb:173
407
375
  msgid "Discovered Hosts"
408
376
  msgstr ""
409
377
 
@@ -753,15 +721,15 @@ msgstr ""
753
721
  msgid "Host"
754
722
  msgstr "Amfitrió"
755
723
 
756
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:4 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:7 ../app/views/discovered_hosts/_selected_hosts.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:18 ../app/views/discovered_mailer/discovered_summary.text.erb:10
724
+ #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:4 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6 ../app/views/discovered_hosts/_selected_hosts.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:18 ../app/views/discovered_mailer/discovered_summary.text.erb:10
757
725
  msgid "Model"
758
726
  msgstr "Model"
759
727
 
760
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:5 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:9 ../app/views/discovered_mailer/discovered_summary.html.erb:20 ../app/views/discovered_mailer/discovered_summary.text.erb:12
728
+ #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:5 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:20 ../app/views/discovered_mailer/discovered_summary.text.erb:12
761
729
  msgid "CPUs"
762
730
  msgstr "Les CPU"
763
731
 
764
- #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:6 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10 ../app/views/discovered_mailer/discovered_summary.html.erb:21 ../app/views/discovered_mailer/discovered_summary.text.erb:13
732
+ #: ../app/views/dashboard/_discovery_widget_host_list.html.erb:6 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:9 ../app/views/discovered_mailer/discovered_summary.html.erb:21 ../app/views/discovered_mailer/discovered_summary.text.erb:13
765
733
  msgid "Memory"
766
734
  msgstr "Memòria"
767
735
 
@@ -773,59 +741,59 @@ msgstr ""
773
741
  msgid "Create Host"
774
742
  msgstr "Crea un amfitrió"
775
743
 
776
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
744
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:4
777
745
  msgid "Select all items in this page"
778
746
  msgstr "Selecciona tots els ítems en aquesta pàgina"
779
747
 
780
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
748
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:4
781
749
  msgid "items selected. Uncheck to Clear"
782
750
  msgstr "ítems seleccionats. Desmarca per netejar"
783
751
 
784
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:6 ../app/views/discovered_hosts/_selected_hosts.html.erb:7 ../app/views/discovered_mailer/discovered_summary.html.erb:17 ../app/views/discovered_mailer/discovered_summary.text.erb:9
752
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5 ../app/views/discovered_hosts/_selected_hosts.html.erb:7 ../app/views/discovered_mailer/discovered_summary.html.erb:17 ../app/views/discovered_mailer/discovered_summary.text.erb:9
785
753
  msgid "Name"
786
754
  msgstr "Nom"
787
755
 
788
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:8 ../app/views/discovered_mailer/discovered_summary.html.erb:19 ../app/views/discovered_mailer/discovered_summary.text.erb:11
756
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:7 ../app/views/discovered_mailer/discovered_summary.html.erb:19 ../app/views/discovered_mailer/discovered_summary.text.erb:11
789
757
  msgid "IP Address"
790
758
  msgstr "Adreça IP"
791
759
 
792
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11
760
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10
793
761
  msgid "Disk Count"
794
762
  msgstr ""
795
763
 
796
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:12
764
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11
797
765
  msgid "Disks Size"
798
766
  msgstr ""
799
767
 
800
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:16 ../app/views/discovered_hosts/_selected_hosts.html.erb:9
768
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:15 ../app/views/discovered_hosts/_selected_hosts.html.erb:9
801
769
  msgid "Location"
802
770
  msgstr "Ubicació"
803
771
 
804
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
772
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:16 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
805
773
  msgid "Organization"
806
774
  msgstr "Organització"
807
775
 
808
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:18
776
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17
809
777
  msgid "Subnet"
810
778
  msgstr "Subxarxa"
811
779
 
812
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:19
780
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:18
813
781
  msgid "Last Facts Upload"
814
782
  msgstr ""
815
783
 
816
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovery_rules/index.html.erb:12
784
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:19 ../app/views/discovery_rules/index.html.erb:12
817
785
  msgid "Actions"
818
786
  msgstr "Accions"
819
787
 
820
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:55
788
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:51
821
789
  msgid "Please Confirm"
822
790
  msgstr "Si us plau, confirmeu"
823
791
 
824
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:61
792
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:57
825
793
  msgid "Cancel"
826
794
  msgstr "Cancel·la"
827
795
 
828
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:62
796
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:58
829
797
  msgid "Submit"
830
798
  msgstr "Envia"
831
799
 
@@ -873,6 +841,18 @@ msgstr "Adreça IP"
873
841
  msgid "Collapse All"
874
842
  msgstr ""
875
843
 
844
+ #: ../app/views/discovered_hosts/welcome.html.erb:7
845
+ msgid "No discovered hosts found in this context."
846
+ msgstr ""
847
+
848
+ #: ../app/views/discovered_hosts/welcome.html.erb:8
849
+ msgid "This page shows discovered bare-metal or virtual nodes waiting to be provisioned."
850
+ msgstr ""
851
+
852
+ #: ../app/views/discovered_hosts/welcome.html.erb:9
853
+ msgid "Learn more about this in the documentation."
854
+ msgstr "Obteniu més informació sobre això a la documentació."
855
+
876
856
  #: ../app/views/discovered_mailer/discovered_summary.html.erb:6
877
857
  msgid "Summary report for discovered hosts from Foreman"
878
858
  msgstr ""
@@ -965,11 +945,11 @@ msgstr ""
965
945
  msgid "Edit %s"
966
946
  msgstr "Edita %s"
967
947
 
968
- #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:164
948
+ #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:163
969
949
  msgid "Discovery Rules"
970
950
  msgstr "Regles de descobriment"
971
951
 
972
- #: ../app/views/discovery_rules/index.html.erb:2 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:9
952
+ #: ../app/views/discovery_rules/index.html.erb:2
973
953
  msgid "Create Rule"
974
954
  msgstr ""
975
955
 
@@ -1001,10 +981,6 @@ msgstr "Habilitada"
1001
981
  msgid "New Discovery Rule"
1002
982
  msgstr "Regla de descobriment nova"
1003
983
 
1004
- #: ../app/views/discovery_rules/welcome.html.erb:8
1005
- msgid "Discovered Rules"
1006
- msgstr ""
1007
-
1008
984
  #: ../db/seeds.d/50_discovery_templates.rb:5
1009
985
  msgid "Command line options for kexec during PXE-less provisioning."
1010
986
  msgstr ""
@@ -1025,42 +1001,34 @@ msgstr ""
1025
1001
  msgid "Details"
1026
1002
  msgstr ""
1027
1003
 
1028
- #: ../lib/foreman_discovery/engine.rb:180
1004
+ #: ../lib/foreman_discovery/engine.rb:179
1029
1005
  msgid "Discovery Kexec template"
1030
1006
  msgstr ""
1031
1007
 
1032
- #: ../lib/foreman_discovery/engine.rb:189
1008
+ #: ../lib/foreman_discovery/engine.rb:188
1033
1009
  msgid "Discovery Proxy"
1034
1010
  msgstr ""
1035
1011
 
1036
- #: ../lib/foreman_discovery/engine.rb:190
1012
+ #: ../lib/foreman_discovery/engine.rb:189
1037
1013
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1038
1014
  msgstr ""
1039
1015
 
1040
- #: ../lib/foreman_discovery/engine.rb:191
1016
+ #: ../lib/foreman_discovery/engine.rb:190
1041
1017
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1042
1018
  msgstr ""
1043
1019
 
1044
- #: ../webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js:33
1045
- msgid "For more information please see "
1046
- msgstr ""
1047
-
1048
- #: ../webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js:34
1049
- msgid "documentation"
1050
- msgstr ""
1051
-
1052
1020
  #: action_names.rb:2
1053
- msgid "Action with sub plans"
1021
+ msgid "Remote action:"
1054
1022
  msgstr ""
1055
1023
 
1056
1024
  #: action_names.rb:3
1057
- msgid "Import facts"
1025
+ msgid "Import Puppet classes"
1058
1026
  msgstr ""
1059
1027
 
1060
1028
  #: action_names.rb:4
1061
- msgid "Import Puppet classes"
1029
+ msgid "Import facts"
1062
1030
  msgstr ""
1063
1031
 
1064
1032
  #: action_names.rb:5
1065
- msgid "Remote action:"
1033
+ msgid "Action with sub plans"
1066
1034
  msgstr ""