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
@@ -117,7 +117,7 @@ msgstr ""
117
117
  msgid "Execute rules against a discovered host"
118
118
  msgstr ""
119
119
 
120
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:163
120
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:136 ../app/controllers/discovered_hosts_controller.rb:164
121
121
  msgid "Host %{host} was provisioned with rule %{rule}"
122
122
  msgstr ""
123
123
 
@@ -125,7 +125,7 @@ msgstr ""
125
125
  msgid "Unable to provision %{host}: %{errors}"
126
126
  msgstr ""
127
127
 
128
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:170
128
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:145 ../app/controllers/discovered_hosts_controller.rb:171
129
129
  msgid "No rule found for host %s"
130
130
  msgstr ""
131
131
 
@@ -133,11 +133,11 @@ msgstr ""
133
133
  msgid "Execute rules against all currently discovered hosts"
134
134
  msgstr ""
135
135
 
136
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:176
136
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:156 ../app/controllers/discovered_hosts_controller.rb:177
137
137
  msgid "Errors during auto provisioning: %s"
138
138
  msgstr ""
139
139
 
140
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:179
140
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:159 ../app/controllers/discovered_hosts_controller.rb:180
141
141
  msgid "No discovered hosts to provision"
142
142
  msgstr ""
143
143
 
@@ -157,7 +157,7 @@ msgstr ""
157
157
  msgid "Rebooting all discovered hosts"
158
158
  msgstr ""
159
159
 
160
- #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:132
160
+ #: ../app/controllers/api/v2/discovered_hosts_controller.rb:221 ../app/controllers/discovered_hosts_controller.rb:133
161
161
  msgid "Discovered hosts are rebooting now"
162
162
  msgstr ""
163
163
 
@@ -241,71 +241,71 @@ msgstr ""
241
241
  msgid "Successfully provisioned %s"
242
242
  msgstr ""
243
243
 
244
- #: ../app/controllers/discovered_hosts_controller.rb:100
244
+ #: ../app/controllers/discovered_hosts_controller.rb:101
245
245
  msgid "Facts refreshed for %s"
246
246
  msgstr ""
247
247
 
248
- #: ../app/controllers/discovered_hosts_controller.rb:102
248
+ #: ../app/controllers/discovered_hosts_controller.rb:103
249
249
  msgid "Failed to refresh facts for %s"
250
250
  msgstr ""
251
251
 
252
- #: ../app/controllers/discovered_hosts_controller.rb:105
252
+ #: ../app/controllers/discovered_hosts_controller.rb:106
253
253
  msgid "Failed to refresh facts for %{hostname} with error %{error_message}"
254
254
  msgstr ""
255
255
 
256
- #: ../app/controllers/discovered_hosts_controller.rb:112
256
+ #: ../app/controllers/discovered_hosts_controller.rb:113
257
257
  msgid "Host of type %s can not be rebooted"
258
258
  msgstr ""
259
259
 
260
- #: ../app/controllers/discovered_hosts_controller.rb:116
260
+ #: ../app/controllers/discovered_hosts_controller.rb:117
261
261
  msgid "Rebooting host %s"
262
262
  msgstr ""
263
263
 
264
- #: ../app/controllers/discovered_hosts_controller.rb:118
264
+ #: ../app/controllers/discovered_hosts_controller.rb:119
265
265
  msgid "Failed to reboot host %s"
266
266
  msgstr ""
267
267
 
268
- #: ../app/controllers/discovered_hosts_controller.rb:121
268
+ #: ../app/controllers/discovered_hosts_controller.rb:122
269
269
  msgid "Failed to reboot host %{hostname} with error %{error_message}"
270
270
  msgstr ""
271
271
 
272
- #: ../app/controllers/discovered_hosts_controller.rb:135
272
+ #: ../app/controllers/discovered_hosts_controller.rb:136
273
273
  msgid "Failed to reboot hosts with error %s"
274
274
  msgstr ""
275
275
 
276
- #: ../app/controllers/discovered_hosts_controller.rb:153
276
+ #: ../app/controllers/discovered_hosts_controller.rb:154
277
277
  msgid "Destroyed selected hosts"
278
278
  msgstr ""
279
279
 
280
- #: ../app/controllers/discovered_hosts_controller.rb:155
280
+ #: ../app/controllers/discovered_hosts_controller.rb:156
281
281
  msgid "The following hosts were not deleted: %s"
282
282
  msgstr ""
283
283
 
284
- #: ../app/controllers/discovered_hosts_controller.rb:167
284
+ #: ../app/controllers/discovered_hosts_controller.rb:168
285
285
  msgid "Failed to auto provision host %s: %s"
286
286
  msgstr ""
287
287
 
288
- #: ../app/controllers/discovered_hosts_controller.rb:195
288
+ #: ../app/controllers/discovered_hosts_controller.rb:196
289
289
  msgid "Discovered hosts are provisioning now"
290
290
  msgstr ""
291
291
 
292
- #: ../app/controllers/discovered_hosts_controller.rb:280
292
+ #: ../app/controllers/discovered_hosts_controller.rb:285
293
293
  msgid "Discovered host reported from unknown subnet, communication will not be proxied."
294
294
  msgstr ""
295
295
 
296
- #: ../app/controllers/discovered_hosts_controller.rb:285
296
+ #: ../app/controllers/discovered_hosts_controller.rb:290
297
297
  msgid "Discovered hosts reported from unknown subnet are %s, communication will not be proxied."
298
298
  msgstr ""
299
299
 
300
- #: ../app/controllers/discovered_hosts_controller.rb:299
300
+ #: ../app/controllers/discovered_hosts_controller.rb:304
301
301
  msgid "No hosts were found with that id or name"
302
302
  msgstr ""
303
303
 
304
- #: ../app/controllers/discovered_hosts_controller.rb:303
304
+ #: ../app/controllers/discovered_hosts_controller.rb:308
305
305
  msgid "No hosts selected"
306
306
  msgstr ""
307
307
 
308
- #: ../app/controllers/discovered_hosts_controller.rb:309
308
+ #: ../app/controllers/discovered_hosts_controller.rb:314
309
309
  msgid "Something went wrong while selecting hosts - %s"
310
310
  msgstr ""
311
311
 
@@ -325,7 +325,7 @@ msgstr ""
325
325
  msgid "Refresh facts"
326
326
  msgstr ""
327
327
 
328
- #: ../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
328
+ #: ../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
329
329
  msgid "Reboot"
330
330
  msgstr ""
331
331
 
@@ -377,7 +377,7 @@ msgstr ""
377
377
  msgid "Provision"
378
378
  msgstr ""
379
379
 
380
- #: ../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
380
+ #: ../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
381
381
  msgid "Discovered Hosts"
382
382
  msgstr ""
383
383
 
@@ -815,7 +815,7 @@ msgstr ""
815
815
  msgid "Edit %s"
816
816
  msgstr ""
817
817
 
818
- #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:316 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:20
818
+ #: ../app/views/discovery_rules/index.html.erb:1 ../lib/foreman_discovery/engine.rb:314 ../webpack/src/ForemanDiscovery/DiscoveryRules/Components/EmptyState/EmptyState.js:20
819
819
  msgid "Discovery Rules"
820
820
  msgstr ""
821
821
 
@@ -851,7 +851,7 @@ msgstr ""
851
851
  msgid "New Discovery Rule"
852
852
  msgstr ""
853
853
 
854
- #: ../app/views/discovery_rules/welcome.html.erb:8
854
+ #: ../app/views/discovery_rules/welcome.html.erb:5
855
855
  msgid "Discovered Rules"
856
856
  msgstr ""
857
857
 
@@ -923,23 +923,23 @@ msgstr ""
923
923
  msgid "Clean all reported facts during provisioning (except discovery facts)"
924
924
  msgstr ""
925
925
 
926
- #: ../lib/foreman_discovery/engine.rb:78
926
+ #: ../lib/foreman_discovery/engine.rb:79
927
927
  msgid "Hostname facts"
928
928
  msgstr ""
929
929
 
930
- #: ../lib/foreman_discovery/engine.rb:79
930
+ #: ../lib/foreman_discovery/engine.rb:80
931
931
  msgid "List of facts to use for the hostname (first wins)"
932
932
  msgstr ""
933
933
 
934
- #: ../lib/foreman_discovery/engine.rb:86
934
+ #: ../lib/foreman_discovery/engine.rb:85
935
935
  msgid "Auto provisioning"
936
936
  msgstr ""
937
937
 
938
- #: ../lib/foreman_discovery/engine.rb:87
938
+ #: ../lib/foreman_discovery/engine.rb:86
939
939
  msgid "Automatically provision newly discovered hosts, according to the provisioning rules"
940
940
  msgstr ""
941
941
 
942
- #: ../lib/foreman_discovery/engine.rb:93
942
+ #: ../lib/foreman_discovery/engine.rb:92
943
943
  msgid "Automatically reboot or kexec discovered host during provisioning"
944
944
  msgstr ""
945
945
 
@@ -951,135 +951,135 @@ msgstr ""
951
951
  msgid "The default prefix to use for the host name, must start with a letter"
952
952
  msgstr ""
953
953
 
954
- #: ../lib/foreman_discovery/engine.rb:106
954
+ #: ../lib/foreman_discovery/engine.rb:104
955
955
  msgid "Fact columns"
956
956
  msgstr ""
957
957
 
958
- #: ../lib/foreman_discovery/engine.rb:107
958
+ #: ../lib/foreman_discovery/engine.rb:105
959
959
  msgid "Extra facter columns to show in host lists"
960
960
  msgstr ""
961
961
 
962
- #: ../lib/foreman_discovery/engine.rb:112
962
+ #: ../lib/foreman_discovery/engine.rb:110
963
963
  msgid "Highlighted facts"
964
964
  msgstr ""
965
965
 
966
- #: ../lib/foreman_discovery/engine.rb:113
966
+ #: ../lib/foreman_discovery/engine.rb:111
967
967
  msgid "Regex to organize facts for highlights section - e.g. ^(abc|cde)$"
968
968
  msgstr ""
969
969
 
970
- #: ../lib/foreman_discovery/engine.rb:118
970
+ #: ../lib/foreman_discovery/engine.rb:116
971
971
  msgid "Storage facts"
972
972
  msgstr ""
973
973
 
974
- #: ../lib/foreman_discovery/engine.rb:119
974
+ #: ../lib/foreman_discovery/engine.rb:117
975
975
  msgid "Regex to organize facts for storage section"
976
976
  msgstr ""
977
977
 
978
- #: ../lib/foreman_discovery/engine.rb:124
978
+ #: ../lib/foreman_discovery/engine.rb:122
979
979
  msgid "Software facts"
980
980
  msgstr ""
981
981
 
982
- #: ../lib/foreman_discovery/engine.rb:125
982
+ #: ../lib/foreman_discovery/engine.rb:123
983
983
  msgid "Regex to organize facts for software section"
984
984
  msgstr ""
985
985
 
986
- #: ../lib/foreman_discovery/engine.rb:130
986
+ #: ../lib/foreman_discovery/engine.rb:128
987
987
  msgid "Hardware facts"
988
988
  msgstr ""
989
989
 
990
- #: ../lib/foreman_discovery/engine.rb:131
990
+ #: ../lib/foreman_discovery/engine.rb:129
991
991
  msgid "Regex to organize facts for hardware section"
992
992
  msgstr ""
993
993
 
994
- #: ../lib/foreman_discovery/engine.rb:136
994
+ #: ../lib/foreman_discovery/engine.rb:134
995
995
  msgid "Network facts"
996
996
  msgstr ""
997
997
 
998
- #: ../lib/foreman_discovery/engine.rb:137
998
+ #: ../lib/foreman_discovery/engine.rb:135
999
999
  msgid "Regex to organize facts for network section"
1000
1000
  msgstr ""
1001
1001
 
1002
- #: ../lib/foreman_discovery/engine.rb:142
1002
+ #: ../lib/foreman_discovery/engine.rb:140
1003
1003
  msgid "IPMI facts"
1004
1004
  msgstr ""
1005
1005
 
1006
- #: ../lib/foreman_discovery/engine.rb:143
1006
+ #: ../lib/foreman_discovery/engine.rb:141
1007
1007
  msgid "Regex to organize facts for ipmi section"
1008
1008
  msgstr ""
1009
1009
 
1010
- #: ../lib/foreman_discovery/engine.rb:148
1010
+ #: ../lib/foreman_discovery/engine.rb:146
1011
1011
  msgid "Lock PXE"
1012
1012
  msgstr ""
1013
1013
 
1014
- #: ../lib/foreman_discovery/engine.rb:149
1014
+ #: ../lib/foreman_discovery/engine.rb:147
1015
1015
  msgid "Automatically generate PXE configuration to pin a newly discovered host to discovery"
1016
1016
  msgstr ""
1017
1017
 
1018
- #: ../lib/foreman_discovery/engine.rb:155
1018
+ #: ../lib/foreman_discovery/engine.rb:153
1019
1019
  msgid "Locked PXELinux template name"
1020
1020
  msgstr ""
1021
1021
 
1022
- #: ../lib/foreman_discovery/engine.rb:156
1022
+ #: ../lib/foreman_discovery/engine.rb:154
1023
1023
  msgid "PXELinux template to be used when pinning a host to discovery"
1024
1024
  msgstr ""
1025
1025
 
1026
- #: ../lib/foreman_discovery/engine.rb:162
1026
+ #: ../lib/foreman_discovery/engine.rb:160
1027
1027
  msgid "Locked PXEGrub template name"
1028
1028
  msgstr ""
1029
1029
 
1030
- #: ../lib/foreman_discovery/engine.rb:163
1030
+ #: ../lib/foreman_discovery/engine.rb:161
1031
1031
  msgid "PXEGrub template to be used when pinning a host to discovery"
1032
1032
  msgstr ""
1033
1033
 
1034
- #: ../lib/foreman_discovery/engine.rb:169
1034
+ #: ../lib/foreman_discovery/engine.rb:167
1035
1035
  msgid "Locked PXEGrub2 template name"
1036
1036
  msgstr ""
1037
1037
 
1038
- #: ../lib/foreman_discovery/engine.rb:170
1038
+ #: ../lib/foreman_discovery/engine.rb:168
1039
1039
  msgid "PXEGrub2 template to be used when pinning a host to discovery"
1040
1040
  msgstr ""
1041
1041
 
1042
- #: ../lib/foreman_discovery/engine.rb:175
1042
+ #: ../lib/foreman_discovery/engine.rb:173
1043
1043
  msgid "Force DNS"
1044
1044
  msgstr ""
1045
1045
 
1046
- #: ../lib/foreman_discovery/engine.rb:176
1046
+ #: ../lib/foreman_discovery/engine.rb:174
1047
1047
  msgid "Force DNS entries creation when provisioning discovered host"
1048
1048
  msgstr ""
1049
1049
 
1050
- #: ../lib/foreman_discovery/engine.rb:181
1050
+ #: ../lib/foreman_discovery/engine.rb:179
1051
1051
  msgid "Error on existing NIC"
1052
1052
  msgstr ""
1053
1053
 
1054
- #: ../lib/foreman_discovery/engine.rb:182
1054
+ #: ../lib/foreman_discovery/engine.rb:180
1055
1055
  msgid "Do not allow to discover existing managed host matching MAC of a provisioning NIC (errors out early)"
1056
1056
  msgstr ""
1057
1057
 
1058
- #: ../lib/foreman_discovery/engine.rb:188
1058
+ #: ../lib/foreman_discovery/engine.rb:186
1059
1059
  msgid "Type of name generator"
1060
1060
  msgstr ""
1061
1061
 
1062
- #: ../lib/foreman_discovery/engine.rb:189
1062
+ #: ../lib/foreman_discovery/engine.rb:187
1063
1063
  msgid "Discovery hostname naming pattern"
1064
1064
  msgstr ""
1065
1065
 
1066
- #: ../lib/foreman_discovery/engine.rb:194
1066
+ #: ../lib/foreman_discovery/engine.rb:192
1067
1067
  msgid "Prefer IPv6"
1068
1068
  msgstr ""
1069
1069
 
1070
- #: ../lib/foreman_discovery/engine.rb:195
1070
+ #: ../lib/foreman_discovery/engine.rb:193
1071
1071
  msgid "Prefer IPv6 to IPv4 when calling discovered nodes"
1072
1072
  msgstr ""
1073
1073
 
1074
- #: ../lib/foreman_discovery/engine.rb:335
1074
+ #: ../lib/foreman_discovery/engine.rb:333
1075
1075
  msgid "Discovery Proxy"
1076
1076
  msgstr ""
1077
1077
 
1078
- #: ../lib/foreman_discovery/engine.rb:336
1078
+ #: ../lib/foreman_discovery/engine.rb:334
1079
1079
  msgid "Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1080
1080
  msgstr ""
1081
1081
 
1082
- #: ../lib/foreman_discovery/engine.rb:337
1082
+ #: ../lib/foreman_discovery/engine.rb:335
1083
1083
  msgid "ID of Discovery Proxy to use within this subnet for managing connection to discovered hosts"
1084
1084
  msgstr ""
1085
1085