foreman_discovery 16.3.1 → 17.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -0
  3. data/app/controllers/discovered_hosts_controller.rb +24 -35
  4. data/app/controllers/discovery_rules_controller.rb +12 -1
  5. data/app/helpers/discovered_hosts_helper.rb +6 -1
  6. data/app/helpers/discovery_rules_helper.rb +1 -0
  7. data/app/models/discovery_rule.rb +10 -5
  8. data/app/services/foreman_discovery/fact_to_category_resolver.rb +106 -0
  9. data/app/services/foreman_discovery/ui_notifications/failed_discovery.rb +34 -0
  10. data/app/services/foreman_discovery/ui_notifications/new_host.rb +2 -1
  11. data/app/views/discovered_hosts/_discovered_hosts_list.html.erb +44 -40
  12. data/app/views/discovered_hosts/welcome.html.erb +1 -2
  13. data/app/views/discovery_rules/clone.erb +3 -0
  14. data/app/views/discovery_rules/index.html.erb +4 -0
  15. data/app/views/discovery_rules/welcome.html.erb +15 -0
  16. data/app/views/foreman_discovery/debian_kexec.erb +1 -1
  17. data/app/views/foreman_discovery/redhat_kexec.erb +1 -1
  18. data/config/routes.rb +2 -0
  19. data/db/seeds.d/80_discovery_ui_notification.rb +11 -5
  20. data/lib/foreman_discovery/engine.rb +3 -7
  21. data/lib/foreman_discovery/version.rb +1 -1
  22. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  23. data/locale/ca/foreman_discovery.edit.po +136 -98
  24. data/locale/ca/foreman_discovery.po +36 -9
  25. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  26. data/locale/de/foreman_discovery.edit.po +148 -112
  27. data/locale/de/foreman_discovery.po +45 -18
  28. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  29. data/locale/en/foreman_discovery.edit.po +127 -91
  30. data/locale/en/foreman_discovery.po +31 -4
  31. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  32. data/locale/en_GB/foreman_discovery.edit.po +139 -109
  33. data/locale/en_GB/foreman_discovery.po +36 -9
  34. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  35. data/locale/es/foreman_discovery.edit.po +172 -140
  36. data/locale/es/foreman_discovery.po +70 -41
  37. data/locale/foreman_discovery.pot +142 -97
  38. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/fr/foreman_discovery.edit.po +179 -147
  40. data/locale/fr/foreman_discovery.po +76 -49
  41. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  42. data/locale/gl/foreman_discovery.edit.po +133 -92
  43. data/locale/gl/foreman_discovery.po +32 -5
  44. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  45. data/locale/it/foreman_discovery.edit.po +147 -106
  46. data/locale/it/foreman_discovery.po +44 -17
  47. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  48. data/locale/ja/foreman_discovery.edit.po +182 -152
  49. data/locale/ja/foreman_discovery.po +79 -54
  50. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  51. data/locale/ko/foreman_discovery.edit.po +146 -105
  52. data/locale/ko/foreman_discovery.po +43 -16
  53. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  54. data/locale/pt_BR/foreman_discovery.edit.po +171 -136
  55. data/locale/pt_BR/foreman_discovery.po +69 -39
  56. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  57. data/locale/ru/foreman_discovery.edit.po +147 -106
  58. data/locale/ru/foreman_discovery.po +43 -16
  59. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  60. data/locale/sv_SE/foreman_discovery.edit.po +135 -94
  61. data/locale/sv_SE/foreman_discovery.po +34 -7
  62. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  63. data/locale/zh_CN/foreman_discovery.edit.po +217 -188
  64. data/locale/zh_CN/foreman_discovery.po +114 -90
  65. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  66. data/locale/zh_TW/foreman_discovery.edit.po +146 -105
  67. data/locale/zh_TW/foreman_discovery.po +43 -16
  68. data/package.json +7 -7
  69. data/test/functional/api/v2/discovered_hosts_controller_test.rb +9 -0
  70. data/test/functional/discovery_rules_controller_test.rb +6 -1
  71. data/test/integration/discovered_hosts_test.rb +53 -5
  72. data/test/test_helper_discovery.rb +5 -0
  73. data/test/unit/discovery_rule_test.rb +24 -2
  74. data/test/unit/fact_to_category_resolver_test.rb +41 -0
  75. data/test/unit/ui_notifications/destroy_host_test.rb +2 -9
  76. data/test/unit/ui_notifications/new_host_test.rb +3 -3
  77. data/webpack/__mocks__/foremanReact/common/I18n.js +3 -0
  78. data/webpack/__mocks__/foremanReact/common/helpers.js +1 -0
  79. data/webpack/__mocks__/foremanReact/common/index.js +5 -0
  80. data/webpack/__mocks__/foremanReact/components/common/EmptyState/DefaultEmptyState.js +69 -0
  81. data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js +77 -0
  82. data/webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePropTypes.js +29 -0
  83. data/webpack/__mocks__/foremanReact/components/common/EmptyState/index.js +5 -0
  84. data/webpack/index.js +9 -8
  85. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/EmptyState.js +7 -7
  86. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/EmptyState.test.js +12 -0
  87. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/__test__/__snapshots__/EmptyState.test.js.snap +16 -0
  88. data/webpack/src/ForemanDiscovery/DiscoveredHosts/Components/EmptyState/index.js +1 -1
  89. data/webpack/src/ForemanDiscovery/DiscoveredHosts/index.js +3 -3
  90. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js +34 -0
  91. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/index.js +1 -0
  92. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/EmptyState.test.js +19 -0
  93. data/webpack/src/ForemanDiscovery/DiscoveryRules/Components/__test__/__snapshots__/EmptyState.test.js.snap +22 -0
  94. data/webpack/src/ForemanDiscovery/DiscoveryRules/index.js +6 -0
  95. data/webpack/src/reducers.js +0 -2
  96. metadata +39 -17
@@ -11,6 +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',
15
- docUrl: "https://theforeman.org/plugins/foreman_discovery/#{ForemanDiscovery::VERSION.scan(/\d+\.\d+/).first}/index.html" ) %>
14
+ <%= react_component('DiscoveredHosts', docUrl: discovery_doc_url ) %>
16
15
  <% end %>
@@ -0,0 +1,3 @@
1
+ <% title _("Clone %s") % @discovered_rules.to_s %>
2
+
3
+ <%= render :partial => 'form' %>
@@ -8,6 +8,8 @@
8
8
  <th><%= sort :search, :as => s_("DiscoveryRule|Query") %></th>
9
9
  <th><%= _("Host Group") %></th>
10
10
  <th><%= _("Hosts/Limit") %></th>
11
+ <th><%= sort :location, :as => _('Location') %></th>
12
+ <th><%= sort :organization, :as => _('Organization') %></th>
11
13
  <th><%= sort :enabled, :as => s_("DiscoveryRule|Enabled") %></th>
12
14
  <th><%= _("Actions") %></th>
13
15
  </tr>
@@ -18,6 +20,8 @@
18
20
  <td><%= trunc_with_tooltip(rule.search) %></td>
19
21
  <td><%= label_with_link(rule.hostgroup, 26, authorizer) %></td>
20
22
  <td><%= rule.hosts.count %> / <%= rule.max_count %></td>
23
+ <td><%= rule.locations.find_by(title: Location.current.try(:title)).try(:title) || rule.locations.pluck(:title).join(",") %></td>
24
+ <td><%= rule.organizations.find_by(title: Organization.current.try(:title)).try(:title) || rule.organizations.pluck(:title).join(",") %></td>
21
25
  <td><%= checked_icon rule.enabled %></td>
22
26
  <td><%= action_buttons(*permitted_discovery_actions(rule)) %></td>
23
27
  </tr>
@@ -0,0 +1,15 @@
1
+ <% content_for(:javascripts) do %>
2
+ <%= webpacked_plugins_js_for :'foreman_discovery' %>
3
+ <% end %>
4
+ <% content_for(:stylesheets) do %>
5
+ <%= webpacked_plugins_css_for :'foreman_discovery' %>
6
+ <% end %>
7
+
8
+ <% content_for(:title, _("Discovered Rules")) %>
9
+
10
+ <% content_for(:content) do %>
11
+ <%= notifications %>
12
+ <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
13
+ <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
14
+ <%= react_component('DiscoveryRules', docUrl: discovery_doc_url + '/#4.3Automaticprovisioning' ) %>
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 = '00-' + 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 = '00-' + 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']
data/config/routes.rb CHANGED
@@ -7,6 +7,7 @@ Rails.application.routes.draw do
7
7
  post 'medium_selected_discovered_hosts' => 'hosts#medium_selected'
8
8
 
9
9
  get 'discovered_hosts/help', :action => :welcome, :controller => 'discovered_hosts'
10
+ get 'discovery_rules/help', :action => :welcome, :controller => 'discovery_rules'
10
11
 
11
12
  constraints(:id => /[^\/]+/) do
12
13
  resources :discovered_hosts, :except => [:new, :create] do
@@ -33,6 +34,7 @@ Rails.application.routes.draw do
33
34
 
34
35
  resources :discovery_rules, :except => [:show] do
35
36
  member do
37
+ get :clone
36
38
  get :enable
37
39
  get :disable
38
40
  end
@@ -1,7 +1,7 @@
1
1
  # seeds UI notification blueprints that are supported by Disocvery.
2
2
  [
3
3
  {
4
- group: _('Hosts'),
4
+ group: _('New hosts'),
5
5
  name: 'new_discovered_host',
6
6
  message: _('One or more hosts have been discovered'),
7
7
  level: 'info',
@@ -10,8 +10,14 @@
10
10
  links:
11
11
  [
12
12
  path_method: :discovered_hosts_path,
13
- title: _('Details')
14
- ]
15
- }
16
- }
13
+ title: _('Details'),
14
+ ],
15
+ },
16
+ },
17
+ {
18
+ group: _('Hosts'),
19
+ name: 'failed_discovery',
20
+ message: _('Error message goes here'),
21
+ level: 'error',
22
+ },
17
23
  ].each { |blueprint| UINotifications::Seed.new(blueprint).configure }
@@ -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 '>= 2.2'
46
+ requires_foreman '>= 2.4'
47
47
 
48
48
  # discovered hosts permissions
49
49
  security_block :discovery do
@@ -86,11 +86,11 @@ module ForemanDiscovery
86
86
  # discovery rules permissions
87
87
  security_block :discovery_rules do
88
88
  permission :view_discovery_rules, {
89
- :discovery_rules => [:index, :show, :auto_complete_search],
89
+ :discovery_rules => [:index, :show, :auto_complete_search, :welcome],
90
90
  :"api/v2/discovery_rules" => [:index, :show]
91
91
  }, :resource_type => 'DiscoveryRule'
92
92
  permission :create_discovery_rules, {
93
- :discovery_rules => [:new, :create],
93
+ :discovery_rules => [:new, :create, :clone],
94
94
  :"api/v2/discovery_rules" => [:create]
95
95
  }, :resource_type => 'DiscoveryRule'
96
96
  permission :edit_discovery_rules, {
@@ -173,10 +173,6 @@ module ForemanDiscovery
173
173
  # add dashboard widget
174
174
  widget 'discovery_widget', :name=>N_('Discovered Hosts'), :sizex => 6, :sizey =>1
175
175
 
176
- # allowed helpers and variables
177
- allowed_template_helpers :rand
178
- allowed_template_variables :kexec_kernel, :kexec_initrd
179
-
180
176
  template_labels 'kexec' => N_('Discovery Kexec template')
181
177
 
182
178
  # apipie API documentation
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "16.3.1"
2
+ VERSION = "17.0.1"
3
3
  end
@@ -7,9 +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.2.0\n"
10
+ "Project-Id-Version: foreman_discovery 16.3.4\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "PO-Revision-Date: 2020-05-26 17:21+0000\n"
12
+ "POT-Creation-Date: 2021-05-03 08:46+0200\n"
13
+ "PO-Revision-Date: 2021-01-25 08:35+0000\n"
13
14
  "Last-Translator: Transifex Bot <>\n"
14
15
  "Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)"
15
16
  "\n"
@@ -73,11 +74,11 @@ msgstr ""
73
74
 
74
75
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:63
75
76
  msgid "required if host is managed and custom partition has not been defined"
76
- msgstr ""
77
+ msgstr "es requereix si l'amfitrió està gestionat i no s'ha definit la partició personalitzada"
77
78
 
78
79
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:69
79
80
  msgid "Host's owner type"
80
- msgstr ""
81
+ msgstr "Tipus de propietari de l'amfitrió"
81
82
 
82
83
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:72
83
84
  msgid "Host's parameters (array or indexed hash)"
@@ -85,11 +86,11 @@ msgstr ""
85
86
 
86
87
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:73
87
88
  msgid "Name of the parameter"
88
- msgstr ""
89
+ msgstr "Nom del paràmetre"
89
90
 
90
91
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:74
91
92
  msgid "Parameter value"
92
- msgstr ""
93
+ msgstr "Valor del paràmetre"
93
94
 
94
95
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:75
95
96
  msgid "Type of value"
@@ -115,51 +116,51 @@ msgstr "Puja els objectes d'interès per a un amfitrió, creant el nou amfitrió
115
116
  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
117
  msgstr ""
117
118
 
118
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:129
119
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:130
119
120
  msgid "Execute rules against a discovered host"
120
121
  msgstr ""
121
122
 
122
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:135 ../app/controllers/discovered_hosts_controller.rb:160
123
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:157
123
124
  msgid "Host %{host} was provisioned with rule %{rule}"
124
125
  msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
125
126
 
126
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:138
127
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:139
127
128
  msgid "Unable to provision %{host}: %{errors}"
128
129
  msgstr "No es pot aprovisionar a %{host}: %{errors}"
129
130
 
130
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:144 ../app/controllers/discovered_hosts_controller.rb:167
131
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:164
131
132
  msgid "No rule found for host %s"
132
133
  msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
133
134
 
134
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:151
135
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:152
135
136
  msgid "Execute rules against all currently discovered hosts"
136
137
  msgstr "Executa les regles contra tots els amfitrions detectats actualment"
137
138
 
138
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:155 ../app/controllers/discovered_hosts_controller.rb:173
139
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:170
139
140
  msgid "Errors during auto provisioning: %s"
140
141
  msgstr "Erros durant l'auto aprovisionament: %s"
141
142
 
142
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:158 ../app/controllers/discovered_hosts_controller.rb:176
143
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:173
143
144
  msgid "No discovered hosts to provision"
144
145
  msgstr "Sense amfitrions descoberts per aprovisionar"
145
146
 
146
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:180
147
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:181
147
148
  msgid "%s discovered hosts were provisioned"
148
149
  msgstr "%s amfitrions descoberts van ser aprovisionats"
149
150
 
150
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:191
151
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:192
151
152
  msgid "Refreshing the facts of a discovered host"
152
153
  msgstr "S'estan refrescant els objectes d'interès d'un amfitrió descobert"
153
154
 
154
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:200
155
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:201
155
156
  msgid "Rebooting a discovered host"
156
157
  msgstr "S'està reiniciant un amfitrió descobert"
157
158
 
158
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:209
159
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:210
159
160
  msgid "Rebooting all discovered hosts"
160
161
  msgstr "S'estan reiniciant tots els amfitrions descoberts"
161
162
 
162
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:220 ../app/controllers/discovered_hosts_controller.rb:129
163
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:126
163
164
  msgid "Discovered hosts are rebooting now"
164
165
  msgstr "Ara s'estan reiniciant els amfitrions descoberts"
165
166
 
@@ -239,119 +240,95 @@ msgstr "Errors durant el reinici: %s"
239
240
  msgid "No discovered hosts to reboot"
240
241
  msgstr ""
241
242
 
242
- #: ../app/controllers/discovered_hosts_controller.rb:63
243
+ #: ../app/controllers/discovered_hosts_controller.rb:60
243
244
  msgid "Successfully provisioned %s"
244
245
  msgstr ""
245
246
 
246
- #: ../app/controllers/discovered_hosts_controller.rb:97
247
+ #: ../app/controllers/discovered_hosts_controller.rb:94
247
248
  msgid "Facts refreshed for %s"
248
249
  msgstr "Els objectes d'interès que s'han refrescat per a %s"
249
250
 
250
- #: ../app/controllers/discovered_hosts_controller.rb:99
251
+ #: ../app/controllers/discovered_hosts_controller.rb:96
251
252
  msgid "Failed to refresh facts for %s"
252
253
  msgstr "No s'ha pogut refrescar els objectes d'interès per a %s"
253
254
 
254
- #: ../app/controllers/discovered_hosts_controller.rb:102
255
+ #: ../app/controllers/discovered_hosts_controller.rb:99
255
256
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
256
257
  msgstr ""
257
258
 
258
- #: ../app/controllers/discovered_hosts_controller.rb:109
259
+ #: ../app/controllers/discovered_hosts_controller.rb:106
259
260
  msgid "Host of type %s can not be rebooted"
260
261
  msgstr ""
261
262
 
262
- #: ../app/controllers/discovered_hosts_controller.rb:113
263
+ #: ../app/controllers/discovered_hosts_controller.rb:110
263
264
  msgid "Rebooting host %s"
264
265
  msgstr "S'està reiniciant l'amfitrió %s"
265
266
 
266
- #: ../app/controllers/discovered_hosts_controller.rb:115
267
+ #: ../app/controllers/discovered_hosts_controller.rb:112
267
268
  msgid "Failed to reboot host %s"
268
269
  msgstr "No s'ha pogut reiniciar l'amfitrió %s."
269
270
 
270
- #: ../app/controllers/discovered_hosts_controller.rb:118
271
+ #: ../app/controllers/discovered_hosts_controller.rb:115
271
272
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
272
273
  msgstr ""
273
274
 
274
- #: ../app/controllers/discovered_hosts_controller.rb:132
275
+ #: ../app/controllers/discovered_hosts_controller.rb:129
275
276
  msgid "Failed to reboot hosts with error %s"
276
277
  msgstr ""
277
278
 
278
- #: ../app/controllers/discovered_hosts_controller.rb:150
279
+ #: ../app/controllers/discovered_hosts_controller.rb:147
279
280
  msgid "Destroyed selected hosts"
280
281
  msgstr "S'han destruït els amfitrions seleccionats"
281
282
 
282
- #: ../app/controllers/discovered_hosts_controller.rb:152
283
+ #: ../app/controllers/discovered_hosts_controller.rb:149
283
284
  msgid "The following hosts were not deleted: %s"
284
285
  msgstr ""
285
286
 
286
- #: ../app/controllers/discovered_hosts_controller.rb:164
287
+ #: ../app/controllers/discovered_hosts_controller.rb:161
287
288
  msgid "Failed to auto provision host %s: %s"
288
289
  msgstr "No s'ha pogut auto aprovisionar l'amfitrió %s: %s"
289
290
 
290
- #: ../app/controllers/discovered_hosts_controller.rb:192
291
+ #: ../app/controllers/discovered_hosts_controller.rb:189
291
292
  msgid "Discovered hosts are provisioning now"
292
293
  msgstr "Els amfitrions descoberts ara tenen aprovisionament"
293
294
 
294
- #: ../app/controllers/discovered_hosts_controller.rb:226
295
- msgid "Highlights"
296
- msgstr ""
297
-
298
- #: ../app/controllers/discovered_hosts_controller.rb:226
299
- msgid "Storage"
300
- msgstr ""
301
-
302
- #: ../app/controllers/discovered_hosts_controller.rb:226
303
- msgid "Hardware"
304
- msgstr ""
305
-
306
- #: ../app/controllers/discovered_hosts_controller.rb:226
307
- msgid "Network"
308
- msgstr ""
309
-
310
- #: ../app/controllers/discovered_hosts_controller.rb:226
311
- msgid "Software"
312
- msgstr ""
313
-
314
- #: ../app/controllers/discovered_hosts_controller.rb:226
315
- msgid "IPMI"
295
+ #: ../app/controllers/discovered_hosts_controller.rb:270
296
+ msgid "Discovered host reported from unknown subnet, communication will not be proxied."
316
297
  msgstr ""
317
298
 
318
- #: ../app/controllers/discovered_hosts_controller.rb:226
319
- msgid "Miscellaneous"
299
+ #: ../app/controllers/discovered_hosts_controller.rb:275
300
+ msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
320
301
  msgstr ""
321
302
 
322
- #: ../app/controllers/discovered_hosts_controller.rb:304
303
+ #: ../app/controllers/discovered_hosts_controller.rb:289
323
304
  msgid "No hosts were found with that id or name"
324
305
  msgstr "No s'ha trobat cap amfitrió amb aquest ID o nom"
325
306
 
326
- #: ../app/controllers/discovered_hosts_controller.rb:308
307
+ #: ../app/controllers/discovered_hosts_controller.rb:293
327
308
  msgid "No hosts selected"
328
309
  msgstr "Cap amfitrió seleccionat"
329
310
 
330
- #: ../app/controllers/discovered_hosts_controller.rb:314
311
+ #: ../app/controllers/discovered_hosts_controller.rb:299
331
312
  msgid "Something went wrong while selecting hosts - %s"
332
313
  msgstr "Alguna cosa va anar malament mentre se seleccionaven els amfitrions - %s"
333
314
 
334
- #: ../app/controllers/discovery_rules_controller.rb:68
315
+ #: ../app/controllers/discovery_rules_controller.rb:79
335
316
  msgid "Rule enabled"
336
317
  msgstr "Regla habilitada"
337
318
 
338
- #: ../app/controllers/discovery_rules_controller.rb:68
319
+ #: ../app/controllers/discovery_rules_controller.rb:79
339
320
  msgid "Rule disabled"
340
321
  msgstr "Regla inhabilitada"
341
322
 
342
- #: ../app/helpers/discovered_hosts_helper.rb:10
343
- msgid "%s ago"
344
- msgstr "fa %s"
345
-
346
- #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/helpers/discovered_hosts_helper.rb:29 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:37
323
+ #: ../app/helpers/discovered_hosts_helper.rb:14 ../app/helpers/discovered_hosts_helper.rb:29 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:40
347
324
  msgid "Auto Provision"
348
325
  msgstr "Auto aprovisiona"
349
326
 
350
- #: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:38
327
+ #: ../app/helpers/discovered_hosts_helper.rb:15 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:41
351
328
  msgid "Refresh facts"
352
329
  msgstr "Refresca els objectes d'interès"
353
330
 
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:39
331
+ #: ../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
355
332
  msgid "Reboot"
356
333
  msgstr "Reinicia"
357
334
 
@@ -363,7 +340,7 @@ msgstr "Enrere"
363
340
  msgid "Select Action"
364
341
  msgstr "Selecciona l'acció"
365
342
 
366
- #: ../app/helpers/discovered_hosts_helper.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:40
343
+ #: ../app/helpers/discovered_hosts_helper.rb:23 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:43
367
344
  msgid "Delete %s?"
368
345
  msgstr "Voleu suprimir %s?"
369
346
 
@@ -428,6 +405,10 @@ msgid "Enable rule '%s'?"
428
405
  msgstr ""
429
406
 
430
407
  #: ../app/helpers/discovery_rules_helper.rb:33
408
+ msgid "Clone"
409
+ msgstr ""
410
+
411
+ #: ../app/helpers/discovery_rules_helper.rb:34
431
412
  msgid "Delete rule '%s'?"
432
413
  msgstr ""
433
414
 
@@ -451,13 +432,13 @@ msgstr "ha de començar amb una lletra o ERB."
451
432
  msgid "must be present."
452
433
  msgstr ""
453
434
 
454
- #: ../app/models/discovery_rule.rb:52
435
+ #: ../app/models/discovery_rule.rb:57
455
436
  msgid "Host group organization %s must also be associated to the discovery rule"
456
437
  msgid_plural "Host group organizations %s must also be associated to the discovery rule"
457
438
  msgstr[0] ""
458
439
  msgstr[1] ""
459
440
 
460
- #: ../app/models/discovery_rule.rb:56
441
+ #: ../app/models/discovery_rule.rb:61
461
442
  msgid "Host group location %s must also be associated to the discovery rule"
462
443
  msgid_plural "Host group locations %s must also be associated to the discovery rule"
463
444
  msgstr[0] ""
@@ -727,6 +708,34 @@ msgstr ""
727
708
  msgid "Unable to find primary NIC with %{mac} specified via '%{fact}', NIC filter: %{filter}"
728
709
  msgstr ""
729
710
 
711
+ #: ../app/services/foreman_discovery/fact_to_category_resolver.rb:7
712
+ msgid "Highlights"
713
+ msgstr ""
714
+
715
+ #: ../app/services/foreman_discovery/fact_to_category_resolver.rb:8
716
+ msgid "Storage"
717
+ msgstr ""
718
+
719
+ #: ../app/services/foreman_discovery/fact_to_category_resolver.rb:9
720
+ msgid "Hardware"
721
+ msgstr ""
722
+
723
+ #: ../app/services/foreman_discovery/fact_to_category_resolver.rb:10
724
+ msgid "Network"
725
+ msgstr ""
726
+
727
+ #: ../app/services/foreman_discovery/fact_to_category_resolver.rb:11
728
+ msgid "Software"
729
+ msgstr ""
730
+
731
+ #: ../app/services/foreman_discovery/fact_to_category_resolver.rb:12
732
+ msgid "IPMI"
733
+ msgstr ""
734
+
735
+ #: ../app/services/foreman_discovery/fact_to_category_resolver.rb:13
736
+ msgid "Miscellaneous"
737
+ msgstr ""
738
+
730
739
  #: ../app/services/foreman_discovery/host_converter.rb:47
731
740
  msgid "IPAM must be configured for subnet '%s'"
732
741
  msgstr ""
@@ -739,6 +748,10 @@ msgstr ""
739
748
  msgid "Image API processing error: %{msg} (HTTP/%{code}, body: %{body})"
740
749
  msgstr ""
741
750
 
751
+ #: ../app/services/foreman_discovery/ui_notifications/new_host.rb:22
752
+ msgid "Host %s has been dicovered"
753
+ msgstr ""
754
+
742
755
  #: ../app/views/dashboard/_discovery_widget.html.erb:5
743
756
  msgid "Discovered Host"
744
757
  msgid_plural "Discovered Hosts"
@@ -753,15 +766,15 @@ msgstr ""
753
766
  msgid "Host"
754
767
  msgstr "Amfitrió"
755
768
 
756
- #: ../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
769
+ #: ../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
757
770
  msgid "Model"
758
771
  msgstr "Model"
759
772
 
760
- #: ../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
773
+ #: ../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
761
774
  msgid "CPUs"
762
775
  msgstr "Les CPU"
763
776
 
764
- #: ../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
777
+ #: ../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
765
778
  msgid "Memory"
766
779
  msgstr "Memòria"
767
780
 
@@ -773,59 +786,59 @@ msgstr ""
773
786
  msgid "Create Host"
774
787
  msgstr "Crea un amfitrió"
775
788
 
776
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:4
789
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
777
790
  msgid "Select all items in this page"
778
791
  msgstr "Selecciona tots els ítems en aquesta pàgina"
779
792
 
780
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:4
793
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:5
781
794
  msgid "items selected. Uncheck to Clear"
782
795
  msgstr "ítems seleccionats. Desmarca per netejar"
783
796
 
784
- #: ../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
797
+ #: ../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
785
798
  msgid "Name"
786
799
  msgstr "Nom"
787
800
 
788
- #: ../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
801
+ #: ../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
789
802
  msgid "IP Address"
790
803
  msgstr "Adreça IP"
791
804
 
792
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:10
805
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11
793
806
  msgid "Disk Count"
794
807
  msgstr ""
795
808
 
796
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:11
809
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:12
797
810
  msgid "Disks Size"
798
811
  msgstr ""
799
812
 
800
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:15 ../app/views/discovered_hosts/_selected_hosts.html.erb:9
813
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:16 ../app/views/discovered_hosts/_selected_hosts.html.erb:9 ../app/views/discovery_rules/index.html.erb:11
801
814
  msgid "Location"
802
815
  msgstr "Ubicació"
803
816
 
804
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:16 ../app/views/discovered_hosts/_selected_hosts.html.erb:10
817
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17 ../app/views/discovered_hosts/_selected_hosts.html.erb:10 ../app/views/discovery_rules/index.html.erb:12
805
818
  msgid "Organization"
806
819
  msgstr "Organització"
807
820
 
808
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:17
821
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:18
809
822
  msgid "Subnet"
810
823
  msgstr "Subxarxa"
811
824
 
812
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:18
825
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:19
813
826
  msgid "Last Facts Upload"
814
827
  msgstr ""
815
828
 
816
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:19 ../app/views/discovery_rules/index.html.erb:12
829
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:20 ../app/views/discovery_rules/index.html.erb:14
817
830
  msgid "Actions"
818
831
  msgstr "Accions"
819
832
 
820
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:51
833
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:55
821
834
  msgid "Please Confirm"
822
835
  msgstr "Si us plau, confirmeu"
823
836
 
824
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:57
837
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:61
825
838
  msgid "Cancel"
826
839
  msgstr "Cancel·la"
827
840
 
828
- #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:58
841
+ #: ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:62
829
842
  msgid "Submit"
830
843
  msgstr "Envia"
831
844
 
@@ -961,6 +974,10 @@ msgstr ""
961
974
  msgid "Hostnames must not start with numbers. A good approach is to use unique information provided by facter (MAC address, BIOS or serial ID)."
962
975
  msgstr ""
963
976
 
977
+ #: ../app/views/discovery_rules/clone.erb:1
978
+ msgid "Clone %s"
979
+ msgstr ""
980
+
964
981
  #: ../app/views/discovery_rules/edit.html.erb:1
965
982
  msgid "Edit %s"
966
983
  msgstr "Edita %s"
@@ -969,7 +986,7 @@ msgstr "Edita %s"
969
986
  msgid "Discovery Rules"
970
987
  msgstr "Regles de descobriment"
971
988
 
972
- #: ../app/views/discovery_rules/index.html.erb:2
989
+ #: ../app/views/discovery_rules/index.html.erb:2 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:9
973
990
  msgid "Create Rule"
974
991
  msgstr ""
975
992
 
@@ -993,7 +1010,7 @@ msgstr ""
993
1010
  msgid "Hosts/Limit"
994
1011
  msgstr ""
995
1012
 
996
- #: ../app/views/discovery_rules/index.html.erb:11
1013
+ #: ../app/views/discovery_rules/index.html.erb:13
997
1014
  msgid "DiscoveryRule|Enabled"
998
1015
  msgstr "Habilitada"
999
1016
 
@@ -1001,6 +1018,10 @@ msgstr "Habilitada"
1001
1018
  msgid "New Discovery Rule"
1002
1019
  msgstr "Regla de descobriment nova"
1003
1020
 
1021
+ #: ../app/views/discovery_rules/welcome.html.erb:8
1022
+ msgid "Discovered Rules"
1023
+ msgstr ""
1024
+
1004
1025
  #: ../db/seeds.d/50_discovery_templates.rb:5
1005
1026
  msgid "Command line options for kexec during PXE-less provisioning."
1006
1027
  msgstr ""
@@ -1010,7 +1031,7 @@ msgid "A summary of discovered hosts"
1010
1031
  msgstr ""
1011
1032
 
1012
1033
  #: ../db/seeds.d/80_discovery_ui_notification.rb:4
1013
- msgid "Hosts"
1034
+ msgid "New hosts"
1014
1035
  msgstr ""
1015
1036
 
1016
1037
  #: ../db/seeds.d/80_discovery_ui_notification.rb:6
@@ -1021,22 +1042,38 @@ msgstr ""
1021
1042
  msgid "Details"
1022
1043
  msgstr ""
1023
1044
 
1024
- #: ../lib/foreman_discovery/engine.rb:180
1045
+ #: ../db/seeds.d/80_discovery_ui_notification.rb:18
1046
+ msgid "Hosts"
1047
+ msgstr ""
1048
+
1049
+ #: ../db/seeds.d/80_discovery_ui_notification.rb:20
1050
+ msgid "Error message goes here"
1051
+ msgstr ""
1052
+
1053
+ #: ../lib/foreman_discovery/engine.rb:176
1025
1054
  msgid "Discovery Kexec template"
1026
1055
  msgstr ""
1027
1056
 
1028
- #: ../lib/foreman_discovery/engine.rb:189
1057
+ #: ../lib/foreman_discovery/engine.rb:185
1029
1058
  msgid "Discovery Proxy"
1030
1059
  msgstr ""
1031
1060
 
1032
- #: ../lib/foreman_discovery/engine.rb:190
1061
+ #: ../lib/foreman_discovery/engine.rb:186
1033
1062
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1034
1063
  msgstr ""
1035
1064
 
1036
- #: ../lib/foreman_discovery/engine.rb:191
1065
+ #: ../lib/foreman_discovery/engine.rb:187
1037
1066
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1038
1067
  msgstr ""
1039
1068
 
1069
+ #: ../webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js:33
1070
+ msgid "For more information please see "
1071
+ msgstr ""
1072
+
1073
+ #: ../webpack/__mocks__/foremanReact/components/common/EmptyState/EmptyStatePattern.js:34
1074
+ msgid "documentation"
1075
+ msgstr ""
1076
+
1040
1077
  #: action_names.rb:2
1041
1078
  msgid "Remote action:"
1042
1079
  msgstr ""
@@ -1046,12 +1083,13 @@ msgid "Import Puppet classes"
1046
1083
  msgstr ""
1047
1084
 
1048
1085
  #: action_names.rb:4
1049
- msgid "Action with sub plans"
1086
+ msgid "Import facts"
1050
1087
  msgstr ""
1051
1088
 
1052
1089
  #: action_names.rb:5
1053
- msgid "Import facts"
1090
+ msgid "Action with sub plans"
1054
1091
  msgstr ""
1055
1092
 
1056
- #~ msgid "Learn more about this in the documentation."
1057
- #~ msgstr "Obteniu més informació sobre això a la documentació."
1093
+ #: ../app/helpers/discovered_hosts_helper.rb:10
1094
+ #~ msgid "%s ago"
1095
+ #~ msgstr "fa %s"