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
@@ -124,7 +124,7 @@ msgstr "хэш с минимальным набором фактов узла: d
124
124
  msgid "Execute rules against a discovered host"
125
125
  msgstr "Применить правила к обнаруженному узлу"
126
126
 
127
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:163
127
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:164
128
128
  msgid "Host %{host} was provisioned with rule %{rule}"
129
129
  msgstr "%{host} был подготовлен в соответствии с правилом %{rule}"
130
130
 
@@ -132,7 +132,7 @@ msgstr "%{host} был подготовлен в соответствии с п
132
132
  msgid "Unable to provision %{host}: %{errors}"
133
133
  msgstr "Не удалось подготовить %{host}: %{errors}"
134
134
 
135
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:170
135
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:171
136
136
  msgid "No rule found for host %s"
137
137
  msgstr "Нет правил для %s"
138
138
 
@@ -140,11 +140,11 @@ msgstr "Нет правил для %s"
140
140
  msgid "Execute rules against all currently discovered hosts"
141
141
  msgstr "Применить правила ко всем обнаруженным узлам"
142
142
 
143
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:176
143
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:177
144
144
  msgid "Errors during auto provisioning: %s"
145
145
  msgstr "Ошибки при автоматической подготовке: %s"
146
146
 
147
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:179
147
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:180
148
148
  msgid "No discovered hosts to provision"
149
149
  msgstr "Нет обнаруженных узлов"
150
150
 
@@ -164,7 +164,7 @@ msgstr "Перезагрузка обнаруженного узла"
164
164
  msgid "Rebooting all discovered hosts"
165
165
  msgstr "Перезагрузка всех обнаруженных узлов"
166
166
 
167
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:132
167
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:133
168
168
  msgid "Discovered hosts are rebooting now"
169
169
  msgstr "Выполняется перезагрузка обнаруженных узлов"
170
170
 
@@ -248,71 +248,71 @@ msgstr "Нет узлов для перезагрузки"
248
248
  msgid "Successfully provisioned %s"
249
249
  msgstr ""
250
250
 
251
- #: ../app/controllers/discovered_hosts_controller.rb:100
251
+ #: ../app/controllers/discovered_hosts_controller.rb:101
252
252
  msgid "Facts refreshed for %s"
253
253
  msgstr "Факты %s были обновлены"
254
254
 
255
- #: ../app/controllers/discovered_hosts_controller.rb:102
255
+ #: ../app/controllers/discovered_hosts_controller.rb:103
256
256
  msgid "Failed to refresh facts for %s"
257
257
  msgstr "Не удалось обновить факты %s"
258
258
 
259
- #: ../app/controllers/discovered_hosts_controller.rb:105
259
+ #: ../app/controllers/discovered_hosts_controller.rb:106
260
260
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
261
261
  msgstr "Не удалось обновить факты %{hostname}. Ошибка: %{error_message}"
262
262
 
263
- #: ../app/controllers/discovered_hosts_controller.rb:112
263
+ #: ../app/controllers/discovered_hosts_controller.rb:113
264
264
  msgid "Host of type %s can not be rebooted"
265
265
  msgstr "Узел типа %s не может быть перезагружен"
266
266
 
267
- #: ../app/controllers/discovered_hosts_controller.rb:116
267
+ #: ../app/controllers/discovered_hosts_controller.rb:117
268
268
  msgid "Rebooting host %s"
269
269
  msgstr "Перезагрузка %s"
270
270
 
271
- #: ../app/controllers/discovered_hosts_controller.rb:118
271
+ #: ../app/controllers/discovered_hosts_controller.rb:119
272
272
  msgid "Failed to reboot host %s"
273
273
  msgstr "Не удалось перезагрузить %s"
274
274
 
275
- #: ../app/controllers/discovered_hosts_controller.rb:121
275
+ #: ../app/controllers/discovered_hosts_controller.rb:122
276
276
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
277
277
  msgstr "Не удалось перезагрузить %{hostname}. Ошибка: %{error_message}"
278
278
 
279
- #: ../app/controllers/discovered_hosts_controller.rb:135
279
+ #: ../app/controllers/discovered_hosts_controller.rb:136
280
280
  msgid "Failed to reboot hosts with error %s"
281
281
  msgstr "Не удалось перезагрузить узлы. Ошибка: %s"
282
282
 
283
- #: ../app/controllers/discovered_hosts_controller.rb:153
283
+ #: ../app/controllers/discovered_hosts_controller.rb:154
284
284
  msgid "Destroyed selected hosts"
285
285
  msgstr "Узлы удалены"
286
286
 
287
- #: ../app/controllers/discovered_hosts_controller.rb:155
287
+ #: ../app/controllers/discovered_hosts_controller.rb:156
288
288
  msgid "The following hosts were not deleted: %s"
289
289
  msgstr "Узлы не были удалены: %s"
290
290
 
291
- #: ../app/controllers/discovered_hosts_controller.rb:167
291
+ #: ../app/controllers/discovered_hosts_controller.rb:168
292
292
  msgid "Failed to auto provision host %s: %s"
293
293
  msgstr "Не удалось автоматически подготовить узел %s: %s"
294
294
 
295
- #: ../app/controllers/discovered_hosts_controller.rb:195
295
+ #: ../app/controllers/discovered_hosts_controller.rb:196
296
296
  msgid "Discovered hosts are provisioning now"
297
297
  msgstr "Выполняется подготовка обнаруженных узлов"
298
298
 
299
- #: ../app/controllers/discovered_hosts_controller.rb:280
299
+ #: ../app/controllers/discovered_hosts_controller.rb:285
300
300
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
301
301
  msgstr ""
302
302
 
303
- #: ../app/controllers/discovered_hosts_controller.rb:285
303
+ #: ../app/controllers/discovered_hosts_controller.rb:290
304
304
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
305
305
  msgstr ""
306
306
 
307
- #: ../app/controllers/discovered_hosts_controller.rb:299
307
+ #: ../app/controllers/discovered_hosts_controller.rb:304
308
308
  msgid "No hosts were found with that id or name"
309
309
  msgstr "Нет узла с таким идентификатором или именем"
310
310
 
311
- #: ../app/controllers/discovered_hosts_controller.rb:303
311
+ #: ../app/controllers/discovered_hosts_controller.rb:308
312
312
  msgid "No hosts selected"
313
313
  msgstr "Не выбран узел"
314
314
 
315
- #: ../app/controllers/discovered_hosts_controller.rb:309
315
+ #: ../app/controllers/discovered_hosts_controller.rb:314
316
316
  msgid "Something went wrong while selecting hosts - %s"
317
317
  msgstr "Непредвиденное поведение при выборе узлов: %s"
318
318
 
@@ -332,7 +332,7 @@ msgstr "Автоматическая подготовка"
332
332
  msgid "Refresh facts"
333
333
  msgstr "Обновить факты"
334
334
 
335
- #: ../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
335
+ #: ../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
336
336
  msgid "Reboot"
337
337
  msgstr "Перезагрузить"
338
338
 
@@ -384,7 +384,7 @@ msgstr "Были данные за последние 7 дней"
384
384
  msgid "Provision"
385
385
  msgstr "Подготовить"
386
386
 
387
- #: ../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
387
+ #: ../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
388
388
  msgid "Discovered Hosts"
389
389
  msgstr "Обнаруженные узлы"
390
390
 
@@ -826,7 +826,7 @@ msgstr "Клонировать %s"
826
826
  msgid "Edit %s"
827
827
  msgstr "Изменить %s"
828
828
 
829
- #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:316 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:20
829
+ #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:314 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:20
830
830
  msgid "Discovery Rules"
831
831
  msgstr "Правила обнаружения"
832
832
 
@@ -862,7 +862,7 @@ msgstr "Включено"
862
862
  msgid "New Discovery Rule"
863
863
  msgstr "Новое правило"
864
864
 
865
- #: ../app/views/discovery_rules/welcome.html.erb:8
865
+ #: ../app/views/discovery_rules/welcome.html.erb:5
866
866
  msgid "Discovered Rules"
867
867
  msgstr ""
868
868
 
@@ -934,23 +934,23 @@ msgstr ""
934
934
  msgid "Clean all reported facts during provisioning (except discovery facts)"
935
935
  msgstr ""
936
936
 
937
- #: ../lib/foreman_discovery/engine.rb:78
937
+ #: ../lib/foreman_discovery/engine.rb:79
938
938
  msgid "Hostname facts"
939
939
  msgstr ""
940
940
 
941
- #: ../lib/foreman_discovery/engine.rb:79
941
+ #: ../lib/foreman_discovery/engine.rb:80
942
942
  msgid "List of facts to use for the hostname (first wins)"
943
943
  msgstr ""
944
944
 
945
- #: ../lib/foreman_discovery/engine.rb:86
945
+ #: ../lib/foreman_discovery/engine.rb:85
946
946
  msgid "Auto provisioning"
947
947
  msgstr ""
948
948
 
949
- #: ../lib/foreman_discovery/engine.rb:87
949
+ #: ../lib/foreman_discovery/engine.rb:86
950
950
  msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
951
951
  msgstr "Автоматически подготовить обнаруженные узлы в соответствии с заранее определенными правилами"
952
952
 
953
- #: ../lib/foreman_discovery/engine.rb:93
953
+ #: ../lib/foreman_discovery/engine.rb:92
954
954
  msgid "Automatically reboot or kexec discovered host during provisioning"
955
955
  msgstr ""
956
956
 
@@ -962,135 +962,135 @@ msgstr ""
962
962
  msgid "The default prefix to use for the host name, must start with a letter"
963
963
  msgstr "Префикс имени узла (должен начинаться с буквы)"
964
964
 
965
- #: ../lib/foreman_discovery/engine.rb:106
965
+ #: ../lib/foreman_discovery/engine.rb:104
966
966
  msgid "Fact columns"
967
967
  msgstr ""
968
968
 
969
- #: ../lib/foreman_discovery/engine.rb:107
969
+ #: ../lib/foreman_discovery/engine.rb:105
970
970
  msgid "Extra facter columns to show in host lists"
971
971
  msgstr ""
972
972
 
973
- #: ../lib/foreman_discovery/engine.rb:112
973
+ #: ../lib/foreman_discovery/engine.rb:110
974
974
  msgid "Highlighted facts"
975
975
  msgstr ""
976
976
 
977
- #: ../lib/foreman_discovery/engine.rb:113
977
+ #: ../lib/foreman_discovery/engine.rb:111
978
978
  msgid "Regex to organize facts for highlights section - e.g. ^(abc|cde)$"
979
979
  msgstr "Регулярное выражение для организации фактов в списке «Основные», например: ^(abc|cde)$"
980
980
 
981
- #: ../lib/foreman_discovery/engine.rb:118
981
+ #: ../lib/foreman_discovery/engine.rb:116
982
982
  msgid "Storage facts"
983
983
  msgstr ""
984
984
 
985
- #: ../lib/foreman_discovery/engine.rb:119
985
+ #: ../lib/foreman_discovery/engine.rb:117
986
986
  msgid "Regex to organize facts for storage section"
987
987
  msgstr "Регулярное выражение для организации фактов в секции «Хранилище»"
988
988
 
989
- #: ../lib/foreman_discovery/engine.rb:124
989
+ #: ../lib/foreman_discovery/engine.rb:122
990
990
  msgid "Software facts"
991
991
  msgstr ""
992
992
 
993
- #: ../lib/foreman_discovery/engine.rb:125
993
+ #: ../lib/foreman_discovery/engine.rb:123
994
994
  msgid "Regex to organize facts for software section"
995
995
  msgstr "Регулярное выражение для организации фактов в секции «Программное обеспечение»"
996
996
 
997
- #: ../lib/foreman_discovery/engine.rb:130
997
+ #: ../lib/foreman_discovery/engine.rb:128
998
998
  msgid "Hardware facts"
999
999
  msgstr ""
1000
1000
 
1001
- #: ../lib/foreman_discovery/engine.rb:131
1001
+ #: ../lib/foreman_discovery/engine.rb:129
1002
1002
  msgid "Regex to organize facts for hardware section"
1003
1003
  msgstr "Регулярное выражение для организации фактов в секции «Оборудование»"
1004
1004
 
1005
- #: ../lib/foreman_discovery/engine.rb:136
1005
+ #: ../lib/foreman_discovery/engine.rb:134
1006
1006
  msgid "Network facts"
1007
1007
  msgstr ""
1008
1008
 
1009
- #: ../lib/foreman_discovery/engine.rb:137
1009
+ #: ../lib/foreman_discovery/engine.rb:135
1010
1010
  msgid "Regex to organize facts for network section"
1011
1011
  msgstr "Регулярное выражение для организации фактов в секции «Сеть»"
1012
1012
 
1013
- #: ../lib/foreman_discovery/engine.rb:142
1013
+ #: ../lib/foreman_discovery/engine.rb:140
1014
1014
  msgid "IPMI facts"
1015
1015
  msgstr ""
1016
1016
 
1017
- #: ../lib/foreman_discovery/engine.rb:143
1017
+ #: ../lib/foreman_discovery/engine.rb:141
1018
1018
  msgid "Regex to organize facts for ipmi section"
1019
1019
  msgstr "Регулярное выражение для организации фактов в секции «IPMI»"
1020
1020
 
1021
- #: ../lib/foreman_discovery/engine.rb:148
1021
+ #: ../lib/foreman_discovery/engine.rb:146
1022
1022
  msgid "Lock PXE"
1023
1023
  msgstr ""
1024
1024
 
1025
- #: ../lib/foreman_discovery/engine.rb:149
1025
+ #: ../lib/foreman_discovery/engine.rb:147
1026
1026
  msgid "Automatically generate PXE configuration to pin a newly discovered host to discovery"
1027
1027
  msgstr ""
1028
1028
 
1029
- #: ../lib/foreman_discovery/engine.rb:155
1029
+ #: ../lib/foreman_discovery/engine.rb:153
1030
1030
  msgid "Locked PXELinux template name"
1031
1031
  msgstr ""
1032
1032
 
1033
- #: ../lib/foreman_discovery/engine.rb:156
1033
+ #: ../lib/foreman_discovery/engine.rb:154
1034
1034
  msgid "PXELinux template to be used when pinning a host to discovery"
1035
1035
  msgstr ""
1036
1036
 
1037
- #: ../lib/foreman_discovery/engine.rb:162
1037
+ #: ../lib/foreman_discovery/engine.rb:160
1038
1038
  msgid "Locked PXEGrub template name"
1039
1039
  msgstr ""
1040
1040
 
1041
- #: ../lib/foreman_discovery/engine.rb:163
1041
+ #: ../lib/foreman_discovery/engine.rb:161
1042
1042
  msgid "PXEGrub template to be used when pinning a host to discovery"
1043
1043
  msgstr ""
1044
1044
 
1045
- #: ../lib/foreman_discovery/engine.rb:169
1045
+ #: ../lib/foreman_discovery/engine.rb:167
1046
1046
  msgid "Locked PXEGrub2 template name"
1047
1047
  msgstr ""
1048
1048
 
1049
- #: ../lib/foreman_discovery/engine.rb:170
1049
+ #: ../lib/foreman_discovery/engine.rb:168
1050
1050
  msgid "PXEGrub2 template to be used when pinning a host to discovery"
1051
1051
  msgstr ""
1052
1052
 
1053
- #: ../lib/foreman_discovery/engine.rb:175
1053
+ #: ../lib/foreman_discovery/engine.rb:173
1054
1054
  msgid "Force DNS"
1055
1055
  msgstr ""
1056
1056
 
1057
- #: ../lib/foreman_discovery/engine.rb:176
1057
+ #: ../lib/foreman_discovery/engine.rb:174
1058
1058
  msgid "Force DNS entries creation when provisioning discovered host"
1059
1059
  msgstr ""
1060
1060
 
1061
- #: ../lib/foreman_discovery/engine.rb:181
1061
+ #: ../lib/foreman_discovery/engine.rb:179
1062
1062
  msgid "Error on existing NIC"
1063
1063
  msgstr ""
1064
1064
 
1065
- #: ../lib/foreman_discovery/engine.rb:182
1065
+ #: ../lib/foreman_discovery/engine.rb:180
1066
1066
  msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
1067
1067
  msgstr ""
1068
1068
 
1069
- #: ../lib/foreman_discovery/engine.rb:188
1069
+ #: ../lib/foreman_discovery/engine.rb:186
1070
1070
  msgid "Type of name generator"
1071
1071
  msgstr ""
1072
1072
 
1073
- #: ../lib/foreman_discovery/engine.rb:189
1073
+ #: ../lib/foreman_discovery/engine.rb:187
1074
1074
  msgid "Discovery hostname naming pattern"
1075
1075
  msgstr ""
1076
1076
 
1077
- #: ../lib/foreman_discovery/engine.rb:194
1077
+ #: ../lib/foreman_discovery/engine.rb:192
1078
1078
  msgid "Prefer IPv6"
1079
1079
  msgstr ""
1080
1080
 
1081
- #: ../lib/foreman_discovery/engine.rb:195
1081
+ #: ../lib/foreman_discovery/engine.rb:193
1082
1082
  msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
1083
1083
  msgstr ""
1084
1084
 
1085
- #: ../lib/foreman_discovery/engine.rb:335
1085
+ #: ../lib/foreman_discovery/engine.rb:333
1086
1086
  msgid "Discovery Proxy"
1087
1087
  msgstr ""
1088
1088
 
1089
- #: ../lib/foreman_discovery/engine.rb:336
1089
+ #: ../lib/foreman_discovery/engine.rb:334
1090
1090
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1091
1091
  msgstr ""
1092
1092
 
1093
- #: ../lib/foreman_discovery/engine.rb:337
1093
+ #: ../lib/foreman_discovery/engine.rb:335
1094
1094
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1095
1095
  msgstr ""
1096
1096