facterdb 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (660) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +2 -2
  3. data/.travis.yml +1 -1
  4. data/CHANGELOG.md +39 -0
  5. data/README.md +88 -83
  6. data/Rakefile +21 -7
  7. data/facts/1.6/archlinux-x86_64.facts +21 -34
  8. data/facts/1.6/centos-6-x86_64.facts +50 -49
  9. data/facts/1.6/centos-7-x86_64.facts +20 -21
  10. data/facts/1.6/debian-10-x86_64.facts +57 -0
  11. data/facts/1.6/debian-8-x86_64.facts +34 -29
  12. data/facts/1.6/debian-9-x86_64.facts +56 -0
  13. data/facts/1.6/fedora-28-x86_64.facts +52 -0
  14. data/facts/1.6/fedora-29-x86_64.facts +52 -0
  15. data/facts/1.6/fedora-30-x86_64.facts +52 -0
  16. data/facts/1.6/freebsd-11-x86_64.facts +15 -15
  17. data/facts/1.6/freebsd-12-x86_64.facts +50 -0
  18. data/facts/1.6/linuxmint-18-x86_64.facts +68 -0
  19. data/facts/1.6/linuxmint-19-x86_64.facts +58 -0
  20. data/facts/1.6/openbsd-6.2-i386.facts +62 -0
  21. data/facts/1.6/openbsd-6.2-x86_64.facts +62 -0
  22. data/facts/1.6/openbsd-6.3-i386.facts +62 -0
  23. data/facts/1.6/openbsd-6.3-x86_64.facts +62 -0
  24. data/facts/1.6/openbsd-6.4-x86_64.facts +62 -0
  25. data/facts/1.6/oraclelinux-6-x86_64.facts +50 -49
  26. data/facts/1.6/oraclelinux-7-x86_64.facts +20 -21
  27. data/facts/1.6/redhat-6-x86_64.facts +50 -49
  28. data/facts/1.6/redhat-7-x86_64.facts +20 -21
  29. data/facts/1.6/redhat-8-x86_64.facts +60 -0
  30. data/facts/1.6/scientific-6-x86_64.facts +50 -49
  31. data/facts/1.6/scientific-7-x86_64.facts +20 -21
  32. data/facts/1.6/sles-11-x86_64.facts +58 -51
  33. data/facts/1.6/sles-12-x86_64.facts +26 -41
  34. data/facts/1.6/ubuntu-14.04-x86_64.facts +12 -13
  35. data/facts/1.6/ubuntu-16.04-x86_64.facts +27 -27
  36. data/facts/1.6/ubuntu-18.04-x86_64.facts +18 -17
  37. data/facts/1.7/archlinux-x86_64.facts +31 -58
  38. data/facts/1.7/centos-6-x86_64.facts +67 -66
  39. data/facts/1.7/centos-7-x86_64.facts +26 -27
  40. data/facts/1.7/debian-10-x86_64.facts +73 -0
  41. data/facts/1.7/debian-8-x86_64.facts +41 -36
  42. data/facts/1.7/debian-9-x86_64.facts +72 -0
  43. data/facts/1.7/fedora-26-x86_64.facts +53 -53
  44. data/facts/1.7/fedora-28-x86_64.facts +71 -0
  45. data/facts/1.7/fedora-29-x86_64.facts +71 -0
  46. data/facts/1.7/fedora-30-x86_64.facts +71 -0
  47. data/facts/1.7/freebsd-11-x86_64.facts +23 -23
  48. data/facts/1.7/freebsd-12-x86_64.facts +64 -0
  49. data/facts/1.7/linuxmint-18-x86_64.facts +85 -0
  50. data/facts/1.7/linuxmint-19-x86_64.facts +81 -0
  51. data/facts/1.7/openbsd-6.2-i386.facts +69 -0
  52. data/facts/1.7/openbsd-6.2-x86_64.facts +69 -0
  53. data/facts/1.7/openbsd-6.3-i386.facts +69 -0
  54. data/facts/1.7/openbsd-6.3-x86_64.facts +69 -0
  55. data/facts/1.7/openbsd-6.4-x86_64.facts +69 -0
  56. data/facts/1.7/oraclelinux-6-x86_64.facts +67 -66
  57. data/facts/1.7/oraclelinux-7-x86_64.facts +26 -27
  58. data/facts/1.7/redhat-6-x86_64.facts +67 -66
  59. data/facts/1.7/redhat-7-x86_64.facts +26 -27
  60. data/facts/1.7/redhat-8-x86_64.facts +83 -0
  61. data/facts/1.7/scientific-6-x86_64.facts +67 -66
  62. data/facts/1.7/scientific-7-x86_64.facts +26 -27
  63. data/facts/1.7/sles-11-x86_64.facts +73 -71
  64. data/facts/1.7/sles-12-x86_64.facts +63 -60
  65. data/facts/1.7/ubuntu-14.04-x86_64.facts +13 -14
  66. data/facts/1.7/ubuntu-16.04-x86_64.facts +40 -37
  67. data/facts/1.7/ubuntu-18.04-x86_64.facts +24 -23
  68. data/facts/2.0/archlinux-x86_64.facts +47 -73
  69. data/facts/2.0/centos-6-x86_64.facts +62 -61
  70. data/facts/2.0/centos-7-x86_64.facts +27 -26
  71. data/facts/2.0/darwin-17-x86_64.facts +92 -0
  72. data/facts/2.0/darwin-18-x86_64.facts +91 -0
  73. data/facts/2.0/debian-10-x86_64.facts +75 -0
  74. data/facts/2.0/debian-8-x86_64.facts +75 -70
  75. data/facts/2.0/debian-9-x86_64.facts +66 -77
  76. data/facts/2.0/fedora-26-x86_64.facts +5 -19
  77. data/facts/2.0/fedora-28-x86_64.facts +71 -0
  78. data/facts/2.0/fedora-29-x86_64.facts +71 -0
  79. data/facts/2.0/fedora-30-x86_64.facts +71 -0
  80. data/facts/2.0/freebsd-11-x86_64.facts +46 -46
  81. data/facts/2.0/freebsd-12-x86_64.facts +65 -0
  82. data/facts/2.0/linuxmint-18-x86_64.facts +86 -0
  83. data/facts/2.0/linuxmint-19-x86_64.facts +82 -0
  84. data/facts/2.0/openbsd-6.2-i386.facts +70 -0
  85. data/facts/2.0/openbsd-6.2-x86_64.facts +70 -0
  86. data/facts/2.0/openbsd-6.3-i386.facts +70 -0
  87. data/facts/2.0/openbsd-6.3-x86_64.facts +70 -0
  88. data/facts/2.0/openbsd-6.4-x86_64.facts +70 -0
  89. data/facts/2.0/oraclelinux-6-x86_64.facts +62 -61
  90. data/facts/2.0/oraclelinux-7-x86_64.facts +27 -26
  91. data/facts/2.0/redhat-6-x86_64.facts +62 -61
  92. data/facts/2.0/redhat-7-x86_64.facts +27 -26
  93. data/facts/2.0/redhat-8-x86_64.facts +83 -0
  94. data/facts/2.0/scientific-6-x86_64.facts +62 -61
  95. data/facts/2.0/scientific-7-x86_64.facts +27 -26
  96. data/facts/2.0/sles-11-x86_64.facts +72 -70
  97. data/facts/2.0/sles-12-x86_64.facts +64 -68
  98. data/facts/2.0/ubuntu-14.04-x86_64.facts +13 -14
  99. data/facts/2.0/ubuntu-16.04-x86_64.facts +70 -67
  100. data/facts/2.0/ubuntu-18.04-x86_64.facts +63 -62
  101. data/facts/2.1/archlinux-x86_64.facts +57 -86
  102. data/facts/2.1/centos-6-x86_64.facts +69 -68
  103. data/facts/2.1/centos-7-x86_64.facts +28 -27
  104. data/facts/2.1/darwin-17-x86_64.facts +92 -0
  105. data/facts/2.1/darwin-18-x86_64.facts +91 -0
  106. data/facts/2.1/debian-10-x86_64.facts +92 -0
  107. data/facts/2.1/debian-8-x86_64.facts +90 -74
  108. data/facts/2.1/debian-9-x86_64.facts +77 -89
  109. data/facts/2.1/fedora-26-x86_64.facts +6 -28
  110. data/facts/2.1/fedora-28-x86_64.facts +85 -0
  111. data/facts/2.1/fedora-29-x86_64.facts +90 -0
  112. data/facts/2.1/fedora-30-x86_64.facts +90 -0
  113. data/facts/2.1/freebsd-11-x86_64.facts +45 -45
  114. data/facts/2.1/freebsd-12-x86_64.facts +65 -0
  115. data/facts/2.1/linuxmint-18-x86_64.facts +106 -0
  116. data/facts/2.1/linuxmint-19-x86_64.facts +95 -0
  117. data/facts/2.1/openbsd-6.2-i386.facts +72 -0
  118. data/facts/2.1/openbsd-6.2-x86_64.facts +72 -0
  119. data/facts/2.1/openbsd-6.3-i386.facts +72 -0
  120. data/facts/2.1/openbsd-6.3-x86_64.facts +72 -0
  121. data/facts/2.1/openbsd-6.4-x86_64.facts +72 -0
  122. data/facts/2.1/oraclelinux-6-x86_64.facts +69 -68
  123. data/facts/2.1/oraclelinux-7-x86_64.facts +28 -27
  124. data/facts/2.1/redhat-6-x86_64.facts +69 -68
  125. data/facts/2.1/redhat-7-x86_64.facts +28 -27
  126. data/facts/2.1/redhat-8-x86_64.facts +97 -0
  127. data/facts/2.1/scientific-6-x86_64.facts +69 -68
  128. data/facts/2.1/scientific-7-x86_64.facts +28 -27
  129. data/facts/2.1/sles-11-x86_64.facts +76 -79
  130. data/facts/2.1/sles-12-x86_64.facts +74 -89
  131. data/facts/2.1/ubuntu-14.04-x86_64.facts +13 -14
  132. data/facts/2.1/ubuntu-16.04-x86_64.facts +75 -81
  133. data/facts/2.1/ubuntu-18.04-x86_64.facts +74 -73
  134. data/facts/2.2/archlinux-x86_64.facts +76 -107
  135. data/facts/2.2/centos-6-x86_64.facts +90 -89
  136. data/facts/2.2/centos-7-x86_64.facts +33 -32
  137. data/facts/2.2/darwin-17-x86_64.facts +113 -0
  138. data/facts/2.2/darwin-18-x86_64.facts +112 -0
  139. data/facts/2.2/debian-10-x86_64.facts +123 -0
  140. data/facts/2.2/debian-8-x86_64.facts +115 -98
  141. data/facts/2.2/debian-9-x86_64.facts +100 -112
  142. data/facts/2.2/fedora-26-x86_64.facts +13 -14
  143. data/facts/2.2/fedora-28-x86_64.facts +107 -0
  144. data/facts/2.2/fedora-29-x86_64.facts +112 -0
  145. data/facts/2.2/fedora-30-x86_64.facts +112 -0
  146. data/facts/2.2/freebsd-11-x86_64.facts +63 -63
  147. data/facts/2.2/freebsd-12-x86_64.facts +86 -0
  148. data/facts/2.2/linuxmint-18-x86_64.facts +138 -0
  149. data/facts/2.2/linuxmint-19-x86_64.facts +127 -0
  150. data/facts/2.2/openbsd-6.2-i386.facts +140 -0
  151. data/facts/2.2/openbsd-6.2-x86_64.facts +140 -0
  152. data/facts/2.2/openbsd-6.3-i386.facts +140 -0
  153. data/facts/2.2/openbsd-6.3-x86_64.facts +140 -0
  154. data/facts/2.2/openbsd-6.4-x86_64.facts +140 -0
  155. data/facts/2.2/oraclelinux-6-x86_64.facts +90 -89
  156. data/facts/2.2/oraclelinux-7-x86_64.facts +33 -32
  157. data/facts/2.2/redhat-6-x86_64.facts +90 -89
  158. data/facts/2.2/redhat-7-x86_64.facts +33 -32
  159. data/facts/2.2/redhat-8-x86_64.facts +121 -0
  160. data/facts/2.2/scientific-6-x86_64.facts +90 -89
  161. data/facts/2.2/scientific-7-x86_64.facts +33 -32
  162. data/facts/2.2/sles-11-x86_64.facts +93 -96
  163. data/facts/2.2/sles-12-x86_64.facts +101 -93
  164. data/facts/2.2/ubuntu-14.04-x86_64.facts +16 -17
  165. data/facts/2.2/ubuntu-16.04-x86_64.facts +90 -95
  166. data/facts/2.2/ubuntu-18.04-x86_64.facts +90 -89
  167. data/facts/2.3/archlinux-x86_64.facts +73 -104
  168. data/facts/2.3/centos-6-x86_64.facts +96 -95
  169. data/facts/2.3/centos-7-x86_64.facts +33 -32
  170. data/facts/2.3/darwin-17-x86_64.facts +114 -0
  171. data/facts/2.3/darwin-18-x86_64.facts +113 -0
  172. data/facts/2.3/debian-10-x86_64.facts +124 -0
  173. data/facts/2.3/debian-8-x86_64.facts +116 -99
  174. data/facts/2.3/debian-9-x86_64.facts +102 -114
  175. data/facts/2.3/fedora-26-x86_64.facts +7 -8
  176. data/facts/2.3/fedora-28-x86_64.facts +108 -0
  177. data/facts/2.3/fedora-29-x86_64.facts +113 -0
  178. data/facts/2.3/fedora-30-x86_64.facts +113 -0
  179. data/facts/2.3/freebsd-11-x86_64.facts +48 -48
  180. data/facts/2.3/freebsd-12-x86_64.facts +87 -0
  181. data/facts/2.3/linuxmint-18-x86_64.facts +139 -0
  182. data/facts/2.3/linuxmint-19-x86_64.facts +128 -0
  183. data/facts/2.3/openbsd-6.2-i386.facts +143 -0
  184. data/facts/2.3/openbsd-6.2-x86_64.facts +143 -0
  185. data/facts/2.3/openbsd-6.3-i386.facts +143 -0
  186. data/facts/2.3/openbsd-6.3-x86_64.facts +143 -0
  187. data/facts/2.3/openbsd-6.4-x86_64.facts +143 -0
  188. data/facts/2.3/oraclelinux-6-x86_64.facts +96 -95
  189. data/facts/2.3/oraclelinux-7-x86_64.facts +33 -32
  190. data/facts/2.3/redhat-6-x86_64.facts +96 -95
  191. data/facts/2.3/redhat-7-x86_64.facts +33 -32
  192. data/facts/2.3/redhat-8-x86_64.facts +122 -0
  193. data/facts/2.3/scientific-6-x86_64.facts +96 -95
  194. data/facts/2.3/scientific-7-x86_64.facts +33 -32
  195. data/facts/2.3/sles-11-x86_64.facts +96 -99
  196. data/facts/2.3/sles-12-x86_64.facts +93 -85
  197. data/facts/2.3/ubuntu-14.04-x86_64.facts +16 -17
  198. data/facts/2.3/ubuntu-16.04-x86_64.facts +91 -96
  199. data/facts/2.3/ubuntu-18.04-x86_64.facts +91 -90
  200. data/facts/2.4/archlinux-x86_64.facts +79 -108
  201. data/facts/2.4/centos-6-x86_64.facts +90 -88
  202. data/facts/2.4/centos-7-x86_64.facts +34 -32
  203. data/facts/2.4/darwin-17-x86_64.facts +114 -0
  204. data/facts/2.4/darwin-18-x86_64.facts +113 -0
  205. data/facts/2.4/debian-10-x86_64.facts +124 -0
  206. data/facts/2.4/debian-8-x86_64.facts +117 -99
  207. data/facts/2.4/debian-9-x86_64.facts +103 -114
  208. data/facts/2.4/fedora-26-x86_64.facts +94 -127
  209. data/facts/2.4/fedora-28-x86_64.facts +110 -0
  210. data/facts/2.4/fedora-29-x86_64.facts +114 -0
  211. data/facts/2.4/fedora-30-x86_64.facts +114 -0
  212. data/facts/2.4/freebsd-11-x86_64.facts +58 -58
  213. data/facts/2.4/freebsd-12-x86_64.facts +87 -0
  214. data/facts/2.4/linuxmint-18-x86_64.facts +140 -0
  215. data/facts/2.4/linuxmint-19-x86_64.facts +129 -0
  216. data/facts/2.4/openbsd-6.2-i386.facts +143 -0
  217. data/facts/2.4/openbsd-6.2-x86_64.facts +143 -0
  218. data/facts/2.4/openbsd-6.3-i386.facts +143 -0
  219. data/facts/2.4/openbsd-6.3-x86_64.facts +143 -0
  220. data/facts/2.4/openbsd-6.4-x86_64.facts +143 -0
  221. data/facts/2.4/oraclelinux-6-x86_64.facts +90 -88
  222. data/facts/2.4/oraclelinux-7-x86_64.facts +34 -32
  223. data/facts/2.4/redhat-6-x86_64.facts +90 -88
  224. data/facts/2.4/redhat-7-x86_64.facts +34 -32
  225. data/facts/2.4/redhat-8-x86_64.facts +123 -0
  226. data/facts/2.4/scientific-6-x86_64.facts +90 -88
  227. data/facts/2.4/scientific-7-x86_64.facts +34 -32
  228. data/facts/2.4/sles-11-x86_64.facts +96 -98
  229. data/facts/2.4/sles-12-x86_64.facts +104 -44
  230. data/facts/2.4/ubuntu-14.04-x86_64.facts +17 -17
  231. data/facts/2.4/ubuntu-16.04-x86_64.facts +93 -96
  232. data/facts/2.4/ubuntu-18.04-x86_64.facts +92 -90
  233. data/facts/2.5/archlinux-x86_64.facts +98 -0
  234. data/facts/2.5/centos-6-x86_64.facts +91 -105
  235. data/facts/2.5/centos-7-x86_64.facts +57 -60
  236. data/facts/2.5/darwin-17-x86_64.facts +114 -0
  237. data/facts/2.5/darwin-18-x86_64.facts +113 -0
  238. data/facts/2.5/debian-10-x86_64.facts +124 -0
  239. data/facts/2.5/debian-8-x86_64.facts +121 -114
  240. data/facts/2.5/debian-9-x86_64.facts +103 -114
  241. data/facts/2.5/fedora-28-x86_64.facts +74 -74
  242. data/facts/2.5/fedora-29-x86_64.facts +114 -0
  243. data/facts/2.5/fedora-30-x86_64.facts +114 -0
  244. data/facts/2.5/freebsd-11-x86_64.facts +60 -60
  245. data/facts/2.5/freebsd-12-x86_64.facts +87 -0
  246. data/facts/2.5/linuxmint-18-x86_64.facts +140 -0
  247. data/facts/2.5/linuxmint-19-x86_64.facts +129 -0
  248. data/facts/2.5/openbsd-6.2-i386.facts +143 -0
  249. data/facts/2.5/openbsd-6.2-x86_64.facts +143 -0
  250. data/facts/2.5/openbsd-6.3-i386.facts +143 -0
  251. data/facts/2.5/openbsd-6.3-x86_64.facts +143 -0
  252. data/facts/2.5/openbsd-6.4-x86_64.facts +143 -0
  253. data/facts/2.5/oraclelinux-5-x86_64.facts +115 -117
  254. data/facts/2.5/oraclelinux-6-x86_64.facts +90 -94
  255. data/facts/2.5/oraclelinux-7-x86_64.facts +70 -78
  256. data/facts/2.5/redhat-5-x86_64.facts +109 -103
  257. data/facts/2.5/redhat-6-x86_64.facts +97 -111
  258. data/facts/2.5/redhat-7-x86_64.facts +66 -68
  259. data/facts/2.5/redhat-8-x86_64.facts +123 -0
  260. data/facts/2.5/scientific-5-x86_64.facts +109 -103
  261. data/facts/2.5/scientific-6-x86_64.facts +96 -92
  262. data/facts/2.5/scientific-7-x86_64.facts +62 -65
  263. data/facts/2.5/sles-11-x86_64.facts +100 -103
  264. data/facts/2.5/sles-12-x86_64.facts +94 -94
  265. data/facts/2.5/solaris-10-i86pc.facts +201 -0
  266. data/facts/2.5/ubuntu-14.04-x86_64.facts +100 -103
  267. data/facts/2.5/ubuntu-16.04-x86_64.facts +97 -102
  268. data/facts/2.5/ubuntu-18.04-x86_64.facts +92 -90
  269. data/facts/2.5/windows-2019-x86_64.facts +73 -0
  270. data/facts/3.0/centos-6-x86_64.facts +127 -163
  271. data/facts/3.0/centos-7-x86_64.facts +75 -66
  272. data/facts/3.0/oraclelinux-5-x86_64.facts +83 -121
  273. data/facts/3.0/oraclelinux-6-x86_64.facts +109 -127
  274. data/facts/3.0/oraclelinux-7-x86_64.facts +75 -66
  275. data/facts/3.0/redhat-5-x86_64.facts +81 -72
  276. data/facts/3.0/redhat-6-x86_64.facts +127 -163
  277. data/facts/3.0/redhat-7-x86_64.facts +75 -66
  278. data/facts/3.0/scientific-5-x86_64.facts +85 -76
  279. data/facts/3.0/scientific-6-x86_64.facts +126 -147
  280. data/facts/3.0/scientific-7-x86_64.facts +75 -66
  281. data/facts/3.0/windows-2019-x86_64.facts +143 -0
  282. data/facts/3.1/centos-6-x86_64.facts +138 -174
  283. data/facts/3.1/centos-7-x86_64.facts +83 -74
  284. data/facts/3.1/oraclelinux-5-x86_64.facts +93 -107
  285. data/facts/3.1/oraclelinux-6-x86_64.facts +120 -138
  286. data/facts/3.1/oraclelinux-7-x86_64.facts +83 -74
  287. data/facts/3.1/redhat-5-x86_64.facts +92 -79
  288. data/facts/3.1/redhat-6-x86_64.facts +138 -174
  289. data/facts/3.1/redhat-7-x86_64.facts +83 -74
  290. data/facts/3.1/scientific-5-x86_64.facts +96 -83
  291. data/facts/3.1/scientific-6-x86_64.facts +135 -156
  292. data/facts/3.1/scientific-7-x86_64.facts +83 -74
  293. data/facts/3.1/windows-2019-x86_64.facts +160 -0
  294. data/facts/3.10/centos-5-i386.facts +357 -0
  295. data/facts/3.10/centos-5-x86_64.facts +357 -0
  296. data/facts/3.10/centos-6-i386.facts +349 -0
  297. data/facts/3.10/centos-6-x86_64.facts +34 -34
  298. data/facts/3.10/centos-7-x86_64.facts +34 -34
  299. data/facts/3.10/darwin-15-x86_64.facts +398 -0
  300. data/facts/3.10/darwin-16-x86_64.facts +402 -0
  301. data/facts/3.10/darwin-17-x86_64.facts +423 -0
  302. data/facts/3.10/debian-8-x86_64.facts +162 -155
  303. data/facts/3.10/debian-9-x86_64.facts +122 -90
  304. data/facts/3.10/freebsd-11-amd64.facts +460 -0
  305. data/facts/3.10/freebsd-12-amd64.facts +460 -0
  306. data/facts/3.10/linuxmint-18-x86_64.facts +457 -0
  307. data/facts/3.10/openbsd-6.3-i386.facts +411 -0
  308. data/facts/3.10/openbsd-6.3-x86_64.facts +411 -0
  309. data/facts/3.10/oraclelinux-5-x86_64.facts +357 -0
  310. data/facts/3.10/oraclelinux-6-x86_64.facts +34 -34
  311. data/facts/3.10/oraclelinux-7-x86_64.facts +34 -34
  312. data/facts/3.10/redhat-5-i386.facts +357 -0
  313. data/facts/3.10/redhat-5-x86_64.facts +357 -0
  314. data/facts/3.10/redhat-6-i386.facts +349 -0
  315. data/facts/3.10/redhat-6-x86_64.facts +34 -34
  316. data/facts/3.10/redhat-7-x86_64.facts +34 -34
  317. data/facts/3.10/scientific-5-i386.facts +357 -0
  318. data/facts/3.10/scientific-5-x86_64.facts +357 -0
  319. data/facts/3.10/scientific-6-i386.facts +349 -0
  320. data/facts/3.10/scientific-6-x86_64.facts +34 -34
  321. data/facts/3.10/scientific-7-x86_64.facts +34 -34
  322. data/facts/3.10/sles-11-i386.facts +348 -0
  323. data/facts/3.10/sles-11-x86_64.facts +365 -0
  324. data/facts/3.10/sles-12-x86_64.facts +785 -0
  325. data/facts/3.10/ubuntu-14.04-x86_64.facts +33 -33
  326. data/facts/3.10/ubuntu-16.04-x86_64.facts +86 -86
  327. data/facts/3.10/windows-10-i386.facts +166 -0
  328. data/facts/3.10/windows-10-x86_64.facts +166 -0
  329. data/facts/3.10/windows-2012 r2-core-x86_64.facts +166 -0
  330. data/facts/3.10/windows-2012 r2-x86_64.facts +166 -0
  331. data/facts/3.10/windows-2012-x86_64.facts +166 -0
  332. data/facts/3.10/windows-2016-x86_64.facts +166 -0
  333. data/facts/3.10/windows-2019-x86_64.facts +166 -0
  334. data/facts/3.11/centos-5-i386.facts +359 -0
  335. data/facts/3.11/centos-5-x86_64.facts +359 -0
  336. data/facts/3.11/centos-6-i386.facts +351 -0
  337. data/facts/3.11/centos-6-x86_64.facts +73 -41
  338. data/facts/3.11/centos-7-i386.facts +427 -0
  339. data/facts/3.11/centos-7-x86_64.facts +145 -50
  340. data/facts/3.11/darwin-16-x86_64.facts +457 -0
  341. data/facts/3.11/darwin-17-x86_64.facts +427 -0
  342. data/facts/3.11/darwin-18-x86_64.facts +451 -0
  343. data/facts/3.11/debian-10-x86_64.facts +426 -0
  344. data/facts/3.11/debian-8-x86_64.facts +162 -155
  345. data/facts/3.11/debian-9-x86_64.facts +202 -83
  346. data/facts/3.11/fedora-28-x86_64.facts +418 -0
  347. data/facts/3.11/fedora-29-x86_64.facts +530 -0
  348. data/facts/3.11/freebsd-11-amd64.facts +463 -0
  349. data/facts/3.11/freebsd-12-amd64.facts +463 -0
  350. data/facts/3.11/linuxmint-18-x86_64.facts +461 -0
  351. data/facts/3.11/linuxmint-19-x86_64.facts +426 -0
  352. data/facts/3.11/opensuse-15-x86_64.facts +584 -0
  353. data/facts/3.11/oraclelinux-5-x86_64.facts +359 -0
  354. data/facts/3.11/oraclelinux-6-i386.facts +351 -0
  355. data/facts/3.11/oraclelinux-6-x86_64.facts +73 -41
  356. data/facts/3.11/oraclelinux-7-i386.facts +427 -0
  357. data/facts/3.11/oraclelinux-7-x86_64.facts +145 -50
  358. data/facts/3.11/redhat-5-i386.facts +359 -0
  359. data/facts/3.11/redhat-5-x86_64.facts +359 -0
  360. data/facts/3.11/redhat-6-i386.facts +351 -0
  361. data/facts/3.11/redhat-6-x86_64.facts +73 -41
  362. data/facts/3.11/redhat-7-i386.facts +427 -0
  363. data/facts/3.11/redhat-7-x86_64.facts +145 -50
  364. data/facts/3.11/redhat-8-x86_64.facts +504 -0
  365. data/facts/3.11/scientific-5-i386.facts +359 -0
  366. data/facts/3.11/scientific-5-x86_64.facts +359 -0
  367. data/facts/3.11/scientific-6-i386.facts +351 -0
  368. data/facts/3.11/scientific-6-x86_64.facts +73 -41
  369. data/facts/3.11/scientific-7-i386.facts +427 -0
  370. data/facts/3.11/scientific-7-x86_64.facts +145 -50
  371. data/facts/3.11/sles-11-i386.facts +351 -0
  372. data/facts/3.11/sles-11-x86_64.facts +429 -0
  373. data/facts/3.11/sles-12-x86_64.facts +873 -0
  374. data/facts/3.11/solaris-10-i86pc.facts +603 -0
  375. data/facts/3.11/ubuntu-14.04-x86_64.facts +36 -36
  376. data/facts/3.11/ubuntu-16.04-x86_64.facts +86 -86
  377. data/facts/3.11/ubuntu-18.04-x86_64.facts +157 -70
  378. data/facts/3.11/windows-10-i386.facts +176 -0
  379. data/facts/3.11/windows-10-x86_64.facts +176 -0
  380. data/facts/3.11/windows-2012 r2-core-x86_64.facts +174 -0
  381. data/facts/3.11/windows-2012 r2-x86_64.facts +174 -0
  382. data/facts/3.11/windows-2012-x86_64.facts +174 -0
  383. data/facts/3.11/windows-2016-x86_64.facts +176 -0
  384. data/facts/3.11/windows-2019-x86_64.facts +176 -0
  385. data/facts/3.12/centos-6-x86_64.facts +351 -0
  386. data/facts/3.12/centos-7-x86_64.facts +427 -0
  387. data/facts/3.12/darwin-16-x86_64.facts +440 -0
  388. data/facts/3.12/darwin-17-x86_64.facts +461 -0
  389. data/facts/3.12/debian-8-x86_64.facts +452 -0
  390. data/facts/3.12/debian-9-x86_64.facts +472 -0
  391. data/facts/3.12/fedora-28-x86_64.facts +418 -0
  392. data/facts/3.12/fedora-29-x86_64.facts +423 -0
  393. data/facts/3.12/freebsd-11-amd64.facts +493 -0
  394. data/facts/3.12/freebsd-12-amd64.facts +493 -0
  395. data/facts/3.12/linuxmint-18-x86_64.facts +461 -0
  396. data/facts/3.12/linuxmint-19-x86_64.facts +426 -0
  397. data/facts/3.12/openbsd-6.4-x86_64.facts +412 -0
  398. data/facts/3.12/oraclelinux-6-x86_64.facts +351 -0
  399. data/facts/3.12/oraclelinux-7-x86_64.facts +427 -0
  400. data/facts/3.12/redhat-6-x86_64.facts +351 -0
  401. data/facts/3.12/redhat-7-x86_64.facts +427 -0
  402. data/facts/3.12/redhat-8-x86_64.facts +409 -0
  403. data/facts/3.12/scientific-6-x86_64.facts +351 -0
  404. data/facts/3.12/scientific-7-x86_64.facts +427 -0
  405. data/facts/3.12/sles-11-x86_64.facts +368 -0
  406. data/facts/3.12/sles-12-x86_64.facts +789 -0
  407. data/facts/3.12/ubuntu-14.04-x86_64.facts +460 -0
  408. data/facts/3.12/ubuntu-16.04-x86_64.facts +432 -0
  409. data/facts/3.12/ubuntu-18.04-x86_64.facts +432 -0
  410. data/facts/3.12/windows-10-i386.facts +168 -0
  411. data/facts/3.12/windows-10-x86_64.facts +168 -0
  412. data/facts/3.12/windows-2012 r2-core-x86_64.facts +168 -0
  413. data/facts/3.12/windows-2012 r2-x86_64.facts +168 -0
  414. data/facts/3.12/windows-2012-x86_64.facts +168 -0
  415. data/facts/3.12/windows-2016-x86_64.facts +168 -0
  416. data/facts/3.12/windows-2019-x86_64.facts +168 -0
  417. data/facts/3.13/archlinux-x86_64.facts +421 -0
  418. data/facts/3.13/centos-6-x86_64.facts +351 -0
  419. data/facts/3.13/centos-7-x86_64.facts +427 -0
  420. data/facts/3.13/darwin-16-x86_64.facts +423 -0
  421. data/facts/3.13/darwin-17-x86_64.facts +444 -0
  422. data/facts/3.13/darwin-18-x86_64.facts +434 -0
  423. data/facts/3.13/debian-8-x86_64.facts +452 -0
  424. data/facts/3.13/debian-9-x86_64.facts +472 -0
  425. data/facts/3.13/fedora-28-x86_64.facts +418 -0
  426. data/facts/3.13/fedora-29-x86_64.facts +423 -0
  427. data/facts/3.13/freebsd-11-amd64.facts +493 -0
  428. data/facts/3.13/freebsd-12-amd64.facts +493 -0
  429. data/facts/3.13/linuxmint-18-x86_64.facts +461 -0
  430. data/facts/3.13/linuxmint-19-x86_64.facts +426 -0
  431. data/facts/3.13/oraclelinux-6-x86_64.facts +351 -0
  432. data/facts/3.13/oraclelinux-7-x86_64.facts +427 -0
  433. data/facts/3.13/redhat-6-x86_64.facts +351 -0
  434. data/facts/3.13/redhat-7-x86_64.facts +427 -0
  435. data/facts/3.13/redhat-8-x86_64.facts +415 -0
  436. data/facts/3.13/scientific-6-x86_64.facts +351 -0
  437. data/facts/3.13/scientific-7-x86_64.facts +427 -0
  438. data/facts/3.13/sles-11-x86_64.facts +368 -0
  439. data/facts/3.13/sles-12-x86_64.facts +789 -0
  440. data/facts/3.13/ubuntu-14.04-x86_64.facts +460 -0
  441. data/facts/3.13/ubuntu-16.04-x86_64.facts +432 -0
  442. data/facts/3.13/ubuntu-18.04-x86_64.facts +432 -0
  443. data/facts/3.13/windows-10-i386.facts +168 -0
  444. data/facts/3.13/windows-10-x86_64.facts +168 -0
  445. data/facts/3.13/windows-2012 r2-core-x86_64.facts +168 -0
  446. data/facts/3.13/windows-2012 r2-x86_64.facts +168 -0
  447. data/facts/3.13/windows-2012-x86_64.facts +168 -0
  448. data/facts/3.13/windows-2016-x86_64.facts +168 -0
  449. data/facts/3.13/windows-2019-x86_64.facts +168 -0
  450. data/facts/3.14/centos-6-x86_64.facts +351 -0
  451. data/facts/3.14/centos-7-x86_64.facts +427 -0
  452. data/facts/3.14/darwin-16-x86_64.facts +406 -0
  453. data/facts/3.14/darwin-17-x86_64.facts +427 -0
  454. data/facts/3.14/darwin-18-x86_64.facts +417 -0
  455. data/facts/3.14/debian-8-x86_64.facts +452 -0
  456. data/facts/3.14/debian-9-x86_64.facts +472 -0
  457. data/facts/3.14/fedora-28-x86_64.facts +418 -0
  458. data/facts/3.14/fedora-29-x86_64.facts +423 -0
  459. data/facts/3.14/fedora-30-x86_64.facts +423 -0
  460. data/facts/3.14/freebsd-11-amd64.facts +485 -0
  461. data/facts/3.14/freebsd-12-amd64.facts +494 -0
  462. data/facts/3.14/linuxmint-18-x86_64.facts +461 -0
  463. data/facts/3.14/linuxmint-19-x86_64.facts +426 -0
  464. data/facts/3.14/oraclelinux-6-x86_64.facts +351 -0
  465. data/facts/3.14/oraclelinux-7-x86_64.facts +427 -0
  466. data/facts/3.14/redhat-6-x86_64.facts +351 -0
  467. data/facts/3.14/redhat-7-x86_64.facts +427 -0
  468. data/facts/3.14/redhat-8-x86_64.facts +415 -0
  469. data/facts/3.14/scientific-6-x86_64.facts +351 -0
  470. data/facts/3.14/scientific-7-x86_64.facts +427 -0
  471. data/facts/3.14/sles-11-x86_64.facts +368 -0
  472. data/facts/3.14/sles-12-x86_64.facts +789 -0
  473. data/facts/3.14/ubuntu-14.04-x86_64.facts +460 -0
  474. data/facts/3.14/ubuntu-16.04-x86_64.facts +432 -0
  475. data/facts/3.14/ubuntu-18.04-x86_64.facts +432 -0
  476. data/facts/3.14/windows-10-i386.facts +176 -0
  477. data/facts/3.14/windows-10-x86_64.facts +176 -0
  478. data/facts/3.14/windows-2012 r2-core-x86_64.facts +174 -0
  479. data/facts/3.14/windows-2012 r2-x86_64.facts +174 -0
  480. data/facts/3.14/windows-2012-x86_64.facts +174 -0
  481. data/facts/3.14/windows-2016-x86_64.facts +176 -0
  482. data/facts/3.14/windows-2019-x86_64.facts +176 -0
  483. data/facts/3.3/centos-6-x86_64.facts +138 -174
  484. data/facts/3.3/centos-7-x86_64.facts +85 -76
  485. data/facts/3.3/oraclelinux-5-x86_64.facts +93 -107
  486. data/facts/3.3/oraclelinux-6-x86_64.facts +119 -137
  487. data/facts/3.3/oraclelinux-7-x86_64.facts +85 -76
  488. data/facts/3.3/redhat-5-x86_64.facts +92 -79
  489. data/facts/3.3/redhat-6-x86_64.facts +138 -174
  490. data/facts/3.3/redhat-7-x86_64.facts +85 -76
  491. data/facts/3.3/scientific-5-x86_64.facts +96 -83
  492. data/facts/3.3/scientific-6-x86_64.facts +135 -156
  493. data/facts/3.3/scientific-7-x86_64.facts +85 -76
  494. data/facts/3.3/windows-2019-x86_64.facts +160 -0
  495. data/facts/3.4/oraclelinux-5-x86_64.facts +93 -107
  496. data/facts/3.4/oraclelinux-6-x86_64.facts +123 -105
  497. data/facts/3.4/oraclelinux-7-x86_64.facts +99 -109
  498. data/facts/3.4/redhat-5-x86_64.facts +92 -79
  499. data/facts/3.4/redhat-6-x86_64.facts +62 -62
  500. data/facts/3.4/redhat-7-x86_64.facts +110 -111
  501. data/facts/3.4/scientific-5-x86_64.facts +96 -83
  502. data/facts/3.4/scientific-6-x86_64.facts +97 -82
  503. data/facts/3.4/scientific-7-x86_64.facts +85 -85
  504. data/facts/3.4/sles-11-x86_64.facts +146 -149
  505. data/facts/3.4/sles-12-x86_64.facts +507 -136
  506. data/facts/3.4/windows-2019-x86_64.facts +162 -0
  507. data/facts/3.5/oraclelinux-5-x86_64.facts +97 -111
  508. data/facts/3.5/oraclelinux-6-x86_64.facts +129 -110
  509. data/facts/3.5/oraclelinux-7-x86_64.facts +120 -134
  510. data/facts/3.5/redhat-5-x86_64.facts +94 -81
  511. data/facts/3.5/redhat-6-x86_64.facts +63 -63
  512. data/facts/3.5/redhat-7-x86_64.facts +140 -125
  513. data/facts/3.5/scientific-5-x86_64.facts +100 -87
  514. data/facts/3.5/scientific-6-x86_64.facts +97 -82
  515. data/facts/3.5/scientific-7-x86_64.facts +100 -100
  516. data/facts/3.5/sles-11-x86_64.facts +164 -165
  517. data/facts/3.5/sles-12-x86_64.facts +544 -152
  518. data/facts/3.5/windows-2019-x86_64.facts +162 -0
  519. data/facts/3.6/centos-6-x86_64.facts +36 -36
  520. data/facts/3.6/centos-7-x86_64.facts +32 -32
  521. data/facts/3.6/oraclelinux-5-x86_64.facts +97 -111
  522. data/facts/3.6/oraclelinux-6-x86_64.facts +36 -36
  523. data/facts/3.6/oraclelinux-7-x86_64.facts +32 -32
  524. data/facts/{2.4 → 3.6}/pcs-6-x86_64.facts +0 -0
  525. data/facts/3.6/redhat-5-x86_64.facts +92 -79
  526. data/facts/3.6/redhat-6-x86_64.facts +36 -36
  527. data/facts/3.6/redhat-7-x86_64.facts +32 -32
  528. data/facts/3.6/scientific-5-x86_64.facts +100 -87
  529. data/facts/3.6/scientific-6-x86_64.facts +36 -36
  530. data/facts/3.6/scientific-7-x86_64.facts +32 -32
  531. data/facts/3.6/sles-11-x86_64.facts +167 -168
  532. data/facts/3.6/sles-12-x86_64.facts +547 -155
  533. data/facts/3.6/windows-2019-x86_64.facts +162 -0
  534. data/facts/3.7/centos-6-x86_64.facts +143 -180
  535. data/facts/3.7/centos-7-x86_64.facts +146 -162
  536. data/facts/3.7/debian-8-x86_64.facts +203 -222
  537. data/facts/3.7/linuxmint-18-x86_64.facts +450 -0
  538. data/facts/3.7/oraclelinux-5-x86_64.facts +97 -111
  539. data/facts/3.7/oraclelinux-6-x86_64.facts +124 -142
  540. data/facts/3.7/oraclelinux-7-x86_64.facts +176 -206
  541. data/facts/3.7/redhat-5-x86_64.facts +94 -81
  542. data/facts/3.7/redhat-6-x86_64.facts +143 -180
  543. data/facts/3.7/redhat-7-x86_64.facts +187 -188
  544. data/facts/3.7/scientific-5-x86_64.facts +100 -87
  545. data/facts/3.7/scientific-6-x86_64.facts +140 -162
  546. data/facts/3.7/scientific-7-x86_64.facts +154 -170
  547. data/facts/3.7/sles-11-x86_64.facts +164 -165
  548. data/facts/3.7/sles-12-x86_64.facts +549 -157
  549. data/facts/3.7/ubuntu-14.04-x86_64.facts +131 -149
  550. data/facts/3.7/ubuntu-16.04-x86_64.facts +162 -223
  551. data/facts/3.7/windows-2019-x86_64.facts +162 -0
  552. data/facts/3.8/centos-6-x86_64.facts +142 -179
  553. data/facts/3.8/centos-7-x86_64.facts +149 -165
  554. data/facts/3.8/debian-8-x86_64.facts +205 -224
  555. data/facts/3.8/debian-9-x86_64.facts +204 -218
  556. data/facts/3.8/linuxmint-18-x86_64.facts +450 -0
  557. data/facts/3.8/openbsd-6.2-i386.facts +417 -0
  558. data/facts/3.8/openbsd-6.2-x86_64.facts +417 -0
  559. data/facts/3.8/oraclelinux-5-x86_64.facts +98 -112
  560. data/facts/3.8/oraclelinux-6-x86_64.facts +147 -189
  561. data/facts/3.8/oraclelinux-7-x86_64.facts +177 -207
  562. data/facts/3.8/redhat-5-x86_64.facts +92 -79
  563. data/facts/3.8/redhat-6-x86_64.facts +144 -181
  564. data/facts/3.8/redhat-7-x86_64.facts +188 -189
  565. data/facts/3.8/scientific-5-x86_64.facts +99 -86
  566. data/facts/3.8/scientific-6-x86_64.facts +141 -163
  567. data/facts/3.8/scientific-7-x86_64.facts +155 -171
  568. data/facts/3.8/sles-11-x86_64.facts +165 -166
  569. data/facts/3.8/sles-12-x86_64.facts +550 -158
  570. data/facts/3.8/ubuntu-14.04-x86_64.facts +132 -150
  571. data/facts/3.8/ubuntu-16.04-x86_64.facts +163 -224
  572. data/facts/3.8/windows-2019-x86_64.facts +162 -0
  573. data/facts/3.9/{archlinux-4-x86_64.facts → archlinux-x86_64.facts} +0 -0
  574. data/facts/3.9/centos-5-i386.facts +356 -0
  575. data/facts/3.9/centos-5-x86_64.facts +356 -0
  576. data/facts/3.9/centos-6-i386.facts +348 -0
  577. data/facts/3.9/centos-6-x86_64.facts +34 -34
  578. data/facts/3.9/centos-7-x86_64.facts +34 -34
  579. data/facts/3.9/darwin-15-x86_64.facts +415 -0
  580. data/facts/3.9/darwin-16-x86_64.facts +419 -0
  581. data/facts/3.9/darwin-17-x86_64.facts +440 -0
  582. data/facts/3.9/debian-8-x86_64.facts +162 -155
  583. data/facts/3.9/debian-9-x86_64.facts +120 -88
  584. data/facts/3.9/freebsd-11-amd64.facts +123 -123
  585. data/facts/3.9/freebsd-12-amd64.facts +460 -0
  586. data/facts/3.9/linuxmint-18-x86_64.facts +456 -0
  587. data/facts/3.9/oraclelinux-5-x86_64.facts +356 -0
  588. data/facts/3.9/oraclelinux-6-x86_64.facts +34 -34
  589. data/facts/3.9/oraclelinux-7-x86_64.facts +34 -34
  590. data/facts/3.9/redhat-5-i386.facts +356 -0
  591. data/facts/3.9/redhat-5-x86_64.facts +356 -0
  592. data/facts/3.9/redhat-6-i386.facts +348 -0
  593. data/facts/3.9/redhat-6-x86_64.facts +34 -34
  594. data/facts/3.9/redhat-7-x86_64.facts +34 -34
  595. data/facts/3.9/scientific-5-i386.facts +356 -0
  596. data/facts/3.9/scientific-5-x86_64.facts +356 -0
  597. data/facts/3.9/scientific-6-i386.facts +348 -0
  598. data/facts/3.9/scientific-6-x86_64.facts +34 -34
  599. data/facts/3.9/scientific-7-x86_64.facts +34 -34
  600. data/facts/3.9/sles-11-i386.facts +347 -0
  601. data/facts/3.9/sles-11-x86_64.facts +364 -0
  602. data/facts/3.9/sles-12-x86_64.facts +784 -0
  603. data/facts/3.9/{solaris-10-i386.facts → solaris-10-i86pc.facts} +0 -5
  604. data/facts/3.9/ubuntu-14.04-x86_64.facts +34 -34
  605. data/facts/3.9/ubuntu-16.04-x86_64.facts +86 -86
  606. data/facts/3.9/windows-10-i386.facts +166 -0
  607. data/facts/3.9/windows-10-x86_64.facts +166 -0
  608. data/facts/3.9/windows-2012 r2-core-x86_64.facts +166 -0
  609. data/facts/3.9/windows-2012 r2-x86_64.facts +166 -0
  610. data/facts/3.9/windows-2012-x86_64.facts +166 -0
  611. data/facts/3.9/windows-2016-x86_64.facts +166 -0
  612. data/facts/3.9/windows-2019-x86_64.facts +166 -0
  613. data/facts/Vagrantfile +78 -46
  614. data/facts/get_facts.sh +184 -63
  615. data/lib/facterdb/version.rb +1 -1
  616. data/rakelib/rhel_alts.rake +24 -0
  617. data/spec/facterdb_spec.rb +252 -114
  618. data/spec/facts_spec.rb +81 -0
  619. data/spec/spec_helper.rb +9 -2
  620. metadata +328 -45
  621. data/facts/1.6/fedora-26-x86_64.facts +0 -72
  622. data/facts/1.6/solaris-11-x86_64.facts +0 -60
  623. data/facts/1.7/solaris-11-x86_64.facts +0 -80
  624. data/facts/2.0/solaris-11-x86_64.facts +0 -82
  625. data/facts/2.1/solaris-11-x86_64.facts +0 -82
  626. data/facts/2.2/solaris-11-x86_64.facts +0 -105
  627. data/facts/2.4/fedora-20-x86_64.facts +0 -116
  628. data/facts/2.4/fedora-21-x86_64.facts +0 -123
  629. data/facts/2.5/amazon-2017-x86_64.facts +0 -61
  630. data/facts/2.5/archlinux-4-x86_64.facts +0 -98
  631. data/facts/2.5/fedora-20-x86_64.facts +0 -116
  632. data/facts/2.5/fedora-21-x86_64.facts +0 -123
  633. data/facts/3.0/fedora-20-x86_64.facts +0 -116
  634. data/facts/3.0/fedora-21-x86_64.facts +0 -123
  635. data/facts/3.0/fedora-26-x86_64.facts +0 -143
  636. data/facts/3.1/fedora-20-x86_64.facts +0 -116
  637. data/facts/3.1/fedora-21-x86_64.facts +0 -123
  638. data/facts/3.1/fedora-26-x86_64.facts +0 -143
  639. data/facts/3.2/fedora-20-x86_64.facts +0 -116
  640. data/facts/3.2/fedora-21-x86_64.facts +0 -123
  641. data/facts/3.2/fedora-26-x86_64.facts +0 -143
  642. data/facts/3.3/fedora-20-x86_64.facts +0 -116
  643. data/facts/3.3/fedora-21-x86_64.facts +0 -123
  644. data/facts/3.3/fedora-26-x86_64.facts +0 -143
  645. data/facts/3.4/fedora-20-x86_64.facts +0 -116
  646. data/facts/3.4/fedora-21-x86_64.facts +0 -123
  647. data/facts/3.4/fedora-26-x86_64.facts +0 -143
  648. data/facts/3.5/fedora-20-x86_64.facts +0 -116
  649. data/facts/3.5/fedora-21-x86_64.facts +0 -123
  650. data/facts/3.5/fedora-26-x86_64.facts +0 -143
  651. data/facts/3.6/fedora-20-x86_64.facts +0 -116
  652. data/facts/3.6/fedora-21-x86_64.facts +0 -123
  653. data/facts/3.6/fedora-26-x86_64.facts +0 -143
  654. data/facts/3.7/fedora-20-x86_64.facts +0 -116
  655. data/facts/3.7/fedora-21-x86_64.facts +0 -123
  656. data/facts/3.7/fedora-26-x86_64.facts +0 -143
  657. data/facts/3.8/fedora-20-x86_64.facts +0 -116
  658. data/facts/3.8/fedora-21-x86_64.facts +0 -123
  659. data/facts/3.8/fedora-26-x86_64.facts +0 -143
  660. data/facts/3.9/solaris-10-x86_64.facts +0 -679
@@ -1,5 +1,5 @@
1
1
  module FacterDB
2
2
  module Version
3
- STRING = '0.7.0'
3
+ STRING = '0.8.0'
4
4
  end
5
5
  end
@@ -0,0 +1,24 @@
1
+ desc 'Create RHEL/OracleLinux/Scientific factsets from CentOS factsets'
2
+ task :rhel_alts do
3
+ Dir[File.join(__dir__, '..', 'facts', '*', 'centos-*-x86_64.facts')].each do |f|
4
+ centos_factset = File.read(f)
5
+
6
+ rhel_path = f.gsub(%r{centos-}, 'redhat-')
7
+ File.open(rhel_path, 'w') do |fd|
8
+ fd.puts centos_factset.gsub(%r{CentOS}, 'RedHat')
9
+ end
10
+
11
+ oracle_path = f.gsub(%r{centos-}, 'oraclelinux-')
12
+ File.open(oracle_path, 'w') do |fd|
13
+ fd.puts centos_factset.gsub(%r{CentOS}, 'OracleLinux')
14
+ end
15
+
16
+ # Scientific isn't going to be updated to 8
17
+ if File.basename(f)[%r{-(\d+)-}, 1].to_i <= 7
18
+ scientific_path = f.gsub(%r{centos-}, 'scientific-')
19
+ File.open(scientific_path, 'w') do |fd|
20
+ fd.puts centos_factset.gsub(%r{CentOS}, 'Scientific')
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,181 +1,319 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe 'FacterDB' do
3
+ describe FacterDB do
4
+ shared_examples 'returns a result' do
5
+ it 'returns an Array' do
6
+ expect(result).to be_an_instance_of(Array)
7
+ end
8
+
9
+ it 'returns at least 1 result' do
10
+ expect(result).not_to be_empty
11
+ end
12
+
13
+ it 'returns an Array of Hashes' do
14
+ expect(result).to all(be_an_instance_of(Hash))
15
+ end
16
+ end
17
+
18
+ let(:facts_24_path) { File.join(project_dir, 'facts', '2.4') }
19
+ let(:facts_24_count) { Dir.glob(File.join(facts_24_path,'*.facts')).count }
20
+ let(:facts_23_path) { File.join(project_dir, 'facts', '2.3') }
21
+ let(:facts_23_count) { Dir.glob(File.join(facts_23_path,'*.facts')).count }
4
22
 
5
- describe 'database' do
23
+ describe '.use_defaultdb?' do
24
+ subject { described_class.use_defaultdb? }
6
25
 
7
26
  before(:each) do
8
- ENV['FACTERDB_SKIP_DEFAULTDB'] = nil
9
- FacterDB.instance_variable_set(:@database, nil)
27
+ ENV.delete('FACTERDB_SKIP_DEFAULTDB')
28
+ end
29
+
30
+ context 'when FACTERDB_SKIP_DEFAULTDB environment variable is unset' do
31
+ it { is_expected.to be_truthy }
10
32
  end
11
33
 
12
- it 'skip default facts' do
13
- ENV['FACTERDB_SKIP_DEFAULTDB'] = 'true'
14
- expect(FacterDB.use_defaultdb?).to eq(false)
34
+ context 'when FACTERDB_SKIP_DEFAULTDB environment variable is set' do
35
+ before(:each) do
36
+ ENV['FACTERDB_SKIP_DEFAULTDB'] = '1'
37
+ end
38
+
39
+ it { is_expected.to be_falsey }
15
40
  end
41
+ end
42
+
43
+ describe '.external_fact_files' do
44
+ subject(:file_count) { described_class.external_fact_files.count }
16
45
 
17
- it 'use default facts' do
18
- expect(FacterDB.use_defaultdb?).to eq(true)
46
+ let(:non_directory_path) { File.join('this', 'is', 'not', 'a', 'directory') }
47
+
48
+ before(:each) do
49
+ ENV.delete('FACTERDB_SEARCH_PATHS')
50
+ allow(File).to receive(:directory?).and_call_original
51
+ allow(File).to receive(:directory?).with(non_directory_path).and_return(false)
19
52
  end
20
53
 
21
- it '#external_fact_files with env variable' do
22
- ENV['FACTERDB_SEARCH_PATHS'] = File.join(project_dir, 'facts', '2.4')
23
- expect(FacterDB.external_fact_files.count).to be >= 50
54
+ context 'without an argument or FACTERDB_SEARCH_PATHS environment variable set' do
55
+ it { is_expected.to be_zero }
24
56
  end
25
57
 
26
- it '#external_fact_files with env variable and multiple paths' do
27
- ENV['FACTERDB_SEARCH_PATHS'] = [File.join(project_dir, 'facts', '2.4'), File.join(project_dir, 'facts', '2.3')].join(File::PATH_SEPARATOR)
28
- expect(FacterDB.external_fact_files.count).to be >= 150
58
+ context 'when the FACTERDB_SEARCH_PATHS environment variable is set' do
59
+ it 'supports a single path' do
60
+ ENV['FACTERDB_SEARCH_PATHS'] = facts_24_path
61
+
62
+ expect(file_count).to eq(facts_24_count)
63
+ end
64
+
65
+ it 'supports multiple paths delimited by the OS path separator' do
66
+ ENV['FACTERDB_SEARCH_PATHS'] = [facts_24_path, facts_23_path].join(File::PATH_SEPARATOR)
67
+
68
+ expect(file_count).to eq(facts_24_count + facts_23_count)
69
+ end
70
+
71
+ it 'ignores paths that are not a directory' do
72
+ ENV['FACTERDB_SEARCH_PATHS'] = [facts_24_path, non_directory_path].join(File::PATH_SEPARATOR)
73
+
74
+ object = defined?(Warning) ? Warning : Kernel
75
+ allow(object).to receive(:warn).and_call_original
76
+ allow(object).to receive(:warn).with(a_string_matching(%r{is not a directory}))
77
+
78
+ expect(file_count).to eq(facts_24_count)
79
+ end
29
80
  end
30
81
 
31
- it '#external_fact_files with argument' do
32
- ENV['FACTERDB_SEARCH_PATHS'] = nil
33
- path = File.join(project_dir, 'facts', '2.4')
34
- expect(FacterDB.external_fact_files(path).count).to be >= 102
82
+ # TODO: There is no parameter validation in this method
83
+ context 'when passed an argument' do
84
+ subject(:file_count) { described_class.external_fact_files(fact_paths).count }
85
+
86
+ context 'that is a single path' do
87
+ let(:fact_paths) { facts_24_path }
88
+
89
+ it 'returns the paths to the fact sets in the specified path' do
90
+ expect(file_count).to eq(facts_24_count)
91
+ end
92
+ end
93
+
94
+ context 'that is multiple paths delimited by the OS path separator' do
95
+ let(:fact_paths) { [facts_24_path, facts_23_path].join(File::PATH_SEPARATOR) }
96
+
97
+ it 'returns the paths to the fact sets in all the specified paths' do
98
+ expect(file_count).to eq(facts_24_count + facts_23_count)
99
+ end
100
+ end
101
+
102
+ context 'that contains a path that is not a directory' do
103
+ let(:fact_paths) { [facts_24_path, non_directory_path].join(File::PATH_SEPARATOR) }
104
+
105
+ it 'ignores the path that is not a directory' do
106
+ object = defined?(Warning) ? Warning : Kernel
107
+ allow(object).to receive(:warn).and_call_original
108
+ allow(object).to receive(:warn).with(a_string_matching(%r{is not a directory}))
109
+
110
+ expect(file_count).to eq(facts_24_count)
111
+ end
112
+ end
35
113
  end
114
+ end
115
+
116
+ describe '.default_fact_files' do
117
+ subject(:default_fact_files) { described_class.default_fact_files }
36
118
 
37
- it '#external_fact_files without argument or env variable' do
38
- ENV['FACTERDB_SEARCH_PATHS'] = nil
39
- expect(FacterDB.external_fact_files.count).to be 0
119
+ before(:each) do
120
+ ENV.delete('FACTERDB_SKIP_DEFAULTDB')
40
121
  end
41
122
 
42
- it '#default_fact_files' do
43
- expect(FacterDB.default_fact_files.count).to be >= 1000
123
+ context 'when FACTERDB_SKIP_DEFAULTDB environment variable is not set' do
124
+ it 'returns the list of fact sets included in FacterDB' do
125
+ # This test is a little naive but works
126
+ expect(default_fact_files.count).to be >= 1000
127
+ end
44
128
  end
45
129
 
46
- it '#facterdb_fact_files' do
47
- ENV['FACTERDB_SEARCH_PATHS'] = File.join(project_dir, 'facts', '2.4')
48
- external_count = FacterDB.external_fact_files.count
49
- internal_count = FacterDB.default_fact_files.count
50
- # because we call unique on the array we remove the duplicates which skews this test
51
- expect(FacterDB.facterdb_fact_files.count).to eq(internal_count)
130
+ context 'when FACTERDB_SKIP_DEFAULTDB environment variable is set' do
131
+ before(:each) do
132
+ ENV['FACTERDB_SKIP_DEFAULTDB'] = '1'
133
+ end
134
+
135
+ it { is_expected.to be_empty }
52
136
  end
137
+ end
138
+
139
+ describe '.facterdb_fact_files' do
140
+ subject(:facterdb_fact_files) { described_class.facterdb_fact_files }
53
141
 
54
- it '#database' do
55
- ENV['FACTERDB_SEARCH_PATHS'] = nil
56
- # to be an incomprehensible string
57
- expect(FacterDB.database).to be_a String
142
+ before(:each) do
143
+ ENV.delete('FACTERDB_SKIP_DEFAULTDB')
58
144
  end
59
145
 
60
- it '#database with external paths' do
61
- ENV['FACTERDB_SEARCH_PATHS'] = File.join(project_dir, 'facts', '2.4')
62
- # to be an incomprehensible string
63
- expect(FacterDB.database).to be_a String
146
+ after(:each) do
147
+ ENV.delete('FACTERDB_SEARCH_PATHS')
64
148
  end
65
149
 
66
- it 'without internal paths' do
67
- ENV['FACTERDB_SKIP_DEFAULTDB'] = 'true'
68
- ENV['FACTERDB_SEARCH_PATHS'] = nil
69
- expect(FacterDB.facterdb_fact_files).to eq([])
150
+ it 'returns the deduplicated combination of .default_fact_files and .external_fact_files' do
151
+ ENV['FACTERDB_SEARCH_PATHS'] = facts_24_path
152
+
153
+ expect(facterdb_fact_files.count).to eq(described_class.default_fact_files.count)
70
154
  end
71
155
 
72
- describe :windows do
156
+ context 'with no loaded fact sets' do
73
157
  before(:each) do
74
- stub_const("File::PATH_SEPARATOR", ";")
75
- stub_const("File::ALT_SEPARATOR", '\\')
76
- stub_const("File::SEPARATOR", '/')
77
- allow(File).to receive(:directory?).and_return(true)
158
+ ENV['FACTERDB_SKIP_DEFAULTDB'] = '1'
159
+ ENV.delete('FACTERDB_SEARCH_PATHS')
78
160
  end
79
161
 
80
- it '#external_fact_files with env variable and multiple paths' do
81
- ENV['FACTERDB_SEARCH_PATHS'] = [File.join(project_dir, 'facts', '2.4').gsub('/', '\\'), File.join(project_dir, 'facts', '2.3').gsub('/', '\\')].join(File::PATH_SEPARATOR)
82
- expect(FacterDB.external_fact_files.count).to be >= 150
162
+ it { is_expected.to be_empty }
163
+ end
164
+ end
165
+
166
+ describe '.database' do
167
+ subject(:database) { described_class.database }
168
+
169
+ before(:each) do
170
+ ENV.delete('FACTERDB_SKIP_DEFAULTDB')
171
+ ENV.delete('FACTERDB_SEARCH_PATHS')
172
+ FacterDB.instance_variable_set(:@database, nil)
173
+ end
174
+
175
+ it 'returns a String' do
176
+ expect(database).to be_an_instance_of(String)
177
+ end
178
+
179
+ it 'is parsable JSON' do
180
+ expect { JSON.parse(database) }.not_to raise_error
181
+ end
182
+
183
+ context 'when FACTERDB_INJECT_SOURCE environment variable is set' do
184
+ subject(:json_database) { JSON.parse(database) }
185
+
186
+ before(:each) do
187
+ ENV['FACTERDB_INJECT_SOURCE'] = '1'
83
188
  end
84
189
 
85
- it '#external_fact_files with env variable' do
86
- ENV['FACTERDB_SEARCH_PATHS'] = File.join(project_dir, 'facts', '2.4').gsub('/', '\\')
87
- expect(FacterDB.external_fact_files.count).to be >= 50
190
+ it 'contains a "_facterdb_filename" key in each fact set' do
191
+ expect(json_database).to all(include('_facterdb_filename' => anything))
88
192
  end
89
193
 
90
- it '#external_fact_files with argument' do
91
- ENV['FACTERDB_SEARCH_PATHS'] = nil
92
- path = File.join(project_dir, 'facts', '2.4').gsub('/', '\\')
93
- expect(FacterDB.external_fact_files(path).count).to be >= 102
194
+ it 'contains a "_facterdb_path" key in each fact set' do
195
+ expect(json_database).to all(include('_facterdb_path' => anything))
94
196
  end
95
197
  end
96
198
  end
97
199
 
98
- describe '#get_os_facts' do
99
- context 'without parameters' do
100
- subject { FacterDB.get_os_facts() }
101
- it "Should return an array of hashes with at least 1 element" do
102
- expect(subject.class).to eq Array
103
- expect(subject.size).not_to eq(0)
104
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
105
- end
200
+ describe '.get_os_facts' do
201
+ subject(:result) { FacterDB.get_os_facts(facter_version, filter) }
202
+
203
+ before(:each) do
204
+ object = defined?(Warning) ? Warning : Kernel
205
+ allow(object).to receive(:warn).and_call_original
206
+ allow(object).to receive(:warn).with(a_string_matching(%r{`get_os_facts` is deprecated}))
106
207
  end
107
208
 
108
209
  context 'without parameters' do
109
- subject { FacterDB.get_os_facts() }
110
- it "Should return an array of hashes with at least 1 element" do
111
- expect(subject.class).to eq Array
112
- expect(subject.size).not_to eq(0)
113
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
114
- end
210
+ subject(:result) { FacterDB.get_os_facts() }
211
+
212
+ include_examples 'returns a result'
115
213
  end
116
214
 
117
- context 'with an Array filter' do
118
- subject { FacterDB.get_os_facts('*', [{:osfamily => 'Debian'}]) }
119
- it "Should return an array of hashes with at least 1 element" do
120
- expect(subject.class).to eq Array
121
- expect(subject.size).not_to eq(0)
122
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
215
+ context 'when matching all Facter versions' do
216
+ let(:facter_version) { '*' }
217
+
218
+ context 'with an Array filter' do
219
+ let(:filter) { [{ :osfamily => 'Debian' }] }
220
+
221
+ include_examples 'returns a result'
123
222
  end
124
- end
125
223
 
126
- context 'with a Hash filter' do
127
- subject { FacterDB.get_os_facts('*', {:osfamily => 'Debian'}) }
128
- it "Should return an array of hashes with at least 1 element" do
129
- expect(subject.class).to eq Array
130
- expect(subject.size).not_to eq(0)
131
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
224
+ context 'with a Hash filter' do
225
+ let(:filter) { { :osfamily => 'Debian' } }
226
+
227
+ include_examples 'returns a result'
228
+ end
229
+
230
+ context 'with a String filter' do
231
+ let(:filter) { 'osfamily=Debian' }
232
+
233
+ include_examples 'returns a result'
234
+ end
235
+
236
+ context 'with a filter of an unsupported type' do
237
+ let(:filter) { true }
238
+
239
+ it 'raises an error' do
240
+ expect { result }.to raise_error(%r{filter must be either})
241
+ end
132
242
  end
133
243
  end
134
244
 
135
- context 'with a String filter' do
136
- subject { FacterDB.get_os_facts('*', 'osfamily=Debian') }
137
- it "Should return an array of hashes with at least 1 element" do
138
- expect(subject.class).to eq Array
139
- expect(subject.size).not_to eq(0)
140
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
245
+ context 'when matching a specific facter version' do
246
+ let(:facter_version) { '2.4.0' }
247
+
248
+ shared_examples 'returns only the specified version' do
249
+ it 'only includes fact sets for the specified version' do
250
+ expect(result).to all(include(:facterversion => match(%r{\A2\.4})))
251
+ end
252
+ end
253
+
254
+ context 'with an Array filter' do
255
+ let(:filter) { [{ :osfamily => 'Debian' }] }
256
+
257
+ include_examples 'returns a result'
258
+ include_examples 'returns only the specified version'
259
+ end
260
+
261
+ context 'with a Hash filter' do
262
+ let(:filter) { { :osfamily => 'Debian' } }
263
+
264
+ include_examples 'returns a result'
265
+ include_examples 'returns only the specified version'
266
+ end
267
+
268
+ context 'with a String filter' do
269
+ let(:filter) { 'osfamily=Debian' }
270
+
271
+ include_examples 'returns a result'
272
+ include_examples 'returns only the specified version'
273
+ end
274
+
275
+ context 'with a filter of an unsupported type' do
276
+ let(:filter) { true }
277
+
278
+ it 'raises an error' do
279
+ expect { result }.to raise_error(%r{filter must be either})
280
+ end
141
281
  end
142
282
  end
143
283
  end
144
284
 
145
- describe '#get_facts' do
285
+ describe '.get_facts' do
286
+ subject(:result) { FacterDB.get_facts(filter) }
287
+
288
+ let(:filter) { nil }
289
+
146
290
  context 'without parameters' do
147
- subject { FacterDB.get_facts() }
148
- it "Should return an array of hashes with at least 1 element" do
149
- expect(subject.class).to eq Array
150
- expect(subject.size).not_to eq(0)
151
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
152
- end
291
+ include_examples "returns a result"
153
292
  end
154
293
 
155
294
  context 'with an Array filter' do
156
- subject { FacterDB.get_facts([{:osfamily => 'Debian'}]) }
157
- it "Should return an array of hashes with at least 1 element" do
158
- expect(subject.class).to eq Array
159
- expect(subject.size).not_to eq(0)
160
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
161
- end
295
+ let(:filter) { [:osfamily => 'Debian'] }
296
+
297
+ include_examples "returns a result"
162
298
  end
163
299
 
164
300
  context 'with a Hash filter' do
165
- subject { FacterDB.get_facts({:osfamily => 'Debian'}) }
166
- it "Should return an array of hashes with at least 1 element" do
167
- expect(subject.class).to eq Array
168
- expect(subject.size).not_to eq(0)
169
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
170
- end
301
+ let(:filter) { { :osfamily => 'Debian' } }
302
+
303
+ include_examples "returns a result"
171
304
  end
172
305
 
173
306
  context 'with a String filter' do
174
- subject { FacterDB.get_facts('osfamily=Debian') }
175
- it "Should return an array of hashes with at least 1 element" do
176
- expect(subject.class).to eq Array
177
- expect(subject.size).not_to eq(0)
178
- expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
307
+ let(:filter) { 'osfamily=Debian' }
308
+
309
+ include_examples "returns a result"
310
+ end
311
+
312
+ context 'with a filter of an unsupported type' do
313
+ let(:filter) { true }
314
+
315
+ it 'raises an error' do
316
+ expect { result }.to raise_error(%r{filter must be either})
179
317
  end
180
318
  end
181
319
  end