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