facterdb 2.1.0 → 3.0.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 +5 -6
  3. data/CHANGELOG.md +12 -0
  4. data/bin/legacy-facts-striper +127 -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 -63
  11. data/facts/4.0/almalinux-9-x86_64.facts +0 -59
  12. data/facts/4.0/debian-11-x86_64.facts +0 -58
  13. data/facts/4.0/freebsd-11-x86_64.facts +0 -42
  14. data/facts/4.0/freebsd-12-x86_64.facts +0 -42
  15. data/facts/4.0/freebsd-13-x86_64.facts +0 -42
  16. data/facts/4.0/opensuse-15-x86_64.facts +0 -54
  17. data/facts/4.0/oraclelinux-7-x86_64.facts +23 -16
  18. data/facts/4.0/redhat-8-x86_64.facts +0 -64
  19. data/facts/4.0/rocky-8-x86_64.facts +0 -60
  20. data/facts/4.0/rocky-9-x86_64.facts +0 -64
  21. data/facts/4.0/scientific-7-x86_64.facts +23 -16
  22. data/facts/4.0/solaris-11-sun4v.facts +0 -6
  23. data/facts/4.0/ubuntu-18.04-x86_64.facts +0 -60
  24. data/facts/4.0/ubuntu-20.04-x86_64.facts +0 -60
  25. data/facts/4.0/ubuntu-21.04-x86_64.facts +0 -60
  26. data/facts/4.0/ubuntu-21.10-x86_64.facts +0 -60
  27. data/facts/4.1/almalinux-8-x86_64.facts +0 -63
  28. data/facts/4.1/almalinux-9-x86_64.facts +0 -59
  29. data/facts/4.1/debian-11-x86_64.facts +0 -58
  30. data/facts/4.1/freebsd-11-x86_64.facts +0 -42
  31. data/facts/4.1/freebsd-12-x86_64.facts +0 -42
  32. data/facts/4.1/freebsd-13-x86_64.facts +0 -42
  33. data/facts/4.1/opensuse-15-x86_64.facts +0 -54
  34. data/facts/4.1/redhat-8-x86_64.facts +0 -64
  35. data/facts/4.1/rocky-8-x86_64.facts +0 -60
  36. data/facts/4.1/rocky-9-x86_64.facts +0 -64
  37. data/facts/4.1/ubuntu-18.04-x86_64.facts +0 -60
  38. data/facts/4.1/ubuntu-20.04-x86_64.facts +0 -60
  39. data/facts/4.1/ubuntu-21.04-x86_64.facts +0 -60
  40. data/facts/4.1/ubuntu-21.10-x86_64.facts +0 -60
  41. data/facts/4.2/almalinux-8-x86_64.facts +0 -59
  42. data/facts/4.2/almalinux-9-x86_64.facts +0 -59
  43. data/facts/4.2/amazon-2022-x86_64.facts +0 -7
  44. data/facts/4.2/archlinux-x86_64.facts +0 -54
  45. data/facts/4.2/centos-9-x86_64.facts +0 -62
  46. data/facts/4.2/darwin-20-x86_64.facts +1 -63
  47. data/facts/4.2/debian-11-x86_64.facts +0 -58
  48. data/facts/4.2/debian-12-i386.facts +0 -58
  49. data/facts/4.2/debian-12-x86_64.facts +0 -58
  50. data/facts/4.2/fedora-36-x86_64.facts +0 -63
  51. data/facts/4.2/fedora-37-x86_64.facts +0 -63
  52. data/facts/4.2/fedora-38-x86_64.facts +0 -62
  53. data/facts/4.2/fedora-39-x86_64.facts +0 -62
  54. data/facts/4.2/freebsd-11-x86_64.facts +0 -42
  55. data/facts/4.2/freebsd-12-x86_64.facts +0 -42
  56. data/facts/4.2/freebsd-13-x86_64.facts +0 -42
  57. data/facts/4.2/gentoo-2-x86_64.facts +0 -65
  58. data/facts/4.2/opensuse-15-x86_64.facts +0 -54
  59. data/facts/4.2/oraclelinux-7-x86_64.facts +0 -63
  60. data/facts/4.2/oraclelinux-8-x86_64.facts +0 -63
  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 -64
  64. data/facts/4.2/redhat-9-x86_64.facts +0 -64
  65. data/facts/4.2/rocky-8-x86_64.facts +0 -60
  66. data/facts/4.2/rocky-9-x86_64.facts +0 -64
  67. data/facts/4.2/scientific-7-x86_64.facts +0 -63
  68. data/facts/4.2/sles-12-x86_64.facts +0 -54
  69. data/facts/4.2/sles-15-x86_64.facts +0 -58
  70. data/facts/4.2/ubuntu-18.04-x86_64.facts +0 -60
  71. data/facts/4.2/ubuntu-20.04-x86_64.facts +0 -60
  72. data/facts/4.2/ubuntu-21.04-x86_64.facts +0 -60
  73. data/facts/4.2/ubuntu-21.10-x86_64.facts +0 -60
  74. data/facts/4.2/ubuntu-22.04-x86_64.facts +0 -60
  75. data/facts/4.2/ubuntu-22.10-x86_64.facts +0 -60
  76. data/facts/4.2/windows-10-x86_64.facts +1 -44
  77. data/facts/4.2/windows-11-x86_64.facts +1 -44
  78. data/facts/4.2/windows-2012 r2-x86_64.facts +1 -42
  79. data/facts/4.2/windows-2012-x86_64.facts +7 -42
  80. data/facts/4.2/windows-2016-core-x86_64.facts +7 -43
  81. data/facts/4.2/windows-2016-x86_64.facts +7 -43
  82. data/facts/4.2/windows-2019-core-x86_64.facts +1 -43
  83. data/facts/4.2/windows-2019-x86_64.facts +1 -43
  84. data/facts/4.2/windows-2022-core-x86_64.facts +1 -44
  85. data/facts/4.2/windows-2022-x86_64.facts +1 -44
  86. data/facts/4.3/almalinux-8-x86_64.facts +0 -59
  87. data/facts/4.3/almalinux-9-x86_64.facts +0 -59
  88. data/facts/4.3/archlinux-x86_64.facts +0 -54
  89. data/facts/4.3/centos-9-x86_64.facts +0 -62
  90. data/facts/4.3/debian-11-x86_64.facts +0 -58
  91. data/facts/4.3/debian-12-i386.facts +0 -58
  92. data/facts/4.3/debian-12-x86_64.facts +0 -58
  93. data/facts/4.3/fedora-36-x86_64.facts +0 -63
  94. data/facts/4.3/fedora-37-x86_64.facts +0 -63
  95. data/facts/4.3/fedora-38-x86_64.facts +0 -62
  96. data/facts/4.3/fedora-39-x86_64.facts +0 -62
  97. data/facts/4.3/freebsd-13-x86_64.facts +0 -43
  98. data/facts/4.3/gentoo-2-x86_64.facts +0 -65
  99. data/facts/4.3/opensuse-15-x86_64.facts +0 -54
  100. data/facts/4.3/oraclelinux-8-x86_64.facts +0 -68
  101. data/facts/4.3/oraclelinux-9-x86_64.facts +0 -60
  102. data/facts/4.3/redhat-8-x86_64.facts +0 -64
  103. data/facts/4.3/redhat-9-x86_64.facts +0 -64
  104. data/facts/4.3/rocky-8-x86_64.facts +0 -64
  105. data/facts/4.3/rocky-9-x86_64.facts +0 -64
  106. data/facts/4.3/sles-12-x86_64.facts +0 -61
  107. data/facts/4.3/ubuntu-18.04-x86_64.facts +0 -60
  108. data/facts/4.3/ubuntu-20.04-x86_64.facts +0 -60
  109. data/facts/4.3/ubuntu-22.04-x86_64.facts +0 -60
  110. data/facts/4.3/windows-10-x86_64.facts +1 -44
  111. data/facts/4.3/windows-11-x86_64.facts +1 -44
  112. data/facts/4.3/windows-2012 r2-x86_64.facts +2 -43
  113. data/facts/4.3/windows-2012-x86_64.facts +1 -42
  114. data/facts/4.3/windows-2016-core-x86_64.facts +1 -43
  115. data/facts/4.3/windows-2016-x86_64.facts +1 -43
  116. data/facts/4.3/windows-2019-core-x86_64.facts +1 -43
  117. data/facts/4.3/windows-2019-x86_64.facts +1 -43
  118. data/facts/4.3/windows-2022-core-x86_64.facts +1 -44
  119. data/facts/4.3/windows-2022-x86_64.facts +1 -44
  120. data/facts/4.4/almalinux-8-x86_64.facts +0 -59
  121. data/facts/4.4/almalinux-9-x86_64.facts +0 -59
  122. data/facts/4.4/archlinux-x86_64.facts +0 -54
  123. data/facts/4.4/centos-9-x86_64.facts +0 -62
  124. data/facts/4.4/debian-11-x86_64.facts +0 -58
  125. data/facts/4.4/debian-12-i386.facts +0 -58
  126. data/facts/4.4/debian-12-x86_64.facts +0 -58
  127. data/facts/4.4/fedora-36-x86_64.facts +0 -63
  128. data/facts/4.4/fedora-37-x86_64.facts +0 -63
  129. data/facts/4.4/fedora-38-x86_64.facts +0 -62
  130. data/facts/4.4/fedora-39-x86_64.facts +0 -62
  131. data/facts/4.4/freebsd-13-x86_64.facts +0 -41
  132. data/facts/4.4/gentoo-2-x86_64.facts +0 -65
  133. data/facts/4.4/opensuse-15-x86_64.facts +0 -54
  134. data/facts/4.4/oraclelinux-8-x86_64.facts +0 -68
  135. data/facts/4.4/oraclelinux-9-x86_64.facts +0 -60
  136. data/facts/4.4/redhat-8-x86_64.facts +0 -64
  137. data/facts/4.4/redhat-9-x86_64.facts +0 -64
  138. data/facts/4.4/rocky-8-x86_64.facts +0 -64
  139. data/facts/4.4/rocky-9-x86_64.facts +0 -64
  140. data/facts/4.4/sles-12-x86_64.facts +0 -61
  141. data/facts/4.4/ubuntu-18.04-x86_64.facts +0 -60
  142. data/facts/4.4/ubuntu-20.04-x86_64.facts +0 -60
  143. data/facts/4.4/ubuntu-22.04-x86_64.facts +0 -60
  144. data/facts/4.4/windows-10-x86_64.facts +1 -44
  145. data/facts/4.4/windows-11-x86_64.facts +1 -44
  146. data/facts/4.4/windows-2012 r2-x86_64.facts +1 -42
  147. data/facts/4.4/windows-2012-x86_64.facts +1 -42
  148. data/facts/4.4/windows-2016-core-x86_64.facts +1 -43
  149. data/facts/4.4/windows-2016-x86_64.facts +2 -44
  150. data/facts/4.4/windows-2019-core-x86_64.facts +1 -43
  151. data/facts/4.4/windows-2019-x86_64.facts +1 -43
  152. data/facts/4.4/windows-2022-core-x86_64.facts +1 -44
  153. data/facts/4.4/windows-2022-x86_64.facts +1 -44
  154. data/facts/4.5/almalinux-8-x86_64.facts +0 -59
  155. data/facts/4.5/almalinux-9-x86_64.facts +0 -59
  156. data/facts/4.5/amazon-2-x86_64.facts +0 -54
  157. data/facts/4.5/archlinux-x86_64.facts +0 -54
  158. data/facts/4.5/centos-9-x86_64.facts +0 -62
  159. data/facts/4.5/debian-11-x86_64.facts +0 -58
  160. data/facts/4.5/debian-12-x86_64.facts +0 -58
  161. data/facts/4.5/fedora-36-x86_64.facts +0 -63
  162. data/facts/4.5/fedora-37-x86_64.facts +0 -63
  163. data/facts/4.5/fedora-38-x86_64.facts +0 -62
  164. data/facts/4.5/fedora-39-x86_64.facts +0 -62
  165. data/facts/4.5/freebsd-12-x86_64.facts +0 -43
  166. data/facts/4.5/freebsd-13-x86_64.facts +0 -43
  167. data/facts/4.5/gentoo-2-x86_64.facts +0 -65
  168. data/facts/4.5/opensuse-15-x86_64.facts +0 -54
  169. data/facts/4.5/oraclelinux-8-x86_64.facts +0 -68
  170. data/facts/4.5/oraclelinux-9-x86_64.facts +0 -60
  171. data/facts/4.5/redhat-8-x86_64.facts +0 -64
  172. data/facts/4.5/redhat-9-x86_64.facts +0 -64
  173. data/facts/4.5/rocky-8-x86_64.facts +0 -64
  174. data/facts/4.5/rocky-9-x86_64.facts +0 -64
  175. data/facts/4.5/ubuntu-18.04-x86_64.facts +0 -60
  176. data/facts/4.5/ubuntu-20.04-x86_64.facts +0 -60
  177. data/facts/4.5/ubuntu-22.04-x86_64.facts +0 -60
  178. data/facts/4.5/windows-10-x86_64.facts +1 -44
  179. data/facts/4.5/windows-11-x86_64.facts +1 -44
  180. data/facts/4.5/windows-2019-x86_64.facts +1 -43
  181. data/facts/4.5/windows-2022-x86_64.facts +1 -44
  182. data/facts/4.6/almalinux-8-x86_64.facts +0 -59
  183. data/facts/4.6/almalinux-9-x86_64.facts +0 -59
  184. data/facts/4.6/archlinux-x86_64.facts +0 -54
  185. data/facts/4.6/centos-9-x86_64.facts +0 -62
  186. data/facts/4.6/debian-11-x86_64.facts +0 -58
  187. data/facts/4.6/debian-12-x86_64.facts +0 -58
  188. data/facts/4.6/fedora-36-x86_64.facts +0 -63
  189. data/facts/4.6/fedora-37-x86_64.facts +0 -63
  190. data/facts/4.6/fedora-38-x86_64.facts +0 -62
  191. data/facts/4.6/fedora-39-x86_64.facts +0 -62
  192. data/facts/4.6/gentoo-2-x86_64.facts +0 -65
  193. data/facts/4.6/oraclelinux-8-x86_64.facts +0 -68
  194. data/facts/4.6/oraclelinux-9-x86_64.facts +0 -60
  195. data/facts/4.6/redhat-8-x86_64.facts +0 -64
  196. data/facts/4.6/redhat-9-x86_64.facts +0 -64
  197. data/facts/4.6/rocky-9-x86_64.facts +0 -64
  198. data/facts/4.6/ubuntu-20.04-x86_64.facts +0 -60
  199. data/facts/4.6/ubuntu-22.04-x86_64.facts +0 -60
  200. data/facts/4.6/windows-10-x86_64.facts +1 -44
  201. data/facts/4.6/windows-11-x86_64.facts +1 -44
  202. data/facts/4.6/windows-2019-x86_64.facts +1 -43
  203. data/facts/4.6/windows-2022-x86_64.facts +1 -44
  204. data/facts/4.7/almalinux-8-x86_64.facts +0 -59
  205. data/facts/4.7/almalinux-9-x86_64.facts +0 -59
  206. data/facts/4.7/archlinux-x86_64.facts +0 -54
  207. data/facts/4.7/centos-9-x86_64.facts +0 -62
  208. data/facts/4.7/debian-11-x86_64.facts +0 -58
  209. data/facts/4.7/debian-12-x86_64.facts +0 -58
  210. data/facts/4.7/fedora-36-x86_64.facts +0 -63
  211. data/facts/4.7/fedora-37-x86_64.facts +0 -63
  212. data/facts/4.7/fedora-38-x86_64.facts +0 -62
  213. data/facts/4.7/fedora-39-x86_64.facts +0 -62
  214. data/facts/4.7/gentoo-2-x86_64.facts +0 -65
  215. data/facts/4.7/openbsd-7-x86_64.facts +0 -31
  216. data/facts/4.7/opensuse-15-x86_64.facts +0 -54
  217. data/facts/4.7/oraclelinux-8-x86_64.facts +0 -68
  218. data/facts/4.7/oraclelinux-9-x86_64.facts +0 -60
  219. data/facts/4.7/redhat-8-x86_64.facts +0 -64
  220. data/facts/4.7/redhat-9-x86_64.facts +0 -64
  221. data/facts/4.7/rocky-9-x86_64.facts +0 -64
  222. data/facts/4.7/ubuntu-20.04-x86_64.facts +0 -60
  223. data/facts/4.7/ubuntu-22.04-x86_64.facts +0 -60
  224. data/facts/4.7/windows-10-x86_64.facts +1 -44
  225. data/facts/4.7/windows-11-x86_64.facts +1 -44
  226. data/facts/4.7/windows-2019-x86_64.facts +1 -43
  227. data/facts/4.7/windows-2022-x86_64.facts +1 -44
  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 +16 -2
  236. metadata +4 -18
  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: 53a466250e52842b1a9fc76c086fe1593619bc5062f8f328d31f55e53502ba0c
4
+ data.tar.gz: ea834e3ef4301cd337bf701b6a756368fc3f19f4d3e520757668fab823ee6859
5
5
  SHA512:
6
- metadata.gz: 2d8145338782bcb755d72bc58ace5285d5ac340ff6252598f04ad4cf95d1648d373afa5b602bf94c942e972c5d43ba1ff1f4e167f41c22c023d0795fe631062d
7
- data.tar.gz: fe5f1c7347394dad0505a9c2429dce5f0ece8beb6ab1679b82b8e269ecac8dc309cf7c42f158c1628b1f721c59acdb39097cdb934e2b96bcc41fdbbe42d55bff
6
+ metadata.gz: bdeb267e16c68f4a9838aa20e550cd8acb563b7a4521d54eaa37b06a37aaa5fee63cec197c2bb76462d7733d9630d61720dcb329b97b1a9ce651730bc8c389a1
7
+ data.tar.gz: f7a9786b5db64fb150de5269dbaaa92e5f491c704bb4db34702db68ff69f00e24f294fbff5dae405a04771c461cee80220ffed879bad0d00e413044c513d3fe6
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-10 08:58:13 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
@@ -80,12 +80,12 @@ RSpec/ExampleLength:
80
80
  RSpec/MultipleExpectations:
81
81
  Max: 7
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.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.0.0](https://rubygems.org/gems/facterdb/versions/3.0.0) (2024-06-10)
4
+
5
+ [Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.1.0...3.0.0)
6
+
7
+ **Breaking changes:**
8
+
9
+ - Drop deprecated self.get\_os\_facts\(\) [\#365](https://github.com/voxpupuli/facterdb/pull/365) ([bastelfreak](https://github.com/bastelfreak))
10
+ - Remove EoL CentOS 8 factsets [\#361](https://github.com/voxpupuli/facterdb/pull/361) ([bastelfreak](https://github.com/bastelfreak))
11
+ - Remove EoL CentOS 7 factsets [\#360](https://github.com/voxpupuli/facterdb/pull/360) ([bastelfreak](https://github.com/bastelfreak))
12
+ - Remove deprecated RedHat 7 facts [\#359](https://github.com/voxpupuli/facterdb/pull/359) ([bastelfreak](https://github.com/bastelfreak))
13
+ - Remove Legacy Facts [\#266](https://github.com/voxpupuli/facterdb/pull/266) ([smortex](https://github.com/smortex))
14
+
3
15
  ## [2.1.0](https://rubygems.org/gems/facterdb/versions/2.1.0) (2024-06-08)
4
16
 
5
17
  [Full Changelog](https://github.com/voxpupuli/facterdb/compare/2.0.1...2.1.0)
@@ -0,0 +1,127 @@
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
+ domain
25
+ fqdn
26
+ gid
27
+ hardwareisa
28
+ hardwaremodel
29
+ hostname
30
+ id
31
+ ipaddress
32
+ ipaddress6
33
+ lsbdistcodename
34
+ lsbdistdescription
35
+ lsbdistid
36
+ lsbdistrelease
37
+ lsbmajdistrelease
38
+ lsbminordistrelease
39
+ lsbrelease
40
+ macaddress
41
+ macosx_buildversion
42
+ macosx_productname
43
+ macosx_productversion
44
+ macosx_productversion_major
45
+ macosx_productversion_minor
46
+ manufacturer
47
+ memoryfree
48
+ memoryfree_mb
49
+ memorysize
50
+ memorysize_mb
51
+ netmask
52
+ netmask6
53
+ network
54
+ network6
55
+ operatingsystem
56
+ operatingsystemmajrelease
57
+ operatingsystemrelease
58
+ osfamily
59
+ physicalprocessorcount
60
+ processor\d+
61
+ processorcount
62
+ productname
63
+ rubyplatform
64
+ rubysitedir
65
+ rubyversion
66
+ scope6
67
+ selinux
68
+ selinux_config_mode
69
+ selinux_config_policy
70
+ selinux_current_mode
71
+ selinux_enforced
72
+ selinux_policyversion
73
+ serialnumber
74
+ sp_boot_mode
75
+ sp_boot_rom_version
76
+ sp_boot_volume
77
+ sp_cpu_type
78
+ sp_current_processor_speed
79
+ sp_kernel_version
80
+ sp_l2_cache_core
81
+ sp_l3_cache
82
+ sp_local_host_name
83
+ sp_machine_model
84
+ sp_machine_name
85
+ sp_number_processors
86
+ sp_os_version
87
+ sp_packages
88
+ sp_physical_memory
89
+ sp_platform_uuid
90
+ sp_secure_vm
91
+ sp_serial_number
92
+ sp_smc_version_system
93
+ sp_uptime
94
+ sp_user_name
95
+ swapencrypted
96
+ swapfree
97
+ swapfree_mb
98
+ swapsize
99
+ swapsize_mb
100
+ system32
101
+ uptime
102
+ uptime_days
103
+ uptime_hours
104
+ uptime_seconds
105
+ uuid
106
+ windows_display_version
107
+ windows_edition_id
108
+ windows_installation_type
109
+ windows_product_name
110
+ windows_release_id
111
+ xendomains
112
+ zonename
113
+ ].map { |re| Regexp.new("\\A#{re}\\z") }
114
+
115
+ if ARGV.empty?
116
+ warn "usage: #{$PROGRAM_NAME} facts..."
117
+ exit(1)
118
+ end
119
+
120
+ ARGV.each do |filename|
121
+ puts filename
122
+ facts = JSON.parse(File.read(filename))
123
+ facts.delete_if do |key|
124
+ LEGACY_FACTS.any? { |legacy_fact| key.match(legacy_fact) }
125
+ end
126
+ File.write(filename, "#{JSON.pretty_generate(facts)}\n")
127
+ 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