foreman_discovery 24.0.1 → 25.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/api/v2/discovered_hosts_controller.rb +1 -1
  3. data/app/helpers/discovered_hosts_helper.rb +1 -1
  4. data/app/models/host/discovered.rb +1 -1
  5. data/app/views/discovered_hosts/show.html.erb +23 -21
  6. data/app/views/discovery_rules/_form.html.erb +0 -6
  7. data/config/initializers/inflections.rb +5 -0
  8. data/db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb +1 -1
  9. data/db/migrate/20150512150432_remove_old_discovery_reader_permissions.rb +1 -1
  10. data/lib/foreman_discovery/engine.rb +300 -305
  11. data/lib/foreman_discovery/version.rb +1 -1
  12. data/lib/foreman_discovery.rake +1 -5
  13. data/locale/ca/foreman_discovery.edit.po +64 -64
  14. data/locale/cs_CZ/foreman_discovery.edit.po +64 -64
  15. data/locale/de/foreman_discovery.edit.po +64 -64
  16. data/locale/en/foreman_discovery.edit.po +64 -64
  17. data/locale/en_GB/foreman_discovery.edit.po +64 -64
  18. data/locale/es/foreman_discovery.edit.po +64 -64
  19. data/locale/foreman_discovery.pot +68 -68
  20. data/locale/fr/foreman_discovery.edit.po +64 -64
  21. data/locale/gl/foreman_discovery.edit.po +64 -64
  22. data/locale/it/foreman_discovery.edit.po +64 -64
  23. data/locale/ja/foreman_discovery.edit.po +64 -64
  24. data/locale/ka/foreman_discovery.edit.po +64 -64
  25. data/locale/ko/foreman_discovery.edit.po +64 -64
  26. data/locale/pt_BR/foreman_discovery.edit.po +64 -64
  27. data/locale/ru/foreman_discovery.edit.po +64 -64
  28. data/locale/sv_SE/foreman_discovery.edit.po +64 -64
  29. data/locale/zh_CN/foreman_discovery.edit.po +64 -64
  30. data/locale/zh_TW/foreman_discovery.edit.po +64 -64
  31. data/package.json +0 -2
  32. data/test/functional/discovered_hosts_controller_test.rb +1 -1
  33. metadata +14 -15
  34. data/test/migrations/20221102075151_migrate_discovery_hostname_and_fact_column_to_array_test.rb.orig +0 -81
@@ -4,11 +4,7 @@ namespace :test do
4
4
  Rake::TestTask.new(:foreman_discovery) do |t|
5
5
  test_dir = File.join(File.dirname(__FILE__), '..', 'test')
6
6
  t.libs << ["test",test_dir]
7
- if ENV['FILE'] || ENV['TEST']
8
- t.pattern = ENV['FILE'] || ENV['TEST']
9
- else
10
- t.pattern = "#{test_dir}/**/*_test.rb"
11
- end
7
+ t.pattern = ENV['FILE'] || ENV['TEST'] || "#{test_dir}/**/*_test.rb"
12
8
  t.verbose = true
13
9
  t.warning = false
14
10
  end
@@ -119,7 +119,7 @@ msgstr ""
119
119
  msgid "Execute rules against a discovered host"
120
120
  msgstr ""
121
121
 
122
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:163
122
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:164
123
123
  msgid "Host %{host} was provisioned with rule %{rule}"
124
124
  msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
125
125
 
@@ -127,7 +127,7 @@ msgstr "L'amfitrió %{host} va ser aprovisionat amb la regla %{rule}"
127
127
  msgid "Unable to provision %{host}: %{errors}"
128
128
  msgstr "No es pot aprovisionar a %{host}: %{errors}"
129
129
 
130
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:170
130
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:171
131
131
  msgid "No rule found for host %s"
132
132
  msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
133
133
 
@@ -135,11 +135,11 @@ msgstr "No s'ha trobat cap regla per a l'amfitrió %s"
135
135
  msgid "Execute rules against all currently discovered hosts"
136
136
  msgstr "Executa les regles contra tots els amfitrions detectats actualment"
137
137
 
138
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:176
138
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:177
139
139
  msgid "Errors during auto provisioning: %s"
140
140
  msgstr "Erros durant l'auto aprovisionament: %s"
141
141
 
142
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:179
142
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:180
143
143
  msgid "No discovered hosts to provision"
144
144
  msgstr "Sense amfitrions descoberts per aprovisionar"
145
145
 
@@ -159,7 +159,7 @@ msgstr "S'està reiniciant un amfitrió descobert"
159
159
  msgid "Rebooting all discovered hosts"
160
160
  msgstr "S'estan reiniciant tots els amfitrions descoberts"
161
161
 
162
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:132
162
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:133
163
163
  msgid "Discovered hosts are rebooting now"
164
164
  msgstr "Ara s'estan reiniciant els amfitrions descoberts"
165
165
 
@@ -243,71 +243,71 @@ msgstr ""
243
243
  msgid "Successfully provisioned %s"
244
244
  msgstr ""
245
245
 
246
- #: ../app/controllers/discovered_hosts_controller.rb:100
246
+ #: ../app/controllers/discovered_hosts_controller.rb:101
247
247
  msgid "Facts refreshed for %s"
248
248
  msgstr "Els objectes d'interès que s'han refrescat per a %s"
249
249
 
250
- #: ../app/controllers/discovered_hosts_controller.rb:102
250
+ #: ../app/controllers/discovered_hosts_controller.rb:103
251
251
  msgid "Failed to refresh facts for %s"
252
252
  msgstr "No s'ha pogut refrescar els objectes d'interès per a %s"
253
253
 
254
- #: ../app/controllers/discovered_hosts_controller.rb:105
254
+ #: ../app/controllers/discovered_hosts_controller.rb:106
255
255
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
256
256
  msgstr ""
257
257
 
258
- #: ../app/controllers/discovered_hosts_controller.rb:112
258
+ #: ../app/controllers/discovered_hosts_controller.rb:113
259
259
  msgid "Host of type %s can not be rebooted"
260
260
  msgstr ""
261
261
 
262
- #: ../app/controllers/discovered_hosts_controller.rb:116
262
+ #: ../app/controllers/discovered_hosts_controller.rb:117
263
263
  msgid "Rebooting host %s"
264
264
  msgstr "S'està reiniciant l'amfitrió %s"
265
265
 
266
- #: ../app/controllers/discovered_hosts_controller.rb:118
266
+ #: ../app/controllers/discovered_hosts_controller.rb:119
267
267
  msgid "Failed to reboot host %s"
268
268
  msgstr "No s'ha pogut reiniciar l'amfitrió %s."
269
269
 
270
- #: ../app/controllers/discovered_hosts_controller.rb:121
270
+ #: ../app/controllers/discovered_hosts_controller.rb:122
271
271
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
272
272
  msgstr ""
273
273
 
274
- #: ../app/controllers/discovered_hosts_controller.rb:135
274
+ #: ../app/controllers/discovered_hosts_controller.rb:136
275
275
  msgid "Failed to reboot hosts with error %s"
276
276
  msgstr ""
277
277
 
278
- #: ../app/controllers/discovered_hosts_controller.rb:153
278
+ #: ../app/controllers/discovered_hosts_controller.rb:154
279
279
  msgid "Destroyed selected hosts"
280
280
  msgstr "S'han destruït els amfitrions seleccionats"
281
281
 
282
- #: ../app/controllers/discovered_hosts_controller.rb:155
282
+ #: ../app/controllers/discovered_hosts_controller.rb:156
283
283
  msgid "The following hosts were not deleted: %s"
284
284
  msgstr ""
285
285
 
286
- #: ../app/controllers/discovered_hosts_controller.rb:167
286
+ #: ../app/controllers/discovered_hosts_controller.rb:168
287
287
  msgid "Failed to auto provision host %s: %s"
288
288
  msgstr "No s'ha pogut auto aprovisionar l'amfitrió %s: %s"
289
289
 
290
- #: ../app/controllers/discovered_hosts_controller.rb:195
290
+ #: ../app/controllers/discovered_hosts_controller.rb:196
291
291
  msgid "Discovered hosts are provisioning now"
292
292
  msgstr "Els amfitrions descoberts ara tenen aprovisionament"
293
293
 
294
- #: ../app/controllers/discovered_hosts_controller.rb:280
294
+ #: ../app/controllers/discovered_hosts_controller.rb:285
295
295
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
296
296
  msgstr ""
297
297
 
298
- #: ../app/controllers/discovered_hosts_controller.rb:285
298
+ #: ../app/controllers/discovered_hosts_controller.rb:290
299
299
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
300
300
  msgstr ""
301
301
 
302
- #: ../app/controllers/discovered_hosts_controller.rb:299
302
+ #: ../app/controllers/discovered_hosts_controller.rb:304
303
303
  msgid "No hosts were found with that id or name"
304
304
  msgstr "No s'ha trobat cap amfitrió amb aquest ID o nom"
305
305
 
306
- #: ../app/controllers/discovered_hosts_controller.rb:303
306
+ #: ../app/controllers/discovered_hosts_controller.rb:308
307
307
  msgid "No hosts selected"
308
308
  msgstr "Cap amfitrió seleccionat"
309
309
 
310
- #: ../app/controllers/discovered_hosts_controller.rb:309
310
+ #: ../app/controllers/discovered_hosts_controller.rb:314
311
311
  msgid "Something went wrong while selecting hosts - %s"
312
312
  msgstr "Alguna cosa va anar malament mentre se seleccionaven els amfitrions - %s"
313
313
 
@@ -327,7 +327,7 @@ msgstr "Auto aprovisiona"
327
327
  msgid "Refresh facts"
328
328
  msgstr "Refresca els objectes d'interès"
329
329
 
330
- #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:42 ../lib/foreman_discovery/engine.rb:92
330
+ #: ../app/helpers/discovered_hosts_helper.rb:16 ../app/helpers/discovered_hosts_helper.rb:30 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:42 ../lib/foreman_discovery/engine.rb:91
331
331
  msgid "Reboot"
332
332
  msgstr "Reinicia"
333
333
 
@@ -379,7 +379,7 @@ msgstr "Es va informar en els últims 7 dies"
379
379
  msgid "Provision"
380
380
  msgstr "Aprovisiona"
381
381
 
382
- #: ../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:311 ../lib/foreman_discovery/engine.rb:326
382
+ #: ../app/helpers/discovery_rules_helper.rb:26 ../app/views/discovered_hosts/_discovered_hosts_list.html.erb:1 ../app/views/discovered_hosts/welcome.html.erb:5 ../lib/foreman_discovery/engine.rb:309 ../lib/foreman_discovery/engine.rb:324
383
383
  msgid "Discovered Hosts"
384
384
  msgstr ""
385
385
 
@@ -817,7 +817,7 @@ msgstr "Clona %s"
817
817
  msgid "Edit %s"
818
818
  msgstr "Edita %s"
819
819
 
820
- #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:316 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:20
820
+ #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:314 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:20
821
821
  msgid "Discovery Rules"
822
822
  msgstr "Regles de descobriment"
823
823
 
@@ -853,7 +853,7 @@ msgstr "Habilitada"
853
853
  msgid "New Discovery Rule"
854
854
  msgstr "Regla de descobriment nova"
855
855
 
856
- #: ../app/views/discovery_rules/welcome.html.erb:8
856
+ #: ../app/views/discovery_rules/welcome.html.erb:5
857
857
  msgid "Discovered Rules"
858
858
  msgstr ""
859
859
 
@@ -925,23 +925,23 @@ msgstr ""
925
925
  msgid "Clean all reported facts during provisioning (except discovery facts)"
926
926
  msgstr ""
927
927
 
928
- #: ../lib/foreman_discovery/engine.rb:78
928
+ #: ../lib/foreman_discovery/engine.rb:79
929
929
  msgid "Hostname facts"
930
930
  msgstr ""
931
931
 
932
- #: ../lib/foreman_discovery/engine.rb:79
932
+ #: ../lib/foreman_discovery/engine.rb:80
933
933
  msgid "List of facts to use for the hostname (first wins)"
934
934
  msgstr ""
935
935
 
936
- #: ../lib/foreman_discovery/engine.rb:86
936
+ #: ../lib/foreman_discovery/engine.rb:85
937
937
  msgid "Auto provisioning"
938
938
  msgstr ""
939
939
 
940
- #: ../lib/foreman_discovery/engine.rb:87
940
+ #: ../lib/foreman_discovery/engine.rb:86
941
941
  msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
942
942
  msgstr ""
943
943
 
944
- #: ../lib/foreman_discovery/engine.rb:93
944
+ #: ../lib/foreman_discovery/engine.rb:92
945
945
  msgid "Automatically reboot or kexec discovered host during provisioning"
946
946
  msgstr ""
947
947
 
@@ -953,135 +953,135 @@ msgstr ""
953
953
  msgid "The default prefix to use for the host name, must start with a letter"
954
954
  msgstr ""
955
955
 
956
- #: ../lib/foreman_discovery/engine.rb:106
956
+ #: ../lib/foreman_discovery/engine.rb:104
957
957
  msgid "Fact columns"
958
958
  msgstr ""
959
959
 
960
- #: ../lib/foreman_discovery/engine.rb:107
960
+ #: ../lib/foreman_discovery/engine.rb:105
961
961
  msgid "Extra facter columns to show in host lists"
962
962
  msgstr ""
963
963
 
964
- #: ../lib/foreman_discovery/engine.rb:112
964
+ #: ../lib/foreman_discovery/engine.rb:110
965
965
  msgid "Highlighted facts"
966
966
  msgstr ""
967
967
 
968
- #: ../lib/foreman_discovery/engine.rb:113
968
+ #: ../lib/foreman_discovery/engine.rb:111
969
969
  msgid "Regex to organize facts for highlights section - e.g. ^(abc|cde)$"
970
970
  msgstr ""
971
971
 
972
- #: ../lib/foreman_discovery/engine.rb:118
972
+ #: ../lib/foreman_discovery/engine.rb:116
973
973
  msgid "Storage facts"
974
974
  msgstr ""
975
975
 
976
- #: ../lib/foreman_discovery/engine.rb:119
976
+ #: ../lib/foreman_discovery/engine.rb:117
977
977
  msgid "Regex to organize facts for storage section"
978
978
  msgstr "Expressió regular per a organitzar els objectes d'interès per a la secció d'emmagatzematge"
979
979
 
980
- #: ../lib/foreman_discovery/engine.rb:124
980
+ #: ../lib/foreman_discovery/engine.rb:122
981
981
  msgid "Software facts"
982
982
  msgstr ""
983
983
 
984
- #: ../lib/foreman_discovery/engine.rb:125
984
+ #: ../lib/foreman_discovery/engine.rb:123
985
985
  msgid "Regex to organize facts for software section"
986
986
  msgstr "Expressió regular per a organitzar els objectes d'interès per a la secció de programari"
987
987
 
988
- #: ../lib/foreman_discovery/engine.rb:130
988
+ #: ../lib/foreman_discovery/engine.rb:128
989
989
  msgid "Hardware facts"
990
990
  msgstr ""
991
991
 
992
- #: ../lib/foreman_discovery/engine.rb:131
992
+ #: ../lib/foreman_discovery/engine.rb:129
993
993
  msgid "Regex to organize facts for hardware section"
994
994
  msgstr "Expressió regular per a organitzar els objectes d'interès per a la secció de programari"
995
995
 
996
- #: ../lib/foreman_discovery/engine.rb:136
996
+ #: ../lib/foreman_discovery/engine.rb:134
997
997
  msgid "Network facts"
998
998
  msgstr ""
999
999
 
1000
- #: ../lib/foreman_discovery/engine.rb:137
1000
+ #: ../lib/foreman_discovery/engine.rb:135
1001
1001
  msgid "Regex to organize facts for network section"
1002
1002
  msgstr "Expressió regular per a organitzar els objectes d'interès per a la secció de xarxa"
1003
1003
 
1004
- #: ../lib/foreman_discovery/engine.rb:142
1004
+ #: ../lib/foreman_discovery/engine.rb:140
1005
1005
  msgid "IPMI facts"
1006
1006
  msgstr ""
1007
1007
 
1008
- #: ../lib/foreman_discovery/engine.rb:143
1008
+ #: ../lib/foreman_discovery/engine.rb:141
1009
1009
  msgid "Regex to organize facts for ipmi section"
1010
1010
  msgstr "Expressió regular per a organitzar els objectes d'interès per a la secció ipmi"
1011
1011
 
1012
- #: ../lib/foreman_discovery/engine.rb:148
1012
+ #: ../lib/foreman_discovery/engine.rb:146
1013
1013
  msgid "Lock PXE"
1014
1014
  msgstr ""
1015
1015
 
1016
- #: ../lib/foreman_discovery/engine.rb:149
1016
+ #: ../lib/foreman_discovery/engine.rb:147
1017
1017
  msgid "Automatically generate PXE configuration to pin a newly discovered host to discovery"
1018
1018
  msgstr ""
1019
1019
 
1020
- #: ../lib/foreman_discovery/engine.rb:155
1020
+ #: ../lib/foreman_discovery/engine.rb:153
1021
1021
  msgid "Locked PXELinux template name"
1022
1022
  msgstr ""
1023
1023
 
1024
- #: ../lib/foreman_discovery/engine.rb:156
1024
+ #: ../lib/foreman_discovery/engine.rb:154
1025
1025
  msgid "PXELinux template to be used when pinning a host to discovery"
1026
1026
  msgstr ""
1027
1027
 
1028
- #: ../lib/foreman_discovery/engine.rb:162
1028
+ #: ../lib/foreman_discovery/engine.rb:160
1029
1029
  msgid "Locked PXEGrub template name"
1030
1030
  msgstr ""
1031
1031
 
1032
- #: ../lib/foreman_discovery/engine.rb:163
1032
+ #: ../lib/foreman_discovery/engine.rb:161
1033
1033
  msgid "PXEGrub template to be used when pinning a host to discovery"
1034
1034
  msgstr ""
1035
1035
 
1036
- #: ../lib/foreman_discovery/engine.rb:169
1036
+ #: ../lib/foreman_discovery/engine.rb:167
1037
1037
  msgid "Locked PXEGrub2 template name"
1038
1038
  msgstr ""
1039
1039
 
1040
- #: ../lib/foreman_discovery/engine.rb:170
1040
+ #: ../lib/foreman_discovery/engine.rb:168
1041
1041
  msgid "PXEGrub2 template to be used when pinning a host to discovery"
1042
1042
  msgstr ""
1043
1043
 
1044
- #: ../lib/foreman_discovery/engine.rb:175
1044
+ #: ../lib/foreman_discovery/engine.rb:173
1045
1045
  msgid "Force DNS"
1046
1046
  msgstr ""
1047
1047
 
1048
- #: ../lib/foreman_discovery/engine.rb:176
1048
+ #: ../lib/foreman_discovery/engine.rb:174
1049
1049
  msgid "Force DNS entries creation when provisioning discovered host"
1050
1050
  msgstr ""
1051
1051
 
1052
- #: ../lib/foreman_discovery/engine.rb:181
1052
+ #: ../lib/foreman_discovery/engine.rb:179
1053
1053
  msgid "Error on existing NIC"
1054
1054
  msgstr ""
1055
1055
 
1056
- #: ../lib/foreman_discovery/engine.rb:182
1056
+ #: ../lib/foreman_discovery/engine.rb:180
1057
1057
  msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
1058
1058
  msgstr ""
1059
1059
 
1060
- #: ../lib/foreman_discovery/engine.rb:188
1060
+ #: ../lib/foreman_discovery/engine.rb:186
1061
1061
  msgid "Type of name generator"
1062
1062
  msgstr ""
1063
1063
 
1064
- #: ../lib/foreman_discovery/engine.rb:189
1064
+ #: ../lib/foreman_discovery/engine.rb:187
1065
1065
  msgid "Discovery hostname naming pattern"
1066
1066
  msgstr ""
1067
1067
 
1068
- #: ../lib/foreman_discovery/engine.rb:194
1068
+ #: ../lib/foreman_discovery/engine.rb:192
1069
1069
  msgid "Prefer IPv6"
1070
1070
  msgstr ""
1071
1071
 
1072
- #: ../lib/foreman_discovery/engine.rb:195
1072
+ #: ../lib/foreman_discovery/engine.rb:193
1073
1073
  msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
1074
1074
  msgstr ""
1075
1075
 
1076
- #: ../lib/foreman_discovery/engine.rb:335
1076
+ #: ../lib/foreman_discovery/engine.rb:333
1077
1077
  msgid "Discovery Proxy"
1078
1078
  msgstr ""
1079
1079
 
1080
- #: ../lib/foreman_discovery/engine.rb:336
1080
+ #: ../lib/foreman_discovery/engine.rb:334
1081
1081
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1082
1082
  msgstr ""
1083
1083
 
1084
- #: ../lib/foreman_discovery/engine.rb:337
1084
+ #: ../lib/foreman_discovery/engine.rb:335
1085
1085
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1086
1086
  msgstr ""
1087
1087