foreman_discovery 17.0.5 → 18.0.4

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/helpers/discovered_hosts_helper.rb +3 -2
  4. data/app/models/discovery_fact_name.rb +9 -0
  5. data/app/services/discovery_fact_importer.rb +5 -0
  6. data/app/services/foreman_discovery/host_converter.rb +3 -3
  7. data/app/views/discovered_hosts/welcome.html.erb +1 -2
  8. data/app/views/discovery_rules/welcome.html.erb +1 -2
  9. data/lib/foreman_discovery/engine.rb +6 -3
  10. data/lib/foreman_discovery/version.rb +1 -1
  11. data/locale/ca/LC_MESSAGES/foreman_discovery.mo +0 -0
  12. data/locale/ca/foreman_discovery.po +13 -7
  13. data/locale/de/LC_MESSAGES/foreman_discovery.mo +0 -0
  14. data/locale/de/foreman_discovery.po +11 -5
  15. data/locale/en/LC_MESSAGES/foreman_discovery.mo +0 -0
  16. data/locale/en/foreman_discovery.po +7 -1
  17. data/locale/en_GB/LC_MESSAGES/foreman_discovery.mo +0 -0
  18. data/locale/en_GB/foreman_discovery.po +8 -2
  19. data/locale/es/LC_MESSAGES/foreman_discovery.mo +0 -0
  20. data/locale/es/foreman_discovery.po +11 -5
  21. data/locale/foreman_discovery.pot +38 -30
  22. data/locale/fr/LC_MESSAGES/foreman_discovery.mo +0 -0
  23. data/locale/fr/foreman_discovery.po +57 -51
  24. data/locale/gl/LC_MESSAGES/foreman_discovery.mo +0 -0
  25. data/locale/gl/foreman_discovery.po +11 -5
  26. data/locale/it/LC_MESSAGES/foreman_discovery.mo +0 -0
  27. data/locale/it/foreman_discovery.po +11 -5
  28. data/locale/ja/LC_MESSAGES/foreman_discovery.mo +0 -0
  29. data/locale/ja/foreman_discovery.po +43 -37
  30. data/locale/ko/LC_MESSAGES/foreman_discovery.mo +0 -0
  31. data/locale/ko/foreman_discovery.po +11 -5
  32. data/locale/pt_BR/LC_MESSAGES/foreman_discovery.mo +0 -0
  33. data/locale/pt_BR/foreman_discovery.po +11 -5
  34. data/locale/ru/LC_MESSAGES/foreman_discovery.mo +0 -0
  35. data/locale/ru/foreman_discovery.po +15 -9
  36. data/locale/sv_SE/LC_MESSAGES/foreman_discovery.mo +0 -0
  37. data/locale/sv_SE/foreman_discovery.po +11 -5
  38. data/locale/zh_CN/LC_MESSAGES/foreman_discovery.mo +0 -0
  39. data/locale/zh_CN/foreman_discovery.po +59 -53
  40. data/locale/zh_TW/LC_MESSAGES/foreman_discovery.mo +0 -0
  41. data/locale/zh_TW/foreman_discovery.po +11 -5
  42. data/package.json +1 -1
  43. data/test/functional/api/v2/discovered_hosts_controller_test.rb +5 -3
  44. data/test/functional/api/v2/fact_value_extensions_test.rb +1 -4
  45. data/test/functional/discovered_hosts_controller_test.rb +11 -8
  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 +5 -8
  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: 3afee027ea27661c43f2c41f8b1048568f150f8d44b3706935e6419d5528398b
4
- data.tar.gz: 409956591f74dcc37b242bf64caa2d5d295074915654b1fa73503867518a7370
3
+ metadata.gz: b89780a685ba935e63141f155eb8c1e5baaa4f9b36e4e71ac56c6eba33f11f26
4
+ data.tar.gz: 741a2c3b783fa20c2cea7450b359b91583fc7da6e7b3e441e6121d3b9bea910f
5
5
  SHA512:
6
- metadata.gz: 4c3260d2118667b2fc1f32dd78fd5aff52ee1bb7ed0c884c369bab920cbc0a9484d1bd91cf8ddbb64dd3556ff51aaddf49f61604e465d23e4db6356e3c872003
7
- data.tar.gz: 45c9f983ed01b5e1491285be3e9e6e7374dcb218d6c0437947d3d9c2fe6cf88d684a980978feacb11bc2fc6410467489628997b39f0e8ec32fde8a199b3b9b21
6
+ metadata.gz: de3dad2c43932edc1e6a0974094f7baa6608a4c25c0020a67dfa8db0ef1f6d2fb54c7d07e314951975658a659cc671a1f7977c255efd3d0bc243ccca4a35c526
7
+ data.tar.gz: ecdd28f538746981a162697f622861abf43513d3fdcbc5eaf5fda23fbebd73bfbd7334872396a52ac91a7cf17a4e1ef8784c89f5a33c523ac920d024b2aa78ab
@@ -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
@@ -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
@@ -126,14 +126,12 @@ module ForemanDiscovery
126
126
  :assign_locations,
127
127
  :view_architectures,
128
128
  :view_domains,
129
- :view_environments,
130
129
  :view_hostgroups,
131
130
  :view_media,
132
131
  :view_models,
133
132
  :view_operatingsystems,
134
133
  :view_provisioning_templates,
135
134
  :view_ptables,
136
- :view_puppetclasses,
137
135
  :view_realms,
138
136
  :view_smart_proxies,
139
137
  :view_subnets,
@@ -149,6 +147,9 @@ module ForemanDiscovery
149
147
  :edit_discovery_rules,
150
148
  :destroy_discovery_rules,
151
149
  ]
150
+ if defined?(ForemanPuppet::VERSION)
151
+ MANAGER += [ :view_environments, :view_puppetclasses ]
152
+ end
152
153
  role "Discovery Reader", READER, "Role granting permissions to view discovered hosts"
153
154
  role "Discovery Manager", MANAGER, "Role granting permissions to perform provisioning of discovered hosts"
154
155
 
@@ -212,6 +213,8 @@ module ForemanDiscovery
212
213
  # Controller extensions
213
214
  ::HostsController.send :include, ForemanDiscovery::Concerns::HostsControllerExtensions
214
215
  ::Api::V2::FactValuesController.send :include, Api::V2::FactValuesControllerExtensions
216
+
217
+ Foreman::Plugin.fact_importer_registry.register(:foreman_discovery, DiscoveryFactImporter)
215
218
  end
216
219
 
217
220
  rake_tasks do
@@ -1,3 +1,3 @@
1
1
  module ForemanDiscovery
2
- VERSION = "17.0.5"
2
+ VERSION = "18.0.4"
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 ""