foreman_discovery 17.0.4 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/discovered_hosts_controller.rb +10 -3
  3. data/app/controllers/discovery_rules_controller.rb +1 -1
  4. data/app/helpers/discovered_hosts_helper.rb +3 -2
  5. data/app/models/discovery_fact_name.rb +9 -0
  6. data/app/services/discovery_fact_importer.rb +5 -0
  7. data/app/services/foreman_discovery/host_converter.rb +3 -3
  8. data/app/views/discovered_hosts/welcome.html.erb +1 -2
  9. data/app/views/discovery_rules/welcome.html.erb +1 -2
  10. data/lib/foreman_discovery/engine.rb +3 -1
  11. data/lib/foreman_discovery/version.rb +1 -1
  12. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  13. data/locale/ca/foreman_discovery.po +13 -7
  14. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  15. data/locale/de/foreman_discovery.po +11 -5
  16. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  17. data/locale/en/foreman_discovery.po +7 -1
  18. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  19. data/locale/en_GB/foreman_discovery.po +8 -2
  20. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  21. data/locale/es/foreman_discovery.po +11 -5
  22. data/locale/foreman_discovery.pot +38 -30
  23. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  24. data/locale/fr/foreman_discovery.po +57 -51
  25. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  26. data/locale/gl/foreman_discovery.po +11 -5
  27. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  28. data/locale/it/foreman_discovery.po +11 -5
  29. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  30. data/locale/ja/foreman_discovery.po +43 -37
  31. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  32. data/locale/ko/foreman_discovery.po +11 -5
  33. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  34. data/locale/pt_BR/foreman_discovery.po +11 -5
  35. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  36. data/locale/ru/foreman_discovery.po +15 -9
  37. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  38. data/locale/sv_SE/foreman_discovery.po +11 -5
  39. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  40. data/locale/zh_CN/foreman_discovery.po +59 -53
  41. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  42. data/locale/zh_TW/foreman_discovery.po +11 -5
  43. data/package.json +1 -1
  44. data/test/functional/api/v2/fact_value_extensions_test.rb +1 -4
  45. data/test/functional/discovered_hosts_controller_test.rb +6 -5
  46. data/test/integration/discovered_hosts_test.rb +10 -4
  47. data/test/test_helper_discovery.rb +35 -27
  48. data/test/test_plugin_helper.rb +7 -0
  49. data/test/unit/discovered_extensions_test.rb +36 -16
  50. data/test/unit/discovery_attribute_set_test.rb +2 -8
  51. data/test/unit/fact_parser_test.rb +1 -4
  52. metadata +9 -12
  53. data/test/functional/api/v2/settings_controller_test.rb +0 -22
  54. data/test/models/setting_test.rb +0 -11
  55. data/test/unit/setting_discovered_test.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35fdf9e36a5a8093c7532a47c9e9a8fd2bae879a30eab70fcc286c9b6c1cd256
4
- data.tar.gz: 145fc876af62068eebcdc997f6e8ffaa1bc9861ff6aab63ef992396da32277f3
3
+ metadata.gz: 5e5ed6f9be99d08e38902acdbfff3e02aa7b086415cc6c8208a446ad8195fe18
4
+ data.tar.gz: cebfddeec98ce1ce01778dbe3c94fa1581132462a01e5ee04c2f78a6812a8c02
5
5
  SHA512:
6
- metadata.gz: 87665e788d3aa6db8d3b9b13d5165a23ca4509dfb1bd98cd76bdc46f6779d6aa279aa95a044ac0ae515ac652d88d28c0a792f7c8eeb7b664ec57dabc3aab2023
7
- data.tar.gz: 5cad4226da69dd1ed80fcfa89ff20c4a590373c00753f1a390ceb0a324401b8c96f52aabece9f86ed70c86be542e6afd73e5dcbdd70367f1f2ddcfdd5cd7f924
6
+ metadata.gz: 42a2c9cfe529fbf8e22c11ce4b7260ae6bd61d0005688b5b50199c6c7e2a432cbe8a99b1a4fd1f94757246892fa60426181382dd6de874bfe0d495d1e98b140c
7
+ data.tar.gz: 5a151a76f41f68258a90154209c81e2fa3a16dc6049191269d8b261dca51d9c5ed536ad7c18180079d9186c58a80ed145640541bbd2534f6c666a78aea407cc8
@@ -14,6 +14,9 @@ class DiscoveredHostsController < ::ApplicationController
14
14
  around_action :skip_bullet, :only => [:edit]
15
15
 
16
16
  helper :hosts
17
+ if defined?(ForemanPuppet)
18
+ helper ForemanPuppet::HostsAndHostgroupsHelper
19
+ end
17
20
 
18
21
  layout 'layouts/application'
19
22
 
@@ -200,14 +203,16 @@ class DiscoveredHostsController < ::ApplicationController
200
203
  subnet6 = @host.hostgroup.subnet6 || @host.subnet6
201
204
  @architecture = @host.hostgroup.architecture
202
205
  @operatingsystem = @host.hostgroup.operatingsystem
203
- @environment = @host.hostgroup.environment
206
+ if defined?(ForemanPuppet)
207
+ @environment = @host.hostgroup.environment
208
+ @host.environment = @environment
209
+ end
204
210
  @domain = @host.hostgroup.domain
205
211
  @subnet = subnet
206
212
  @subnet6 = subnet6
207
213
  @compute_profile = @host.hostgroup.compute_profile
208
214
  @realm = @host.hostgroup.realm
209
215
  @host.interfaces.first.assign_attributes(subnet: subnet, subnet6: subnet6, domain: @domain)
210
- @host.environment = @environment
211
216
  end
212
217
  end
213
218
 
@@ -217,7 +222,9 @@ class DiscoveredHostsController < ::ApplicationController
217
222
 
218
223
  def load_vars_for_ajax
219
224
  return unless @host
220
- @environment = @host.environment
225
+ if defined?(ForemanPuppet)
226
+ @environment = @host.environment
227
+ end
221
228
  @architecture = @host.architecture
222
229
  @domain = @host.domain
223
230
  @operatingsystem = @host.operatingsystem
@@ -20,7 +20,7 @@ class DiscoveryRulesController < ApplicationController
20
20
  end
21
21
 
22
22
  def clone
23
- @discovery_rule.deep_clone except: [:name, :priority], include: [:organizations, :locations]
23
+ @discovery_rule = @discovery_rule.deep_clone except: [:name, :priority]
24
24
  @discovery_rule.priority = DiscoveryRule.suggest_priority
25
25
  end
26
26
 
@@ -98,7 +98,8 @@ module DiscoveredHostsHelper
98
98
  discovered_host_path(host)
99
99
  end
100
100
 
101
- def discovery_doc_version
102
- Foreman::Plugin.find(:foreman_discovery).version.scan(/\d+\.\d+/).first
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}"
103
104
  end
104
105
  end
@@ -0,0 +1,9 @@
1
+ class DiscoveryFactName < FactName
2
+ def origin
3
+ 'Discovery'
4
+ end
5
+
6
+ def icon_path
7
+ "icons16x16/stub/darkred-d"
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class DiscoveryFactImporter < StructuredFactImporter
2
+ def fact_name_class
3
+ DiscoveryFactName
4
+ end
5
+ end
@@ -21,10 +21,10 @@ class ForemanDiscovery::HostConverter
21
21
  def self.set_build_clean_facts(host)
22
22
  # fact cleaning
23
23
  if Setting['discovery_clean_facts']
24
- # clean all facts except those starting with "discovery_"
24
+ # clean all facts except those from Discovery
25
25
  host.define_singleton_method(:clear_facts) do
26
- keep_ids = FactValue.where("host_id = #{host.id}").joins(:fact_name).where("fact_names.name like 'discovery_%'").pluck("fact_values.id")
27
- FactValue.where("host_id = #{host.id} and id not in (?)", keep_ids).delete_all
26
+ keep_ids = FactValue.where(host_id: host.id, fact_names: { type: 'DiscoveryFactName' }).where("fact_names.name like 'discovery_%'").joins(:fact_name).pluck("fact_values.id")
27
+ FactValue.where.not(id: keep_ids).delete_all
28
28
  end
29
29
  else
30
30
  # clean no facts (default behavior)
@@ -8,8 +8,7 @@
8
8
  <% content_for(:title, _("Discovered Hosts")) %>
9
9
 
10
10
  <% content_for(:content) do %>
11
- <%= notifications %>
12
11
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
13
12
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
14
- <%= react_component('DiscoveredHosts', docUrl: external_link_path(type: 'plugin_manual', name: 'foreman_discovery', version: discovery_doc_version)) %>
13
+ <%= react_component('DiscoveredHosts', docUrl: discovery_doc_url ) %>
15
14
  <% end %>
@@ -8,8 +8,7 @@
8
8
  <% content_for(:title, _("Discovered Rules")) %>
9
9
 
10
10
  <% content_for(:content) do %>
11
- <%= notifications %>
12
11
  <div id="organization-id" data-id="<%= Organization.current.id if Organization.current %>" ></div>
13
12
  <div id="user-id" data-id="<%= User.current.id if User.current %>" ></div>
14
- <%= react_component('DiscoveryRules', docUrl: external_link_path(type: 'plugin_manual', name: 'foreman_discovery', version: discovery_doc_version, section: '#4.3Automaticprovisioning') ) %>
13
+ <%= react_component('DiscoveryRules', docUrl: discovery_doc_url + '/#4.3Automaticprovisioning' ) %>
15
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 '>= 2.4'
46
+ requires_foreman '>= 3.0'
47
47
 
48
48
  # discovered hosts permissions
49
49
  security_block :discovery do
@@ -212,6 +212,8 @@ module ForemanDiscovery
212
212
  # Controller extensions
213
213
  ::HostsController.send :include, ForemanDiscovery::Concerns::HostsControllerExtensions
214
214
  ::Api::V2::FactValuesController.send :include, Api::V2::FactValuesControllerExtensions
215
+
216
+ Foreman::Plugin.fact_importer_registry.register(:foreman_discovery, DiscoveryFactImporter)
215
217
  end
216
218
 
217
219
  rake_tasks do
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "17.0.4"
2
+ VERSION = "18.0.0"
3
3
  end
@@ -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 Gelonch <rbuj@fedoraproject.org>, 2017
7
- # Robert Antoni Buj Gelonch <rbuj@fedoraproject.org>, 2015-2016
6
+ # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2017
7
+ # Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>, 2015-2016
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: foreman_discovery 16.3.4\n"
10
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
11
11
  "Report-Msgid-Bugs-To: \n"
12
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
13
- "Last-Translator: Transifex Bot <>\n"
12
+ "PO-Revision-Date: 2021-05-03 08:29+0000\n"
13
+ "Last-Translator: Robert Antoni Buj i Gelonch <rbuj@fedoraproject.org>\n"
14
14
  "Language-Team: Catalan (http://www.transifex.com/foreman/foreman/language/ca/)"
15
15
  "\n"
16
16
  "MIME-Version: 1.0\n"
@@ -80,10 +80,10 @@ msgid "Clean all reported facts during provisioning (except discovery facts)"
80
80
  msgstr ""
81
81
 
82
82
  msgid "Clone"
83
- msgstr ""
83
+ msgstr "Clona"
84
84
 
85
85
  msgid "Clone %s"
86
- msgstr ""
86
+ msgstr "Clona %s"
87
87
 
88
88
  msgid "Collapse All"
89
89
  msgstr ""
@@ -565,6 +565,12 @@ msgstr "Valor del paràmetre"
565
565
  msgid "Please Confirm"
566
566
  msgstr "Si us plau, confirmeu"
567
567
 
568
+ msgid "Prefer IPv6"
569
+ msgstr ""
570
+
571
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
572
+ msgstr ""
573
+
568
574
  msgid "Primary"
569
575
  msgstr "Primària"
570
576
 
@@ -14,10 +14,10 @@
14
14
  # stbenjam <stephen@redhat.com>, 2016
15
15
  msgid ""
16
16
  msgstr ""
17
- "Project-Id-Version: foreman_discovery 16.3.4\n"
17
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
18
18
  "Report-Msgid-Bugs-To: \n"
19
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
20
- "Last-Translator: Crited <Alexander.Stoll@netways.de>\n"
19
+ "PO-Revision-Date: 2021-05-03 08:29+0000\n"
20
+ "Last-Translator: Ettore Atalan <atalanttore@googlemail.com>\n"
21
21
  "Language-Team: German (http://www.transifex.com/foreman/foreman/language/de/)\n"
22
22
  "MIME-Version: 1.0\n"
23
23
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -86,10 +86,10 @@ msgid "Clean all reported facts during provisioning (except discovery facts)"
86
86
  msgstr "Alle berichteten Fakten während der Bereitstellung löschen (ausgenommen Entdeckungsfakten)"
87
87
 
88
88
  msgid "Clone"
89
- msgstr ""
89
+ msgstr "Klonen"
90
90
 
91
91
  msgid "Clone %s"
92
- msgstr ""
92
+ msgstr "%s klonen"
93
93
 
94
94
  msgid "Collapse All"
95
95
  msgstr "Alle einklappen"
@@ -571,6 +571,12 @@ msgstr "Parameterwert"
571
571
  msgid "Please Confirm"
572
572
  msgstr "Bitte bestätigen"
573
573
 
574
+ msgid "Prefer IPv6"
575
+ msgstr ""
576
+
577
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
578
+ msgstr ""
579
+
574
580
  msgid "Primary"
575
581
  msgstr "Primär"
576
582
 
@@ -2,7 +2,7 @@
2
2
  # This file is distributed under the same license as the foreman_discovery package.
3
3
  msgid ""
4
4
  msgstr ""
5
- "Project-Id-Version: foreman_discovery 16.3.4\n"
5
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
6
6
  "Report-Msgid-Bugs-To: foreman-dev@googlegroups.com\n"
7
7
  "PO-Revision-Date: 2015-12-27 01:18+0000\n"
8
8
  "Last-Translator: \n"
@@ -558,6 +558,12 @@ msgstr ""
558
558
  msgid "Please Confirm"
559
559
  msgstr ""
560
560
 
561
+ msgid "Prefer IPv6"
562
+ msgstr ""
563
+
564
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
565
+ msgstr ""
566
+
561
567
  msgid "Primary"
562
568
  msgstr ""
563
569
 
@@ -10,9 +10,9 @@
10
10
  # Lukáš Zapletal, 2015
11
11
  msgid ""
12
12
  msgstr ""
13
- "Project-Id-Version: foreman_discovery 16.3.4\n"
13
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
14
14
  "Report-Msgid-Bugs-To: \n"
15
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
15
+ "PO-Revision-Date: 2021-05-03 08:28+0000\n"
16
16
  "Last-Translator: Transifex Bot <>\n"
17
17
  "Language-Team: English (United Kingdom) (http://www.transifex.com/foreman/fore"
18
18
  "man/language/en_GB/)\n"
@@ -568,6 +568,12 @@ msgstr ""
568
568
  msgid "Please Confirm"
569
569
  msgstr "Please Confirm"
570
570
 
571
+ msgid "Prefer IPv6"
572
+ msgstr ""
573
+
574
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
575
+ msgstr ""
576
+
571
577
  msgid "Primary"
572
578
  msgstr "Primary"
573
579
 
@@ -11,10 +11,10 @@
11
11
  # Sergio Ocón-Cárdenas <sergio.ocon@redhat.com>, 2014
12
12
  msgid ""
13
13
  msgstr ""
14
- "Project-Id-Version: foreman_discovery 16.3.4\n"
14
+ "Project-Id-Version: foreman_discovery 17.1.0\n"
15
15
  "Report-Msgid-Bugs-To: \n"
16
- "PO-Revision-Date: 2021-01-25 08:35+0000\n"
17
- "Last-Translator: Amit Upadhye <aupadhye@redhat.com>\n"
16
+ "PO-Revision-Date: 2021-05-03 08:29+0000\n"
17
+ "Last-Translator: Lukáš Zapletal\n"
18
18
  "Language-Team: Spanish (http://www.transifex.com/foreman/foreman/language/es/)"
19
19
  "\n"
20
20
  "MIME-Version: 1.0\n"
@@ -84,10 +84,10 @@ msgid "Clean all reported facts during provisioning (except discovery facts)"
84
84
  msgstr "Eliminar todos los eventos informados durante el aprovisionamiento (excepto los eventos de detección)"
85
85
 
86
86
  msgid "Clone"
87
- msgstr ""
87
+ msgstr "Clonar"
88
88
 
89
89
  msgid "Clone %s"
90
- msgstr ""
90
+ msgstr "Clonar %s"
91
91
 
92
92
  msgid "Collapse All"
93
93
  msgstr "Contraer todo"
@@ -569,6 +569,12 @@ msgstr "Valor del parámetro"
569
569
  msgid "Please Confirm"
570
570
  msgstr "Confirmar"
571
571
 
572
+ msgid "Prefer IPv6"
573
+ msgstr ""
574
+
575
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
576
+ msgstr ""
577
+
572
578
  msgid "Primary"
573
579
  msgstr "Primario"
574
580
 
@@ -8,8 +8,8 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: foreman_discovery 1.0.0\n"
10
10
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2021-05-03 08:46+0200\n"
12
- "PO-Revision-Date: 2021-05-03 08:46+0200\n"
11
+ "POT-Creation-Date: 2021-09-20 17:25+0200\n"
12
+ "PO-Revision-Date: 2021-09-20 17:25+0200\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
15
15
  "Language: \n"
@@ -135,7 +135,7 @@ msgid "Execute rules against a discovered host"
135
135
  msgstr ""
136
136
 
137
137
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136
138
- #: ../app/controllers/discovered_hosts_controller.rb:157
138
+ #: ../app/controllers/discovered_hosts_controller.rb:160
139
139
  msgid "Host %{host} was provisioned with rule %{rule}"
140
140
  msgstr ""
141
141
 
@@ -144,7 +144,7 @@ msgid "Unable to provision %{host}: %{errors}"
144
144
  msgstr ""
145
145
 
146
146
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145
147
- #: ../app/controllers/discovered_hosts_controller.rb:164
147
+ #: ../app/controllers/discovered_hosts_controller.rb:167
148
148
  msgid "No rule found for host %s"
149
149
  msgstr ""
150
150
 
@@ -153,12 +153,12 @@ msgid "Execute rules against all currently discovered hosts"
153
153
  msgstr ""
154
154
 
155
155
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156
156
- #: ../app/controllers/discovered_hosts_controller.rb:170
156
+ #: ../app/controllers/discovered_hosts_controller.rb:173
157
157
  msgid "Errors during auto provisioning: %s"
158
158
  msgstr ""
159
159
 
160
160
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159
161
- #: ../app/controllers/discovered_hosts_controller.rb:173
161
+ #: ../app/controllers/discovered_hosts_controller.rb:176
162
162
  msgid "No discovered hosts to provision"
163
163
  msgstr ""
164
164
 
@@ -179,7 +179,7 @@ msgid "Rebooting all discovered hosts"
179
179
  msgstr ""
180
180
 
181
181
  #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221
182
- #: ../app/controllers/discovered_hosts_controller.rb:126
182
+ #: ../app/controllers/discovered_hosts_controller.rb:129
183
183
  msgid "Discovered hosts are rebooting now"
184
184
  msgstr ""
185
185
 
@@ -259,79 +259,79 @@ msgstr ""
259
259
  msgid "No discovered hosts to reboot"
260
260
  msgstr ""
261
261
 
262
- #: ../app/controllers/discovered_hosts_controller.rb:60
262
+ #: ../app/controllers/discovered_hosts_controller.rb:63
263
263
  msgid "Successfully provisioned %s"
264
264
  msgstr ""
265
265
 
266
- #: ../app/controllers/discovered_hosts_controller.rb:94
266
+ #: ../app/controllers/discovered_hosts_controller.rb:97
267
267
  msgid "Facts refreshed for %s"
268
268
  msgstr ""
269
269
 
270
- #: ../app/controllers/discovered_hosts_controller.rb:96
270
+ #: ../app/controllers/discovered_hosts_controller.rb:99
271
271
  msgid "Failed to refresh facts for %s"
272
272
  msgstr ""
273
273
 
274
- #: ../app/controllers/discovered_hosts_controller.rb:99
274
+ #: ../app/controllers/discovered_hosts_controller.rb:102
275
275
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
276
276
  msgstr ""
277
277
 
278
- #: ../app/controllers/discovered_hosts_controller.rb:106
278
+ #: ../app/controllers/discovered_hosts_controller.rb:109
279
279
  msgid "Host of type %s can not be rebooted"
280
280
  msgstr ""
281
281
 
282
- #: ../app/controllers/discovered_hosts_controller.rb:110
282
+ #: ../app/controllers/discovered_hosts_controller.rb:113
283
283
  msgid "Rebooting host %s"
284
284
  msgstr ""
285
285
 
286
- #: ../app/controllers/discovered_hosts_controller.rb:112
286
+ #: ../app/controllers/discovered_hosts_controller.rb:115
287
287
  msgid "Failed to reboot host %s"
288
288
  msgstr ""
289
289
 
290
- #: ../app/controllers/discovered_hosts_controller.rb:115
290
+ #: ../app/controllers/discovered_hosts_controller.rb:118
291
291
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
292
292
  msgstr ""
293
293
 
294
- #: ../app/controllers/discovered_hosts_controller.rb:129
294
+ #: ../app/controllers/discovered_hosts_controller.rb:132
295
295
  msgid "Failed to reboot hosts with error %s"
296
296
  msgstr ""
297
297
 
298
- #: ../app/controllers/discovered_hosts_controller.rb:147
298
+ #: ../app/controllers/discovered_hosts_controller.rb:150
299
299
  msgid "Destroyed selected hosts"
300
300
  msgstr ""
301
301
 
302
- #: ../app/controllers/discovered_hosts_controller.rb:149
302
+ #: ../app/controllers/discovered_hosts_controller.rb:152
303
303
  msgid "The following hosts were not deleted: %s"
304
304
  msgstr ""
305
305
 
306
- #: ../app/controllers/discovered_hosts_controller.rb:161
306
+ #: ../app/controllers/discovered_hosts_controller.rb:164
307
307
  msgid "Failed to auto provision host %s: %s"
308
308
  msgstr ""
309
309
 
310
- #: ../app/controllers/discovered_hosts_controller.rb:189
310
+ #: ../app/controllers/discovered_hosts_controller.rb:192
311
311
  msgid "Discovered hosts are provisioning now"
312
312
  msgstr ""
313
313
 
314
- #: ../app/controllers/discovered_hosts_controller.rb:270
314
+ #: ../app/controllers/discovered_hosts_controller.rb:277
315
315
  msgid ""
316
316
  "Discovered host reported from unknown subnet, communication will not be proxie"
317
317
  "d."
318
318
  msgstr ""
319
319
 
320
- #: ../app/controllers/discovered_hosts_controller.rb:275
320
+ #: ../app/controllers/discovered_hosts_controller.rb:282
321
321
  msgid ""
322
322
  "Discovered hosts reported from unknown subnet are %s, communication will not b"
323
323
  "e proxied."
324
324
  msgstr ""
325
325
 
326
- #: ../app/controllers/discovered_hosts_controller.rb:289
326
+ #: ../app/controllers/discovered_hosts_controller.rb:296
327
327
  msgid "No hosts were found with that id or name"
328
328
  msgstr ""
329
329
 
330
- #: ../app/controllers/discovered_hosts_controller.rb:293
330
+ #: ../app/controllers/discovered_hosts_controller.rb:300
331
331
  msgid "No hosts selected"
332
332
  msgstr ""
333
333
 
334
- #: ../app/controllers/discovered_hosts_controller.rb:299
334
+ #: ../app/controllers/discovered_hosts_controller.rb:306
335
335
  msgid "Something went wrong while selecting hosts - %s"
336
336
  msgstr ""
337
337
 
@@ -512,23 +512,23 @@ msgstr ""
512
512
  msgid "Facts could not be imported"
513
513
  msgstr ""
514
514
 
515
- #: ../app/models/host/discovered.rb:146
515
+ #: ../app/models/host/discovered.rb:155
516
516
  msgid "Could not get facts from proxy %{url}: %{error}"
517
517
  msgstr ""
518
518
 
519
- #: ../app/models/host/discovered.rb:160
519
+ #: ../app/models/host/discovered.rb:173
520
520
  msgid "Unable to perform reboot on %{name} (%{url}): %{msg}"
521
521
  msgstr ""
522
522
 
523
- #: ../app/models/host/discovered.rb:164 ../app/models/host/discovered.rb:183
523
+ #: ../app/models/host/discovered.rb:177 ../app/models/host/discovered.rb:200
524
524
  msgid "Unable to perform %{action} on %{ips}"
525
525
  msgstr ""
526
526
 
527
- #: ../app/models/host/discovered.rb:179
527
+ #: ../app/models/host/discovered.rb:196
528
528
  msgid "Unable to perform kexec on %{name} (%{url}): %{msg}"
529
529
  msgstr ""
530
530
 
531
- #: ../app/models/host/discovered.rb:203
531
+ #: ../app/models/host/discovered.rb:220
532
532
  msgid "Invalid hostname: Could not normalize the hostname"
533
533
  msgstr ""
534
534
 
@@ -744,6 +744,14 @@ msgstr ""
744
744
  msgid "Type of name generator"
745
745
  msgstr ""
746
746
 
747
+ #: ../app/models/setting/discovered.rb:40
748
+ msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
749
+ msgstr ""
750
+
751
+ #: ../app/models/setting/discovered.rb:40
752
+ msgid "Prefer IPv6"
753
+ msgstr ""
754
+
747
755
  #: ../app/services/foreman_discovery/fact_parser.rb:4
748
756
  msgid "Discovery fact parser does not work with non-discovery host '%{host}'"
749
757
  msgstr ""