facterdb 2.1.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +10 -11
  3. data/CHANGELOG.md +24 -0
  4. data/bin/legacy-facts-striper +138 -0
  5. data/database/list_arch_os_facter.md +6 -16
  6. data/database/list_facter_os_arch.md +211 -227
  7. data/database/list_os_arch_facter.md +45 -56
  8. data/database/list_os_facter_arch.md +210 -229
  9. data/database/table.md +0 -3
  10. data/facts/4.0/almalinux-8-x86_64.facts +0 -88
  11. data/facts/4.0/almalinux-9-x86_64.facts +0 -84
  12. data/facts/4.0/debian-11-x86_64.facts +0 -86
  13. data/facts/4.0/freebsd-11-x86_64.facts +0 -54
  14. data/facts/4.0/freebsd-12-x86_64.facts +0 -54
  15. data/facts/4.0/freebsd-13-x86_64.facts +0 -54
  16. data/facts/4.0/opensuse-15-x86_64.facts +0 -81
  17. data/facts/4.0/oraclelinux-7-x86_64.facts +1 -104
  18. data/facts/4.0/redhat-8-x86_64.facts +0 -89
  19. data/facts/4.0/rocky-8-x86_64.facts +0 -79
  20. data/facts/4.0/rocky-9-x86_64.facts +0 -89
  21. data/facts/4.0/scientific-7-x86_64.facts +1 -105
  22. data/facts/4.0/solaris-11-sun4v.facts +0 -46
  23. data/facts/4.0/ubuntu-18.04-x86_64.facts +0 -88
  24. data/facts/4.0/ubuntu-20.04-x86_64.facts +0 -88
  25. data/facts/4.0/ubuntu-21.04-x86_64.facts +0 -88
  26. data/facts/4.0/ubuntu-21.10-x86_64.facts +0 -88
  27. data/facts/4.1/almalinux-8-x86_64.facts +0 -88
  28. data/facts/4.1/almalinux-9-x86_64.facts +0 -84
  29. data/facts/4.1/debian-11-x86_64.facts +0 -86
  30. data/facts/4.1/freebsd-11-x86_64.facts +0 -54
  31. data/facts/4.1/freebsd-12-x86_64.facts +0 -54
  32. data/facts/4.1/freebsd-13-x86_64.facts +0 -54
  33. data/facts/4.1/opensuse-15-x86_64.facts +0 -81
  34. data/facts/4.1/redhat-8-x86_64.facts +0 -89
  35. data/facts/4.1/rocky-8-x86_64.facts +0 -79
  36. data/facts/4.1/rocky-9-x86_64.facts +0 -89
  37. data/facts/4.1/ubuntu-18.04-x86_64.facts +0 -88
  38. data/facts/4.1/ubuntu-20.04-x86_64.facts +0 -88
  39. data/facts/4.1/ubuntu-21.04-x86_64.facts +0 -88
  40. data/facts/4.1/ubuntu-21.10-x86_64.facts +0 -88
  41. data/facts/4.2/almalinux-8-x86_64.facts +0 -84
  42. data/facts/4.2/almalinux-9-x86_64.facts +0 -84
  43. data/facts/4.2/amazon-2022-x86_64.facts +0 -7
  44. data/facts/4.2/archlinux-x86_64.facts +0 -80
  45. data/facts/4.2/centos-9-x86_64.facts +0 -87
  46. data/facts/4.2/darwin-20-x86_64.facts +1 -101
  47. data/facts/4.2/debian-11-x86_64.facts +0 -84
  48. data/facts/4.2/debian-12-i386.facts +0 -84
  49. data/facts/4.2/debian-12-x86_64.facts +0 -84
  50. data/facts/4.2/fedora-36-x86_64.facts +0 -88
  51. data/facts/4.2/fedora-37-x86_64.facts +0 -88
  52. data/facts/4.2/fedora-38-x86_64.facts +0 -87
  53. data/facts/4.2/fedora-39-x86_64.facts +0 -87
  54. data/facts/4.2/freebsd-11-x86_64.facts +0 -54
  55. data/facts/4.2/freebsd-12-x86_64.facts +0 -54
  56. data/facts/4.2/freebsd-13-x86_64.facts +0 -54
  57. data/facts/4.2/gentoo-2-x86_64.facts +0 -90
  58. data/facts/4.2/opensuse-15-x86_64.facts +0 -81
  59. data/facts/4.2/oraclelinux-7-x86_64.facts +0 -98
  60. data/facts/4.2/oraclelinux-8-x86_64.facts +0 -96
  61. data/facts/4.2/oraclelinux-9-x86_64.facts +0 -12
  62. data/facts/4.2/popos-21.10-x86_64.facts +0 -36
  63. data/facts/4.2/redhat-8-x86_64.facts +0 -89
  64. data/facts/4.2/redhat-9-x86_64.facts +0 -89
  65. data/facts/4.2/rocky-8-x86_64.facts +0 -79
  66. data/facts/4.2/rocky-9-x86_64.facts +0 -89
  67. data/facts/4.2/scientific-7-x86_64.facts +0 -98
  68. data/facts/4.2/sles-12-x86_64.facts +0 -81
  69. data/facts/4.2/sles-15-x86_64.facts +0 -85
  70. data/facts/4.2/ubuntu-18.04-x86_64.facts +0 -88
  71. data/facts/4.2/ubuntu-20.04-x86_64.facts +0 -88
  72. data/facts/4.2/ubuntu-21.04-x86_64.facts +0 -88
  73. data/facts/4.2/ubuntu-21.10-x86_64.facts +0 -88
  74. data/facts/4.2/ubuntu-22.04-x86_64.facts +0 -86
  75. data/facts/4.2/ubuntu-22.10-x86_64.facts +0 -88
  76. data/facts/4.2/windows-10-x86_64.facts +1 -57
  77. data/facts/4.2/windows-11-x86_64.facts +1 -57
  78. data/facts/4.2/windows-2012 r2-x86_64.facts +1 -55
  79. data/facts/4.2/windows-2012-x86_64.facts +1 -94
  80. data/facts/4.2/windows-2016-core-x86_64.facts +1 -95
  81. data/facts/4.2/windows-2016-x86_64.facts +1 -95
  82. data/facts/4.2/windows-2019-core-x86_64.facts +1 -56
  83. data/facts/4.2/windows-2019-x86_64.facts +1 -56
  84. data/facts/4.2/windows-2022-core-x86_64.facts +1 -57
  85. data/facts/4.2/windows-2022-x86_64.facts +1 -57
  86. data/facts/4.3/almalinux-8-x86_64.facts +0 -84
  87. data/facts/4.3/almalinux-9-x86_64.facts +0 -84
  88. data/facts/4.3/archlinux-x86_64.facts +0 -80
  89. data/facts/4.3/centos-9-x86_64.facts +0 -87
  90. data/facts/4.3/debian-11-x86_64.facts +0 -84
  91. data/facts/4.3/debian-12-i386.facts +0 -84
  92. data/facts/4.3/debian-12-x86_64.facts +0 -84
  93. data/facts/4.3/fedora-36-x86_64.facts +0 -88
  94. data/facts/4.3/fedora-37-x86_64.facts +0 -88
  95. data/facts/4.3/fedora-38-x86_64.facts +0 -87
  96. data/facts/4.3/fedora-39-x86_64.facts +0 -87
  97. data/facts/4.3/freebsd-13-x86_64.facts +0 -58
  98. data/facts/4.3/gentoo-2-x86_64.facts +0 -90
  99. data/facts/4.3/opensuse-15-x86_64.facts +0 -81
  100. data/facts/4.3/oraclelinux-8-x86_64.facts +0 -93
  101. data/facts/4.3/oraclelinux-9-x86_64.facts +0 -85
  102. data/facts/4.3/redhat-8-x86_64.facts +0 -89
  103. data/facts/4.3/redhat-9-x86_64.facts +0 -89
  104. data/facts/4.3/rocky-8-x86_64.facts +0 -89
  105. data/facts/4.3/rocky-9-x86_64.facts +0 -89
  106. data/facts/4.3/sles-12-x86_64.facts +0 -88
  107. data/facts/4.3/ubuntu-18.04-x86_64.facts +0 -88
  108. data/facts/4.3/ubuntu-20.04-x86_64.facts +0 -88
  109. data/facts/4.3/ubuntu-22.04-x86_64.facts +0 -86
  110. data/facts/4.3/windows-10-x86_64.facts +1 -65
  111. data/facts/4.3/windows-11-x86_64.facts +1 -65
  112. data/facts/4.3/windows-2012 r2-x86_64.facts +2 -56
  113. data/facts/4.3/windows-2012-x86_64.facts +1 -55
  114. data/facts/4.3/windows-2016-core-x86_64.facts +1 -56
  115. data/facts/4.3/windows-2016-x86_64.facts +1 -56
  116. data/facts/4.3/windows-2019-core-x86_64.facts +1 -56
  117. data/facts/4.3/windows-2019-x86_64.facts +1 -64
  118. data/facts/4.3/windows-2022-core-x86_64.facts +1 -57
  119. data/facts/4.3/windows-2022-x86_64.facts +1 -65
  120. data/facts/4.4/almalinux-8-x86_64.facts +0 -84
  121. data/facts/4.4/almalinux-9-x86_64.facts +0 -84
  122. data/facts/4.4/archlinux-x86_64.facts +0 -80
  123. data/facts/4.4/centos-9-x86_64.facts +0 -87
  124. data/facts/4.4/debian-11-x86_64.facts +0 -84
  125. data/facts/4.4/debian-12-i386.facts +0 -84
  126. data/facts/4.4/debian-12-x86_64.facts +0 -84
  127. data/facts/4.4/fedora-36-x86_64.facts +0 -88
  128. data/facts/4.4/fedora-37-x86_64.facts +0 -88
  129. data/facts/4.4/fedora-38-x86_64.facts +0 -87
  130. data/facts/4.4/fedora-39-x86_64.facts +0 -87
  131. data/facts/4.4/freebsd-13-x86_64.facts +0 -56
  132. data/facts/4.4/gentoo-2-x86_64.facts +0 -90
  133. data/facts/4.4/opensuse-15-x86_64.facts +0 -81
  134. data/facts/4.4/oraclelinux-8-x86_64.facts +0 -93
  135. data/facts/4.4/oraclelinux-9-x86_64.facts +0 -85
  136. data/facts/4.4/redhat-8-x86_64.facts +0 -89
  137. data/facts/4.4/redhat-9-x86_64.facts +0 -89
  138. data/facts/4.4/rocky-8-x86_64.facts +0 -89
  139. data/facts/4.4/rocky-9-x86_64.facts +0 -89
  140. data/facts/4.4/sles-12-x86_64.facts +0 -88
  141. data/facts/4.4/ubuntu-18.04-x86_64.facts +0 -88
  142. data/facts/4.4/ubuntu-20.04-x86_64.facts +0 -88
  143. data/facts/4.4/ubuntu-22.04-x86_64.facts +0 -86
  144. data/facts/4.4/windows-10-x86_64.facts +1 -65
  145. data/facts/4.4/windows-11-x86_64.facts +1 -65
  146. data/facts/4.4/windows-2012 r2-x86_64.facts +1 -55
  147. data/facts/4.4/windows-2012-x86_64.facts +1 -55
  148. data/facts/4.4/windows-2016-core-x86_64.facts +1 -56
  149. data/facts/4.4/windows-2016-x86_64.facts +2 -57
  150. data/facts/4.4/windows-2019-core-x86_64.facts +1 -56
  151. data/facts/4.4/windows-2019-x86_64.facts +1 -64
  152. data/facts/4.4/windows-2022-core-x86_64.facts +1 -57
  153. data/facts/4.4/windows-2022-x86_64.facts +1 -65
  154. data/facts/4.5/almalinux-8-x86_64.facts +0 -84
  155. data/facts/4.5/almalinux-9-x86_64.facts +0 -84
  156. data/facts/4.5/amazon-2-x86_64.facts +0 -80
  157. data/facts/4.5/archlinux-x86_64.facts +0 -80
  158. data/facts/4.5/centos-9-x86_64.facts +0 -87
  159. data/facts/4.5/debian-11-x86_64.facts +0 -84
  160. data/facts/4.5/debian-12-x86_64.facts +0 -84
  161. data/facts/4.5/fedora-36-x86_64.facts +0 -88
  162. data/facts/4.5/fedora-37-x86_64.facts +0 -88
  163. data/facts/4.5/fedora-38-x86_64.facts +0 -87
  164. data/facts/4.5/fedora-39-x86_64.facts +0 -87
  165. data/facts/4.5/freebsd-12-x86_64.facts +0 -58
  166. data/facts/4.5/freebsd-13-x86_64.facts +0 -58
  167. data/facts/4.5/gentoo-2-x86_64.facts +0 -90
  168. data/facts/4.5/opensuse-15-x86_64.facts +0 -81
  169. data/facts/4.5/oraclelinux-8-x86_64.facts +0 -93
  170. data/facts/4.5/oraclelinux-9-x86_64.facts +0 -85
  171. data/facts/4.5/redhat-8-x86_64.facts +0 -89
  172. data/facts/4.5/redhat-9-x86_64.facts +0 -89
  173. data/facts/4.5/rocky-8-x86_64.facts +0 -89
  174. data/facts/4.5/rocky-9-x86_64.facts +0 -89
  175. data/facts/4.5/ubuntu-18.04-x86_64.facts +0 -88
  176. data/facts/4.5/ubuntu-20.04-x86_64.facts +0 -88
  177. data/facts/4.5/ubuntu-22.04-x86_64.facts +0 -86
  178. data/facts/4.5/windows-10-x86_64.facts +1 -65
  179. data/facts/4.5/windows-11-x86_64.facts +1 -65
  180. data/facts/4.5/windows-2019-x86_64.facts +1 -64
  181. data/facts/4.5/windows-2022-x86_64.facts +1 -65
  182. data/facts/4.6/almalinux-8-x86_64.facts +0 -84
  183. data/facts/4.6/almalinux-9-x86_64.facts +0 -84
  184. data/facts/4.6/archlinux-x86_64.facts +0 -80
  185. data/facts/4.6/centos-9-x86_64.facts +0 -87
  186. data/facts/4.6/debian-11-x86_64.facts +0 -84
  187. data/facts/4.6/debian-12-x86_64.facts +0 -84
  188. data/facts/4.6/fedora-36-x86_64.facts +0 -88
  189. data/facts/4.6/fedora-37-x86_64.facts +0 -88
  190. data/facts/4.6/fedora-38-x86_64.facts +0 -87
  191. data/facts/4.6/fedora-39-x86_64.facts +0 -87
  192. data/facts/4.6/gentoo-2-x86_64.facts +0 -90
  193. data/facts/4.6/oraclelinux-8-x86_64.facts +0 -93
  194. data/facts/4.6/oraclelinux-9-x86_64.facts +0 -85
  195. data/facts/4.6/redhat-8-x86_64.facts +0 -89
  196. data/facts/4.6/redhat-9-x86_64.facts +0 -89
  197. data/facts/4.6/rocky-9-x86_64.facts +0 -89
  198. data/facts/4.6/ubuntu-20.04-x86_64.facts +0 -88
  199. data/facts/4.6/ubuntu-22.04-x86_64.facts +0 -86
  200. data/facts/4.6/windows-10-x86_64.facts +1 -65
  201. data/facts/4.6/windows-11-x86_64.facts +1 -65
  202. data/facts/4.6/windows-2019-x86_64.facts +1 -64
  203. data/facts/4.6/windows-2022-x86_64.facts +1 -65
  204. data/facts/4.7/almalinux-8-x86_64.facts +0 -84
  205. data/facts/4.7/almalinux-9-x86_64.facts +0 -84
  206. data/facts/4.7/archlinux-x86_64.facts +0 -80
  207. data/facts/4.7/centos-9-x86_64.facts +0 -87
  208. data/facts/4.7/debian-11-x86_64.facts +0 -84
  209. data/facts/4.7/debian-12-x86_64.facts +0 -84
  210. data/facts/4.7/fedora-36-x86_64.facts +0 -88
  211. data/facts/4.7/fedora-37-x86_64.facts +0 -88
  212. data/facts/4.7/fedora-38-x86_64.facts +0 -87
  213. data/facts/4.7/fedora-39-x86_64.facts +0 -87
  214. data/facts/4.7/gentoo-2-x86_64.facts +0 -90
  215. data/facts/4.7/openbsd-7-x86_64.facts +0 -39
  216. data/facts/4.7/opensuse-15-x86_64.facts +0 -81
  217. data/facts/4.7/oraclelinux-8-x86_64.facts +0 -93
  218. data/facts/4.7/oraclelinux-9-x86_64.facts +0 -85
  219. data/facts/4.7/redhat-8-x86_64.facts +0 -89
  220. data/facts/4.7/redhat-9-x86_64.facts +0 -89
  221. data/facts/4.7/rocky-9-x86_64.facts +0 -89
  222. data/facts/4.7/ubuntu-20.04-x86_64.facts +0 -88
  223. data/facts/4.7/ubuntu-22.04-x86_64.facts +0 -86
  224. data/facts/4.7/windows-10-x86_64.facts +1 -65
  225. data/facts/4.7/windows-11-x86_64.facts +1 -65
  226. data/facts/4.7/windows-2019-x86_64.facts +1 -64
  227. data/facts/4.7/windows-2022-x86_64.facts +1 -65
  228. data/facts/Vagrantfile +0 -32
  229. data/facts/get_facts.sh +10 -10
  230. data/facts/windows_get_facts.ps1 +1 -1
  231. data/lib/facterdb/bin.rb +1 -1
  232. data/lib/facterdb/version.rb +1 -1
  233. data/lib/facterdb.rb +0 -31
  234. data/spec/facter_db_spec.rb +5 -90
  235. data/spec/facts_spec.rb +57 -2
  236. metadata +5 -19
  237. data/facts/4.0/centos-7-x86_64.facts +0 -694
  238. data/facts/4.0/centos-8-x86_64.facts +0 -512
  239. data/facts/4.0/redhat-7-x86_64.facts +0 -694
  240. data/facts/4.1/centos-7-x86_64.facts +0 -582
  241. data/facts/4.1/centos-8-x86_64.facts +0 -514
  242. data/facts/4.2/centos-7-x86_64.facts +0 -593
  243. data/facts/4.2/centos-8-x86_64.facts +0 -521
  244. data/facts/4.2/redhat-7-x86_64.facts +0 -536
  245. data/facts/4.3/centos-7-x86_64.facts +0 -592
  246. data/facts/4.3/centos-8-x86_64.facts +0 -521
  247. data/facts/4.4/centos-7-x86_64.facts +0 -592
  248. data/facts/4.4/centos-8-x86_64.facts +0 -521
  249. data/facts/4.5/centos-7-x86_64.facts +0 -602
  250. data/facts/4.5/centos-8-x86_64.facts +0 -527
  251. data/facts/4.6/centos-8-x86_64.facts +0 -529
  252. data/facts/4.7/centos-8-x86_64.facts +0 -529
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75843f09832f669272fcb7ea1f32d09f931c0ec55e4603e34593ad24ebc80d25
4
- data.tar.gz: ad00ec7cf7ca4a579c2ec918312e18d2b16634e5720aed4a94bb8cdbce0bbf65
3
+ metadata.gz: 6be4d1e81886d8e5cba7d905c3f1cbd162fef871a63d511a508076a9d1c211c7
4
+ data.tar.gz: 517a08e7aae0226c23c53e97b7507cef374f07dd766bcb05e2a0757e45896553
5
5
  SHA512:
6
- metadata.gz: 2d8145338782bcb755d72bc58ace5285d5ac340ff6252598f04ad4cf95d1648d373afa5b602bf94c942e972c5d43ba1ff1f4e167f41c22c023d0795fe631062d
7
- data.tar.gz: fe5f1c7347394dad0505a9c2429dce5f0ece8beb6ab1679b82b8e269ecac8dc309cf7c42f158c1628b1f721c59acdb39097cdb934e2b96bcc41fdbbe42d55bff
6
+ metadata.gz: 2c1a32edd96e2605e3334491042efa3df49a06bf1290195591441ba4e1419918bd454f0f2ed67181882d666b6aba6568169b9a735e01280d29d3da9380f33963
7
+ data.tar.gz: 8a6f84ee27f1fea0f94c36858a1a02df11fd78d0276c5e5cdb6d54762191cc561724ec0f51b44a741fb3fc80ca6ce0dfc82baae492bec014a8e4a0bb7aa305e4
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2024-06-08 21:54:16 UTC using RuboCop version 1.63.5.
3
+ # on 2024-06-12 14:45:50 UTC using RuboCop version 1.63.5.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -63,7 +63,7 @@ RSpec/DescribeClass:
63
63
  - '**/spec/views/**/*'
64
64
  - 'spec/facts_spec.rb'
65
65
 
66
- # Offense count: 12
66
+ # Offense count: 10
67
67
  # This cop supports unsafe autocorrection (--autocorrect-all).
68
68
  # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
69
69
  # SupportedStyles: described_class, explicit
@@ -71,21 +71,21 @@ RSpec/DescribedClass:
71
71
  Exclude:
72
72
  - 'spec/facter_db_spec.rb'
73
73
 
74
- # Offense count: 3
74
+ # Offense count: 5
75
75
  # Configuration parameters: CountAsOne.
76
76
  RSpec/ExampleLength:
77
- Max: 9
77
+ Max: 13
78
78
 
79
- # Offense count: 4
79
+ # Offense count: 8
80
80
  RSpec/MultipleExpectations:
81
- Max: 7
81
+ Max: 13
82
82
 
83
- # Offense count: 19
83
+ # Offense count: 11
84
84
  # Configuration parameters: AllowSubject.
85
85
  RSpec/MultipleMemoizedHelpers:
86
86
  Max: 6
87
87
 
88
- # Offense count: 11
88
+ # Offense count: 3
89
89
  # Configuration parameters: AllowedGroups.
90
90
  RSpec/NestedGroups:
91
91
  Max: 4
@@ -98,13 +98,12 @@ RSpec/PredicateMatcher:
98
98
  Exclude:
99
99
  - 'spec/facter_db_spec.rb'
100
100
 
101
- # Offense count: 2
101
+ # Offense count: 1
102
102
  # This cop supports unsafe autocorrection (--autocorrect-all).
103
103
  # Configuration parameters: MinBranchesCount.
104
104
  Style/CaseLikeIf:
105
105
  Exclude:
106
106
  - 'Rakefile'
107
- - 'lib/facterdb.rb'
108
107
 
109
108
  # Offense count: 2
110
109
  # Configuration parameters: AllowedConstants.
@@ -187,7 +186,7 @@ Style/SymbolProc:
187
186
  Exclude:
188
187
  - 'Rakefile'
189
188
 
190
- # Offense count: 4
189
+ # Offense count: 5
191
190
  # This cop supports safe autocorrection (--autocorrect).
192
191
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
193
192
  # URISchemes: http, https
data/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.1.0](https://rubygems.org/gems/facterdb/versions/3.1.0) (2024-06-14)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/facterdb/compare/3.0.0...3.1.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Cleanup legacy facts leftovers [\#370](https://github.com/voxpupuli/facterdb/pull/370) ([bastelfreak](https://github.com/bastelfreak))
10
+
11
+ **Fixed bugs:**
12
+
13
+ - Purge custom facts [\#371](https://github.com/voxpupuli/facterdb/pull/371) ([bastelfreak](https://github.com/bastelfreak))
14
+
15
+ ## [3.0.0](https://rubygems.org/gems/facterdb/versions/3.0.0) (2024-06-10)
16
+
17
+ [Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.1.0...3.0.0)
18
+
19
+ **Breaking changes:**
20
+
21
+ - Drop deprecated self.get\_os\_facts\(\) [\#365](https://github.com/voxpupuli/facterdb/pull/365) ([bastelfreak](https://github.com/bastelfreak))
22
+ - Remove EoL CentOS 8 factsets [\#361](https://github.com/voxpupuli/facterdb/pull/361) ([bastelfreak](https://github.com/bastelfreak))
23
+ - Remove EoL CentOS 7 factsets [\#360](https://github.com/voxpupuli/facterdb/pull/360) ([bastelfreak](https://github.com/bastelfreak))
24
+ - Remove deprecated RedHat 7 facts [\#359](https://github.com/voxpupuli/facterdb/pull/359) ([bastelfreak](https://github.com/bastelfreak))
25
+ - Remove Legacy Facts [\#266](https://github.com/voxpupuli/facterdb/pull/266) ([smortex](https://github.com/smortex))
26
+
3
27
  ## [2.1.0](https://rubygems.org/gems/facterdb/versions/2.1.0) (2024-06-08)
4
28
 
5
29
  [Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.0.1...2.1.0)
@@ -0,0 +1,138 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'json'
5
+
6
+ # This list of legacy fact was obtained from the facter source code:
7
+ # grep --no-filename -r ALIASES' =' lib | sed -Ee "s/^ *ALIASES = ('|%w\\[)//" -e "s/('|].freeze)\$//" | tr ' ' '\n' | sort | uniq
8
+ LEGACY_FACTS = %w[
9
+ architecture
10
+ augeasversion
11
+ bios_release_date
12
+ bios_vendor
13
+ bios_version
14
+ blockdevice_.*_model
15
+ blockdevice_.*_size
16
+ blockdevice_.*_vendor
17
+ blockdevices
18
+ boardassettag
19
+ boardmanufacturer
20
+ boardproductname
21
+ boardserialnumber
22
+ chassisassettag
23
+ chassistype
24
+ dhcp_servers
25
+ domain
26
+ fqdn
27
+ gid
28
+ hardwareisa
29
+ hardwaremodel
30
+ hostname
31
+ id
32
+ interfaces
33
+ ipaddress_.*
34
+ ipaddress6_.*
35
+ lsbdistcodename
36
+ lsbdistdescription
37
+ lsbdistid
38
+ lsbdistrelease
39
+ lsbmajdistrelease
40
+ lsbminordistrelease
41
+ lsbrelease
42
+ macaddress_.*
43
+ macosx_buildversion
44
+ macosx_productname
45
+ macosx_productversion
46
+ macosx_productversion_major
47
+ macosx_productversion_minor
48
+ manufacturer
49
+ memoryfree
50
+ memoryfree_mb
51
+ memorysize
52
+ memorysize_mb
53
+ mtu_.*
54
+ netmask6_.*
55
+ netmask_.*
56
+ network6_.*
57
+ network_.*
58
+ operatingsystem
59
+ operatingsystemmajrelease
60
+ operatingsystemrelease
61
+ osfamily
62
+ physicalprocessorcount
63
+ processor\d+
64
+ processorcount
65
+ productname
66
+ rubyplatform
67
+ rubysitedir
68
+ rubyversion
69
+ sshdsakey
70
+ sshecdsakey
71
+ sshed25519key
72
+ sshfp_dsa
73
+ sshfp_ecdsa
74
+ sshfp_ed25519
75
+ sshfp_rsa
76
+ sshrsakey
77
+ scope6
78
+ selinux
79
+ selinux_config_mode
80
+ selinux_config_policy
81
+ selinux_current_mode
82
+ selinux_enforced
83
+ selinux_policyversion
84
+ serialnumber
85
+ sp_boot_mode
86
+ sp_boot_rom_version
87
+ sp_boot_volume
88
+ sp_cpu_type
89
+ sp_current_processor_speed
90
+ sp_kernel_version
91
+ sp_l2_cache_core
92
+ sp_l3_cache
93
+ sp_local_host_name
94
+ sp_machine_model
95
+ sp_machine_name
96
+ sp_number_processors
97
+ sp_os_version
98
+ sp_packages
99
+ sp_physical_memory
100
+ sp_platform_uuid
101
+ sp_secure_vm
102
+ sp_serial_number
103
+ sp_smc_version_system
104
+ sp_uptime
105
+ sp_user_name
106
+ swapencrypted
107
+ swapfree
108
+ swapfree_mb
109
+ swapsize
110
+ swapsize_mb
111
+ system32
112
+ uptime
113
+ uptime_days
114
+ uptime_hours
115
+ uptime_seconds
116
+ uuid
117
+ windows_display_version
118
+ windows_edition_id
119
+ windows_installation_type
120
+ windows_product_name
121
+ windows_release_id
122
+ xendomains
123
+ zonename
124
+ ].map { |re| Regexp.new("\\A#{re}\\z") }
125
+
126
+ if ARGV.empty?
127
+ warn "usage: #{$PROGRAM_NAME} facts..."
128
+ exit(1)
129
+ end
130
+
131
+ ARGV.each do |filename|
132
+ puts filename
133
+ facts = JSON.parse(File.read(filename))
134
+ facts.delete_if do |key|
135
+ LEGACY_FACTS.any? { |legacy_fact| key.match(legacy_fact) }
136
+ end
137
+ File.write(filename, "#{JSON.pretty_generate(facts)}\n")
138
+ end
@@ -2,39 +2,38 @@
2
2
 
3
3
  # Available Facts Grouped By Arch -> OS
4
4
 
5
- - x86_64
5
+ - Missing Value
6
6
  - AlmaLinux 8: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
7
7
  - AlmaLinux 9: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
8
- - CentOS 8: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
9
8
  - Debian 11: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
10
9
  - FreeBSD 11: 4.0 4.1 4.2
11
10
  - FreeBSD 12: 4.0 4.1 4.2 4.5
12
11
  - FreeBSD 13: 4.0 4.1 4.2 4.3 4.4 4.5
13
12
  - openSUSE 15: 4.0 4.1 4.2 4.3 4.4 4.5 4.7
13
+ - OracleLinux 7: 4.0 4.2
14
14
  - RedHat 8: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
15
15
  - Rocky 8: 4.0 4.1 4.2 4.3 4.4 4.5
16
16
  - Rocky 9: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
17
+ - Scientific 7: 4.0 4.2
18
+ - Solaris 11: 4.0
17
19
  - Ubuntu 18.04: 4.0 4.1 4.2 4.3 4.4 4.5
18
20
  - Ubuntu 20.04: 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7
19
21
  - Ubuntu 21.04: 4.0 4.1 4.2
20
22
  - Ubuntu 21.10: 4.0 4.1 4.2
21
- - CentOS 7: 4.1 4.2 4.3 4.4 4.5
23
+ - Amazon 2022: 4.2
22
24
  - Archlinux: 4.2 4.3 4.4 4.5 4.6 4.7
23
25
  - CentOS 9: 4.2 4.3 4.4 4.5 4.6 4.7
24
26
  - Darwin 20: 4.2
25
- - Debian 12: 4.2 4.3 4.4 4.5 4.6 4.7
27
+ - Debian 12: 4.2 4.2 4.3 4.3 4.4 4.4 4.5 4.6 4.7
26
28
  - Fedora 36: 4.2 4.3 4.4 4.5 4.6 4.7
27
29
  - Fedora 37: 4.2 4.3 4.4 4.5 4.6 4.7
28
30
  - Fedora 38: 4.2 4.3 4.4 4.5 4.6 4.7
29
31
  - Fedora 39: 4.2 4.3 4.4 4.5 4.6 4.7
30
32
  - Gentoo: 4.2 4.3 4.4 4.5 4.6 4.7
31
- - OracleLinux 7: 4.2
32
33
  - OracleLinux 8: 4.2 4.3 4.4 4.5 4.6 4.7
33
34
  - OracleLinux 9: 4.2 4.3 4.4 4.5 4.6 4.7
34
35
  - Pop!_OS 21.10: 4.2
35
- - RedHat 7: 4.2
36
36
  - RedHat 9: 4.2 4.3 4.4 4.5 4.6 4.7
37
- - Scientific 7: 4.2
38
37
  - SLES 12: 4.2 4.3 4.4
39
38
  - SLES 15: 4.2
40
39
  - Ubuntu 22.04: 4.2 4.3 4.4 4.5 4.6 4.7
@@ -51,12 +50,3 @@
51
50
  - Windows Server 2022: 4.2 4.3 4.4 4.5 4.6 4.7
52
51
  - Amazon 2: 4.5
53
52
  - OpenBSD 7.5: 4.7
54
- - Missing Value
55
- - CentOS 7: 4.0
56
- - OracleLinux 7: 4.0
57
- - RedHat 7: 4.0
58
- - Scientific 7: 4.0
59
- - Solaris 11: 4.0
60
- - Amazon 2022: 4.2
61
- - i386
62
- - Debian 12: 4.2 4.3 4.4