facterdb 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (414) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +3 -0
  3. data/Gemfile +9 -0
  4. data/LICENSE +201 -0
  5. data/README.md +84 -0
  6. data/Rakefile +5 -0
  7. data/facterdb.gemspec +24 -0
  8. data/facts/1.6/archlinux-i386.facts +56 -0
  9. data/facts/1.6/archlinux-x86_64.facts +56 -0
  10. data/facts/1.6/centos-5-i386.facts +68 -0
  11. data/facts/1.6/centos-5-x86_64.facts +68 -0
  12. data/facts/1.6/centos-6-i386.facts +61 -0
  13. data/facts/1.6/centos-6-x86_64.facts +61 -0
  14. data/facts/1.6/centos-7-i386.facts +52 -0
  15. data/facts/1.6/centos-7-x86_64.facts +52 -0
  16. data/facts/1.6/debian-6-i386.facts +66 -0
  17. data/facts/1.6/debian-6-x86_64.facts +66 -0
  18. data/facts/1.6/debian-7-i386.facts +67 -0
  19. data/facts/1.6/debian-7-x86_64.facts +67 -0
  20. data/facts/1.6/debian-8-i386.facts +67 -0
  21. data/facts/1.6/debian-8-x86_64.facts +67 -0
  22. data/facts/1.6/fedora-19-i386.facts +44 -0
  23. data/facts/1.6/fedora-19-x86_64.facts +44 -0
  24. data/facts/1.6/freebsd-10-i386.facts +57 -0
  25. data/facts/1.6/freebsd-10-x86_64.facts +57 -0
  26. data/facts/1.6/freebsd-9-i386.facts +57 -0
  27. data/facts/1.6/freebsd-9-x86_64.facts +57 -0
  28. data/facts/1.6/gentoo-i386.facts +46 -0
  29. data/facts/1.6/gentoo-x86_64.facts +46 -0
  30. data/facts/1.6/opensuse-12-i386.facts +55 -0
  31. data/facts/1.6/opensuse-12-x86_64.facts +55 -0
  32. data/facts/1.6/opensuse-13-i386.facts +55 -0
  33. data/facts/1.6/opensuse-13-x86_64.facts +55 -0
  34. data/facts/1.6/oraclelinux-5-i386.facts +68 -0
  35. data/facts/1.6/oraclelinux-5-x86_64.facts +68 -0
  36. data/facts/1.6/oraclelinux-6-i386.facts +61 -0
  37. data/facts/1.6/oraclelinux-6-x86_64.facts +61 -0
  38. data/facts/1.6/oraclelinux-7-i386.facts +52 -0
  39. data/facts/1.6/oraclelinux-7-x86_64.facts +52 -0
  40. data/facts/1.6/redhat-5-i386.facts +68 -0
  41. data/facts/1.6/redhat-5-x86_64.facts +68 -0
  42. data/facts/1.6/redhat-6-i386.facts +61 -0
  43. data/facts/1.6/redhat-6-x86_64.facts +61 -0
  44. data/facts/1.6/redhat-7-i386.facts +52 -0
  45. data/facts/1.6/redhat-7-x86_64.facts +52 -0
  46. data/facts/1.6/scientific-5-i386.facts +68 -0
  47. data/facts/1.6/scientific-5-x86_64.facts +68 -0
  48. data/facts/1.6/scientific-6-i386.facts +61 -0
  49. data/facts/1.6/scientific-6-x86_64.facts +61 -0
  50. data/facts/1.6/scientific-7-i386.facts +52 -0
  51. data/facts/1.6/scientific-7-x86_64.facts +52 -0
  52. data/facts/1.6/sles-11-i386.facts +61 -0
  53. data/facts/1.6/sles-11-x86_64.facts +61 -0
  54. data/facts/1.6/solaris-11-x86_64.facts +60 -0
  55. data/facts/1.6/ubuntu-10.04-i386.facts +66 -0
  56. data/facts/1.6/ubuntu-10.04-x86_64.facts +66 -0
  57. data/facts/1.6/ubuntu-12.04-i386.facts +67 -0
  58. data/facts/1.6/ubuntu-12.04-x86_64.facts +67 -0
  59. data/facts/1.6/ubuntu-14.04-i386.facts +67 -0
  60. data/facts/1.6/ubuntu-14.04-x86_64.facts +67 -0
  61. data/facts/1.6/ubuntu-14.10-i386.facts +67 -0
  62. data/facts/1.6/ubuntu-14.10-x86_64.facts +67 -0
  63. data/facts/1.6/ubuntu-15.04-i386.facts +67 -0
  64. data/facts/1.6/ubuntu-15.04-x86_64.facts +67 -0
  65. data/facts/1.7/archlinux-i386.facts +82 -0
  66. data/facts/1.7/archlinux-x86_64.facts +82 -0
  67. data/facts/1.7/centos-5-i386.facts +82 -0
  68. data/facts/1.7/centos-5-x86_64.facts +82 -0
  69. data/facts/1.7/centos-6-i386.facts +77 -0
  70. data/facts/1.7/centos-6-x86_64.facts +77 -0
  71. data/facts/1.7/centos-7-i386.facts +75 -0
  72. data/facts/1.7/centos-7-x86_64.facts +75 -0
  73. data/facts/1.7/debian-6-i386.facts +88 -0
  74. data/facts/1.7/debian-6-x86_64.facts +88 -0
  75. data/facts/1.7/debian-7-i386.facts +84 -0
  76. data/facts/1.7/debian-7-x86_64.facts +84 -0
  77. data/facts/1.7/debian-8-i386.facts +87 -0
  78. data/facts/1.7/debian-8-x86_64.facts +87 -0
  79. data/facts/1.7/fedora-19-i386.facts +67 -0
  80. data/facts/1.7/fedora-19-x86_64.facts +67 -0
  81. data/facts/1.7/freebsd-10-i386.facts +76 -0
  82. data/facts/1.7/freebsd-10-x86_64.facts +76 -0
  83. data/facts/1.7/freebsd-9-i386.facts +76 -0
  84. data/facts/1.7/freebsd-9-x86_64.facts +76 -0
  85. data/facts/1.7/gentoo-i386.facts +70 -0
  86. data/facts/1.7/gentoo-x86_64.facts +70 -0
  87. data/facts/1.7/opensuse-12-i386.facts +70 -0
  88. data/facts/1.7/opensuse-12-x86_64.facts +70 -0
  89. data/facts/1.7/opensuse-13-i386.facts +67 -0
  90. data/facts/1.7/opensuse-13-x86_64.facts +67 -0
  91. data/facts/1.7/oraclelinux-5-i386.facts +82 -0
  92. data/facts/1.7/oraclelinux-5-x86_64.facts +82 -0
  93. data/facts/1.7/oraclelinux-6-i386.facts +77 -0
  94. data/facts/1.7/oraclelinux-6-x86_64.facts +77 -0
  95. data/facts/1.7/oraclelinux-7-i386.facts +75 -0
  96. data/facts/1.7/oraclelinux-7-x86_64.facts +75 -0
  97. data/facts/1.7/redhat-5-i386.facts +82 -0
  98. data/facts/1.7/redhat-5-x86_64.facts +82 -0
  99. data/facts/1.7/redhat-6-i386.facts +77 -0
  100. data/facts/1.7/redhat-6-x86_64.facts +77 -0
  101. data/facts/1.7/redhat-7-i386.facts +75 -0
  102. data/facts/1.7/redhat-7-x86_64.facts +75 -0
  103. data/facts/1.7/scientific-5-i386.facts +82 -0
  104. data/facts/1.7/scientific-5-x86_64.facts +82 -0
  105. data/facts/1.7/scientific-6-i386.facts +77 -0
  106. data/facts/1.7/scientific-6-x86_64.facts +77 -0
  107. data/facts/1.7/scientific-7-i386.facts +75 -0
  108. data/facts/1.7/scientific-7-x86_64.facts +75 -0
  109. data/facts/1.7/sles-11-i386.facts +82 -0
  110. data/facts/1.7/sles-11-x86_64.facts +82 -0
  111. data/facts/1.7/solaris-11-x86_64.facts +80 -0
  112. data/facts/1.7/ubuntu-10.04-i386.facts +87 -0
  113. data/facts/1.7/ubuntu-10.04-x86_64.facts +87 -0
  114. data/facts/1.7/ubuntu-12.04-i386.facts +89 -0
  115. data/facts/1.7/ubuntu-12.04-x86_64.facts +89 -0
  116. data/facts/1.7/ubuntu-14.04-i386.facts +83 -0
  117. data/facts/1.7/ubuntu-14.04-x86_64.facts +83 -0
  118. data/facts/1.7/ubuntu-14.10-i386.facts +83 -0
  119. data/facts/1.7/ubuntu-14.10-x86_64.facts +83 -0
  120. data/facts/1.7/ubuntu-15.04-i386.facts +83 -0
  121. data/facts/1.7/ubuntu-15.04-x86_64.facts +83 -0
  122. data/facts/2.0/archlinux-i386.facts +83 -0
  123. data/facts/2.0/archlinux-x86_64.facts +83 -0
  124. data/facts/2.0/centos-5-i386.facts +81 -0
  125. data/facts/2.0/centos-5-x86_64.facts +81 -0
  126. data/facts/2.0/centos-6-i386.facts +76 -0
  127. data/facts/2.0/centos-6-x86_64.facts +76 -0
  128. data/facts/2.0/centos-7-i386.facts +74 -0
  129. data/facts/2.0/centos-7-x86_64.facts +74 -0
  130. data/facts/2.0/debian-6-i386.facts +87 -0
  131. data/facts/2.0/debian-6-x86_64.facts +87 -0
  132. data/facts/2.0/debian-7-i386.facts +83 -0
  133. data/facts/2.0/debian-7-x86_64.facts +83 -0
  134. data/facts/2.0/debian-8-i386.facts +88 -0
  135. data/facts/2.0/debian-8-x86_64.facts +88 -0
  136. data/facts/2.0/fedora-19-i386.facts +66 -0
  137. data/facts/2.0/fedora-19-x86_64.facts +66 -0
  138. data/facts/2.0/freebsd-10-i386.facts +75 -0
  139. data/facts/2.0/freebsd-10-x86_64.facts +75 -0
  140. data/facts/2.0/freebsd-9-i386.facts +75 -0
  141. data/facts/2.0/freebsd-9-x86_64.facts +75 -0
  142. data/facts/2.0/gentoo-i386.facts +71 -0
  143. data/facts/2.0/gentoo-x86_64.facts +71 -0
  144. data/facts/2.0/opensuse-12-i386.facts +69 -0
  145. data/facts/2.0/opensuse-12-x86_64.facts +69 -0
  146. data/facts/2.0/opensuse-13-i386.facts +66 -0
  147. data/facts/2.0/opensuse-13-x86_64.facts +66 -0
  148. data/facts/2.0/oraclelinux-5-i386.facts +81 -0
  149. data/facts/2.0/oraclelinux-5-x86_64.facts +81 -0
  150. data/facts/2.0/oraclelinux-6-i386.facts +76 -0
  151. data/facts/2.0/oraclelinux-6-x86_64.facts +76 -0
  152. data/facts/2.0/oraclelinux-7-i386.facts +74 -0
  153. data/facts/2.0/oraclelinux-7-x86_64.facts +74 -0
  154. data/facts/2.0/redhat-5-i386.facts +81 -0
  155. data/facts/2.0/redhat-5-x86_64.facts +81 -0
  156. data/facts/2.0/redhat-6-i386.facts +76 -0
  157. data/facts/2.0/redhat-6-x86_64.facts +76 -0
  158. data/facts/2.0/redhat-7-i386.facts +74 -0
  159. data/facts/2.0/redhat-7-x86_64.facts +74 -0
  160. data/facts/2.0/scientific-5-i386.facts +81 -0
  161. data/facts/2.0/scientific-5-x86_64.facts +81 -0
  162. data/facts/2.0/scientific-6-i386.facts +76 -0
  163. data/facts/2.0/scientific-6-x86_64.facts +76 -0
  164. data/facts/2.0/scientific-7-i386.facts +74 -0
  165. data/facts/2.0/scientific-7-x86_64.facts +74 -0
  166. data/facts/2.0/sles-11-i386.facts +81 -0
  167. data/facts/2.0/sles-11-x86_64.facts +81 -0
  168. data/facts/2.0/solaris-11-x86_64.facts +82 -0
  169. data/facts/2.0/ubuntu-10.04-i386.facts +86 -0
  170. data/facts/2.0/ubuntu-10.04-x86_64.facts +86 -0
  171. data/facts/2.0/ubuntu-12.04-i386.facts +88 -0
  172. data/facts/2.0/ubuntu-12.04-x86_64.facts +88 -0
  173. data/facts/2.0/ubuntu-14.04-i386.facts +84 -0
  174. data/facts/2.0/ubuntu-14.04-x86_64.facts +84 -0
  175. data/facts/2.0/ubuntu-14.10-i386.facts +84 -0
  176. data/facts/2.0/ubuntu-14.10-x86_64.facts +84 -0
  177. data/facts/2.0/ubuntu-15.04-i386.facts +82 -0
  178. data/facts/2.0/ubuntu-15.04-x86_64.facts +82 -0
  179. data/facts/2.1/archlinux-i386.facts +99 -0
  180. data/facts/2.1/archlinux-x86_64.facts +99 -0
  181. data/facts/2.1/centos-5-i386.facts +92 -0
  182. data/facts/2.1/centos-5-x86_64.facts +92 -0
  183. data/facts/2.1/centos-6-i386.facts +88 -0
  184. data/facts/2.1/centos-6-x86_64.facts +88 -0
  185. data/facts/2.1/centos-7-i386.facts +92 -0
  186. data/facts/2.1/centos-7-x86_64.facts +92 -0
  187. data/facts/2.1/debian-6-i386.facts +102 -0
  188. data/facts/2.1/debian-6-x86_64.facts +102 -0
  189. data/facts/2.1/debian-7-i386.facts +98 -0
  190. data/facts/2.1/debian-7-x86_64.facts +98 -0
  191. data/facts/2.1/debian-8-i386.facts +105 -0
  192. data/facts/2.1/debian-8-x86_64.facts +105 -0
  193. data/facts/2.1/fedora-19-i386.facts +84 -0
  194. data/facts/2.1/fedora-19-x86_64.facts +84 -0
  195. data/facts/2.1/freebsd-10-i386.facts +75 -0
  196. data/facts/2.1/freebsd-10-x86_64.facts +75 -0
  197. data/facts/2.1/freebsd-9-i386.facts +75 -0
  198. data/facts/2.1/freebsd-9-x86_64.facts +75 -0
  199. data/facts/2.1/gentoo-i386.facts +96 -0
  200. data/facts/2.1/gentoo-x86_64.facts +96 -0
  201. data/facts/2.1/opensuse-12-i386.facts +81 -0
  202. data/facts/2.1/opensuse-12-x86_64.facts +81 -0
  203. data/facts/2.1/opensuse-13-i386.facts +85 -0
  204. data/facts/2.1/opensuse-13-x86_64.facts +85 -0
  205. data/facts/2.1/oraclelinux-5-i386.facts +92 -0
  206. data/facts/2.1/oraclelinux-5-x86_64.facts +92 -0
  207. data/facts/2.1/oraclelinux-6-i386.facts +88 -0
  208. data/facts/2.1/oraclelinux-6-x86_64.facts +88 -0
  209. data/facts/2.1/oraclelinux-7-i386.facts +92 -0
  210. data/facts/2.1/oraclelinux-7-x86_64.facts +92 -0
  211. data/facts/2.1/redhat-5-i386.facts +92 -0
  212. data/facts/2.1/redhat-5-x86_64.facts +92 -0
  213. data/facts/2.1/redhat-6-i386.facts +88 -0
  214. data/facts/2.1/redhat-6-x86_64.facts +88 -0
  215. data/facts/2.1/redhat-7-i386.facts +92 -0
  216. data/facts/2.1/redhat-7-x86_64.facts +92 -0
  217. data/facts/2.1/scientific-5-i386.facts +92 -0
  218. data/facts/2.1/scientific-5-x86_64.facts +92 -0
  219. data/facts/2.1/scientific-6-i386.facts +88 -0
  220. data/facts/2.1/scientific-6-x86_64.facts +88 -0
  221. data/facts/2.1/scientific-7-i386.facts +92 -0
  222. data/facts/2.1/scientific-7-x86_64.facts +92 -0
  223. data/facts/2.1/sles-11-i386.facts +94 -0
  224. data/facts/2.1/sles-11-x86_64.facts +94 -0
  225. data/facts/2.1/solaris-11-x86_64.facts +82 -0
  226. data/facts/2.1/ubuntu-10.04-i386.facts +101 -0
  227. data/facts/2.1/ubuntu-10.04-x86_64.facts +101 -0
  228. data/facts/2.1/ubuntu-12.04-i386.facts +103 -0
  229. data/facts/2.1/ubuntu-12.04-x86_64.facts +103 -0
  230. data/facts/2.1/ubuntu-14.04-i386.facts +99 -0
  231. data/facts/2.1/ubuntu-14.04-x86_64.facts +99 -0
  232. data/facts/2.1/ubuntu-14.10-i386.facts +100 -0
  233. data/facts/2.1/ubuntu-14.10-x86_64.facts +100 -0
  234. data/facts/2.1/ubuntu-15.04-i386.facts +90 -0
  235. data/facts/2.1/ubuntu-15.04-x86_64.facts +90 -0
  236. data/facts/2.2/archlinux-i386.facts +126 -0
  237. data/facts/2.2/archlinux-x86_64.facts +126 -0
  238. data/facts/2.2/centos-5-i386.facts +125 -0
  239. data/facts/2.2/centos-5-x86_64.facts +125 -0
  240. data/facts/2.2/centos-6-i386.facts +111 -0
  241. data/facts/2.2/centos-6-x86_64.facts +111 -0
  242. data/facts/2.2/centos-7-i386.facts +115 -0
  243. data/facts/2.2/centos-7-x86_64.facts +115 -0
  244. data/facts/2.2/debian-6-i386.facts +134 -0
  245. data/facts/2.2/debian-6-x86_64.facts +134 -0
  246. data/facts/2.2/debian-7-i386.facts +130 -0
  247. data/facts/2.2/debian-7-x86_64.facts +130 -0
  248. data/facts/2.2/debian-8-i386.facts +137 -0
  249. data/facts/2.2/debian-8-x86_64.facts +137 -0
  250. data/facts/2.2/fedora-19-i386.facts +106 -0
  251. data/facts/2.2/fedora-19-x86_64.facts +106 -0
  252. data/facts/2.2/freebsd-10-i386.facts +96 -0
  253. data/facts/2.2/freebsd-10-x86_64.facts +96 -0
  254. data/facts/2.2/freebsd-9-i386.facts +96 -0
  255. data/facts/2.2/freebsd-9-x86_64.facts +96 -0
  256. data/facts/2.2/gentoo-i386.facts +121 -0
  257. data/facts/2.2/gentoo-x86_64.facts +121 -0
  258. data/facts/2.2/opensuse-12-i386.facts +105 -0
  259. data/facts/2.2/opensuse-12-x86_64.facts +105 -0
  260. data/facts/2.2/opensuse-13-i386.facts +109 -0
  261. data/facts/2.2/opensuse-13-x86_64.facts +109 -0
  262. data/facts/2.2/oraclelinux-5-i386.facts +125 -0
  263. data/facts/2.2/oraclelinux-5-x86_64.facts +125 -0
  264. data/facts/2.2/oraclelinux-6-i386.facts +111 -0
  265. data/facts/2.2/oraclelinux-6-x86_64.facts +111 -0
  266. data/facts/2.2/oraclelinux-7-i386.facts +115 -0
  267. data/facts/2.2/oraclelinux-7-x86_64.facts +115 -0
  268. data/facts/2.2/redhat-5-i386.facts +125 -0
  269. data/facts/2.2/redhat-5-x86_64.facts +125 -0
  270. data/facts/2.2/redhat-6-i386.facts +111 -0
  271. data/facts/2.2/redhat-6-x86_64.facts +111 -0
  272. data/facts/2.2/redhat-7-i386.facts +115 -0
  273. data/facts/2.2/redhat-7-x86_64.facts +115 -0
  274. data/facts/2.2/scientific-5-i386.facts +125 -0
  275. data/facts/2.2/scientific-5-x86_64.facts +125 -0
  276. data/facts/2.2/scientific-6-i386.facts +111 -0
  277. data/facts/2.2/scientific-6-x86_64.facts +111 -0
  278. data/facts/2.2/scientific-7-i386.facts +115 -0
  279. data/facts/2.2/scientific-7-x86_64.facts +115 -0
  280. data/facts/2.2/sles-11-i386.facts +118 -0
  281. data/facts/2.2/sles-11-x86_64.facts +118 -0
  282. data/facts/2.2/solaris-11-x86_64.facts +105 -0
  283. data/facts/2.2/ubuntu-10.04-i386.facts +131 -0
  284. data/facts/2.2/ubuntu-10.04-x86_64.facts +131 -0
  285. data/facts/2.2/ubuntu-12.04-i386.facts +133 -0
  286. data/facts/2.2/ubuntu-12.04-x86_64.facts +133 -0
  287. data/facts/2.2/ubuntu-14.04-i386.facts +129 -0
  288. data/facts/2.2/ubuntu-14.04-x86_64.facts +129 -0
  289. data/facts/2.2/ubuntu-14.10-i386.facts +130 -0
  290. data/facts/2.2/ubuntu-14.10-x86_64.facts +130 -0
  291. data/facts/2.2/ubuntu-15.04-i386.facts +120 -0
  292. data/facts/2.2/ubuntu-15.04-x86_64.facts +120 -0
  293. data/facts/2.3/archlinux-i386.facts +127 -0
  294. data/facts/2.3/archlinux-x86_64.facts +127 -0
  295. data/facts/2.3/centos-5-i386.facts +126 -0
  296. data/facts/2.3/centos-5-x86_64.facts +126 -0
  297. data/facts/2.3/centos-6-i386.facts +112 -0
  298. data/facts/2.3/centos-6-x86_64.facts +112 -0
  299. data/facts/2.3/centos-7-i386.facts +116 -0
  300. data/facts/2.3/centos-7-x86_64.facts +116 -0
  301. data/facts/2.3/debian-6-i386.facts +135 -0
  302. data/facts/2.3/debian-6-x86_64.facts +135 -0
  303. data/facts/2.3/debian-7-i386.facts +131 -0
  304. data/facts/2.3/debian-7-x86_64.facts +131 -0
  305. data/facts/2.3/debian-8-i386.facts +138 -0
  306. data/facts/2.3/debian-8-x86_64.facts +138 -0
  307. data/facts/2.3/fedora-19-i386.facts +107 -0
  308. data/facts/2.3/fedora-19-x86_64.facts +107 -0
  309. data/facts/2.3/freebsd-10-i386.facts +97 -0
  310. data/facts/2.3/freebsd-10-x86_64.facts +97 -0
  311. data/facts/2.3/freebsd-9-i386.facts +97 -0
  312. data/facts/2.3/freebsd-9-x86_64.facts +97 -0
  313. data/facts/2.3/gentoo-i386.facts +122 -0
  314. data/facts/2.3/gentoo-x86_64.facts +122 -0
  315. data/facts/2.3/opensuse-12-i386.facts +106 -0
  316. data/facts/2.3/opensuse-12-x86_64.facts +106 -0
  317. data/facts/2.3/opensuse-13-i386.facts +110 -0
  318. data/facts/2.3/opensuse-13-x86_64.facts +110 -0
  319. data/facts/2.3/oraclelinux-5-i386.facts +126 -0
  320. data/facts/2.3/oraclelinux-5-x86_64.facts +126 -0
  321. data/facts/2.3/oraclelinux-6-i386.facts +112 -0
  322. data/facts/2.3/oraclelinux-6-x86_64.facts +112 -0
  323. data/facts/2.3/oraclelinux-7-i386.facts +116 -0
  324. data/facts/2.3/oraclelinux-7-x86_64.facts +116 -0
  325. data/facts/2.3/redhat-5-i386.facts +126 -0
  326. data/facts/2.3/redhat-5-x86_64.facts +126 -0
  327. data/facts/2.3/redhat-6-i386.facts +112 -0
  328. data/facts/2.3/redhat-6-x86_64.facts +112 -0
  329. data/facts/2.3/redhat-7-i386.facts +116 -0
  330. data/facts/2.3/redhat-7-x86_64.facts +116 -0
  331. data/facts/2.3/scientific-5-i386.facts +126 -0
  332. data/facts/2.3/scientific-5-x86_64.facts +126 -0
  333. data/facts/2.3/scientific-6-i386.facts +112 -0
  334. data/facts/2.3/scientific-6-x86_64.facts +112 -0
  335. data/facts/2.3/scientific-7-i386.facts +116 -0
  336. data/facts/2.3/scientific-7-x86_64.facts +116 -0
  337. data/facts/2.3/sles-11-i386.facts +119 -0
  338. data/facts/2.3/sles-11-x86_64.facts +119 -0
  339. data/facts/2.3/solaris-11-x86_64.facts +106 -0
  340. data/facts/2.3/ubuntu-10.04-i386.facts +132 -0
  341. data/facts/2.3/ubuntu-10.04-x86_64.facts +132 -0
  342. data/facts/2.3/ubuntu-12.04-i386.facts +134 -0
  343. data/facts/2.3/ubuntu-12.04-x86_64.facts +134 -0
  344. data/facts/2.3/ubuntu-14.04-i386.facts +130 -0
  345. data/facts/2.3/ubuntu-14.04-x86_64.facts +130 -0
  346. data/facts/2.3/ubuntu-14.10-i386.facts +131 -0
  347. data/facts/2.3/ubuntu-14.10-x86_64.facts +131 -0
  348. data/facts/2.3/ubuntu-15.04-i386.facts +121 -0
  349. data/facts/2.3/ubuntu-15.04-x86_64.facts +121 -0
  350. data/facts/2.4/archlinux-i386.facts +127 -0
  351. data/facts/2.4/archlinux-x86_64.facts +127 -0
  352. data/facts/2.4/centos-5-i386.facts +127 -0
  353. data/facts/2.4/centos-5-x86_64.facts +127 -0
  354. data/facts/2.4/centos-6-i386.facts +112 -0
  355. data/facts/2.4/centos-6-x86_64.facts +112 -0
  356. data/facts/2.4/centos-7-i386.facts +116 -0
  357. data/facts/2.4/centos-7-x86_64.facts +116 -0
  358. data/facts/2.4/debian-6-i386.facts +135 -0
  359. data/facts/2.4/debian-6-x86_64.facts +135 -0
  360. data/facts/2.4/debian-7-i386.facts +131 -0
  361. data/facts/2.4/debian-7-x86_64.facts +131 -0
  362. data/facts/2.4/debian-8-i386.facts +138 -0
  363. data/facts/2.4/debian-8-x86_64.facts +138 -0
  364. data/facts/2.4/fedora-19-i386.facts +107 -0
  365. data/facts/2.4/fedora-19-x86_64.facts +107 -0
  366. data/facts/2.4/freebsd-10-i386.facts +97 -0
  367. data/facts/2.4/freebsd-10-x86_64.facts +97 -0
  368. data/facts/2.4/freebsd-9-i386.facts +97 -0
  369. data/facts/2.4/freebsd-9-x86_64.facts +97 -0
  370. data/facts/2.4/gentoo-i386.facts +126 -0
  371. data/facts/2.4/gentoo-x86_64.facts +126 -0
  372. data/facts/2.4/opensuse-12-i386.facts +106 -0
  373. data/facts/2.4/opensuse-12-x86_64.facts +106 -0
  374. data/facts/2.4/opensuse-13-i386.facts +110 -0
  375. data/facts/2.4/opensuse-13-x86_64.facts +110 -0
  376. data/facts/2.4/oraclelinux-5-i386.facts +127 -0
  377. data/facts/2.4/oraclelinux-5-x86_64.facts +127 -0
  378. data/facts/2.4/oraclelinux-6-i386.facts +112 -0
  379. data/facts/2.4/oraclelinux-6-x86_64.facts +112 -0
  380. data/facts/2.4/oraclelinux-7-i386.facts +116 -0
  381. data/facts/2.4/oraclelinux-7-x86_64.facts +116 -0
  382. data/facts/2.4/redhat-5-i386.facts +127 -0
  383. data/facts/2.4/redhat-5-x86_64.facts +127 -0
  384. data/facts/2.4/redhat-6-i386.facts +112 -0
  385. data/facts/2.4/redhat-6-x86_64.facts +112 -0
  386. data/facts/2.4/redhat-7-i386.facts +116 -0
  387. data/facts/2.4/redhat-7-x86_64.facts +116 -0
  388. data/facts/2.4/scientific-5-i386.facts +127 -0
  389. data/facts/2.4/scientific-5-x86_64.facts +127 -0
  390. data/facts/2.4/scientific-6-i386.facts +112 -0
  391. data/facts/2.4/scientific-6-x86_64.facts +112 -0
  392. data/facts/2.4/scientific-7-i386.facts +116 -0
  393. data/facts/2.4/scientific-7-x86_64.facts +116 -0
  394. data/facts/2.4/sles-11-i386.facts +119 -0
  395. data/facts/2.4/sles-11-x86_64.facts +119 -0
  396. data/facts/2.4/solaris-11-x86_64.facts +106 -0
  397. data/facts/2.4/ubuntu-10.04-i386.facts +132 -0
  398. data/facts/2.4/ubuntu-10.04-x86_64.facts +132 -0
  399. data/facts/2.4/ubuntu-12.04-i386.facts +134 -0
  400. data/facts/2.4/ubuntu-12.04-x86_64.facts +134 -0
  401. data/facts/2.4/ubuntu-14.04-i386.facts +130 -0
  402. data/facts/2.4/ubuntu-14.04-x86_64.facts +130 -0
  403. data/facts/2.4/ubuntu-14.10-i386.facts +131 -0
  404. data/facts/2.4/ubuntu-14.10-x86_64.facts +131 -0
  405. data/facts/2.4/ubuntu-15.04-i386.facts +122 -0
  406. data/facts/2.4/ubuntu-15.04-x86_64.facts +122 -0
  407. data/facts/Gemfile +9 -0
  408. data/facts/Vagrantfile +174 -0
  409. data/facts/get_facts.sh +35 -0
  410. data/lib/facterdb/version.rb +5 -0
  411. data/lib/facterdb.rb +13 -0
  412. data/spec/facterdb_spec.rb +16 -0
  413. data/spec/spec_helper.rb +6 -0
  414. metadata +526 -0
@@ -0,0 +1,131 @@
1
+ {
2
+ "gem_version": "~> 2.4.0",
3
+ "kernelversion": "3.16.0",
4
+ "netmask": "255.255.255.0",
5
+ "partitions": {
6
+ "sda1": {
7
+ "uuid": "b9246700-31d8-4f09-9a47-8acec873cf90",
8
+ "size": "497664",
9
+ "mount": "/boot",
10
+ "filesystem": "ext2"
11
+ },
12
+ "sda2": {
13
+ "size": "2",
14
+ "filesystem": "dos"
15
+ },
16
+ "sda5": {
17
+ "size": "83382272",
18
+ "filesystem": "LVM2_member"
19
+ }
20
+ },
21
+ "selinux": false,
22
+ "kernel": "Linux",
23
+ "rubysitedir": "/usr/local/lib/site_ruby/2.1.0",
24
+ "uptime_days": 0,
25
+ "lsbdistdescription": "Ubuntu 14.10",
26
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAMp87i4kuHh7tgFB0jCphH/2U6qPa8UlL/uNoqQq3rqDVdKdhECyAo1z6ZuMBYrogA0/0xXai0a+OjgXHPZr7CrS0u4NM/hKwz/oHaoYOKPS3lqA4Y0LZWQu4dgLNHUBQ4xLYDBVTlx8mY3VYJmxHFzaDT+qjllxh3fY/qex5cvxAAAAFQDWGw9KS02kKqtfRXbqVetC6S3YEQAAAIA5HOcepcImVYp8pYpZlnc5YbwHe+TE0VTATb+NTFuEKIqkWv4ogiimCjPaTeo+/bp2bmhZLYZQXVS0QSby3KnWhyjhQcavfwZD7J3fSR8hyC+wfy9Xc0ZzMn8GCZzcvaLAD2Pl6efgozPR7wUnykKSkulYLOdU6mO+GiHmlYhFVwAAAIABRfgLbPA/8b+NlPhVza2/P549u7L0TY34rcnCwGAu8xwzVHlmDf6lcQp4nPkPP9xu/Go7+nBQela0mLUoic4dkoAmijxoDNG237qtvSFpPm7yVpTAMOh762FiuBMKNcuqgjcU26VWrg9b/F02rqzk+J2NEM4aPFlPjyXoJ6gkBg==",
27
+ "sshfp_dsa": "SSHFP 2 1 425d63f703c0b6b304ab4e3b01e67f9fea765844\nSSHFP 2 2 ab82c7c9256382b3c3dc35dda7ffc796016f8f409b0b34b03a1384986e2ca4fa",
28
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDiyli/HNpLUnEj14wXrXfaorYMqfH139NO8YzOaNo2/xv1ReJ9C7Gy1w2ebGnkqk9lFXrR+9wFk/ImRVBN3uGbWiKfi8cMaJHlnnz+kKjX/Az3bwi3erbBtXU5ZUWofMeIkmOVkDlkGtQ3tY+65wZgBXqX1Uu1cR8ixGH9Mj4zqCLLaaaqAdKRRGglVGd0h7yOSISl4WPyOggx4TthEseBfVZPvmreLPzCvOhpuaGvDvBMzDgROmwI4FkMcv94mF+tBsiw3XQBXbt8vcYSIDJCsaKwoecCMoiMxSx0NJiiSD7KSWeDFFYvL7qqrMJMD9NxSivG1qB+PUMUbQs9L8XX",
29
+ "sshfp_rsa": "SSHFP 1 1 672388884aeffc993b5c2e11390b6b6505561a23\nSSHFP 1 2 d1dd34fa28beef7a6d93632013c18f515402ca137f0e0920fb754e0ea865d4af",
30
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBAKfT4SRc46OYPEK61eR7Cz1rX+rxSofUEIMeL6vVj/1Luvs9kQhf8xLt0Iujf8Ue2i0YGg3NU4hCCJm46L8oa0=",
31
+ "sshfp_ecdsa": "SSHFP 3 1 0d0e3f3b359e8762f8cf82563fa73e97fea08aa5\nSSHFP 3 2 6161da3ec37c4b96b320a4e30e8a165a586ce18ee80f39d0ecdd5751a8a299e3",
32
+ "sshed25519key": "AAAAC3NzaC1lZDI1NTE5AAAAIOfnBU7Xh9xnqnueQRqQ2vXnFQKVBw1g+k7Payddruq9",
33
+ "sshfp_ed25519": "SSHFP 4 1 2c539155a1e31f6d80e666214100bdccaf3d62d9\nSSHFP 4 2 fd7c58ab3b69b7385a52f5e80ac885616dcd6812cec267036ce9fac31389230c",
34
+ "path": "/home/vagrant/vendor/bundler/ruby/2.1.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/var/lib/gems/1.8/bin/:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.12/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.12/bin",
35
+ "hardwareisa": "x86_64",
36
+ "kernelrelease": "3.16.0-23-generic",
37
+ "macaddress": "08:00:27:c7:e7:dd",
38
+ "interfaces": "eth0,lo",
39
+ "ipaddress_eth0": "10.0.2.15",
40
+ "macaddress_eth0": "08:00:27:c7:e7:dd",
41
+ "netmask_eth0": "255.255.255.0",
42
+ "mtu_eth0": 1500,
43
+ "ipaddress_lo": "127.0.0.1",
44
+ "netmask_lo": "255.0.0.0",
45
+ "mtu_lo": 65536,
46
+ "filesystems": "ext2,ext3,ext4,vfat",
47
+ "operatingsystem": "Ubuntu",
48
+ "processors": {
49
+ "models": [
50
+ "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz"
51
+ ],
52
+ "count": 1,
53
+ "physicalcount": 1
54
+ },
55
+ "architecture": "amd64",
56
+ "hardwaremodel": "x86_64",
57
+ "os": {
58
+ "name": "Ubuntu",
59
+ "family": "Debian",
60
+ "release": {
61
+ "major": "14.10",
62
+ "full": "14.10"
63
+ },
64
+ "lsb": {
65
+ "distcodename": "utopic",
66
+ "distid": "Ubuntu",
67
+ "distdescription": "Ubuntu 14.10",
68
+ "distrelease": "14.10",
69
+ "majdistrelease": "14.10"
70
+ }
71
+ },
72
+ "processor0": "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz",
73
+ "processorcount": 1,
74
+ "gid": "root",
75
+ "uniqueid": "007f0101",
76
+ "physicalprocessorcount": 1,
77
+ "lsbdistcodename": "utopic",
78
+ "lsbdistrelease": "14.10",
79
+ "kernelmajversion": "3.16",
80
+ "boardmanufacturer": "Oracle Corporation",
81
+ "boardproductname": "VirtualBox",
82
+ "boardserialnumber": "0",
83
+ "bios_vendor": "innotek GmbH",
84
+ "bios_version": "VirtualBox",
85
+ "bios_release_date": "12/01/2006",
86
+ "manufacturer": "innotek GmbH",
87
+ "productname": "VirtualBox",
88
+ "serialnumber": "0",
89
+ "uuid": "238536D2-4EF5-483B-9E2D-A8A8778E6F46",
90
+ "type": "Other",
91
+ "memorysize": "363.54 MB",
92
+ "memoryfree": "284.48 MB",
93
+ "swapsize": "768.00 MB",
94
+ "swapfree": "767.61 MB",
95
+ "swapsize_mb": "768.00",
96
+ "swapfree_mb": "767.61",
97
+ "memorysize_mb": "363.54",
98
+ "memoryfree_mb": "284.48",
99
+ "operatingsystemmajrelease": "14.10",
100
+ "fqdn": "foo.example.com",
101
+ "blockdevice_sda_size": 42949672960,
102
+ "blockdevice_sda_vendor": "ATA",
103
+ "blockdevice_sda_model": "VBOX HARDDISK",
104
+ "blockdevices": "sda",
105
+ "facterversion": "2.4.4",
106
+ "rubyversion": "2.1.2",
107
+ "uptime_hours": 0,
108
+ "virtual": "virtualbox",
109
+ "is_virtual": true,
110
+ "lsbmajdistrelease": "14.10",
111
+ "operatingsystemrelease": "14.10",
112
+ "timezone": "UTC",
113
+ "rubyplatform": "x86_64-linux-gnu",
114
+ "osfamily": "Debian",
115
+ "id": "root",
116
+ "uptime_seconds": 130,
117
+ "domain": "example.com",
118
+ "network_eth0": "10.0.2.0",
119
+ "network_lo": "127.0.0.0",
120
+ "ipaddress": "10.0.2.15",
121
+ "ps": "ps -ef",
122
+ "lsbdistid": "Ubuntu",
123
+ "uptime": "0:02 hours",
124
+ "system_uptime": {
125
+ "seconds": 130,
126
+ "hours": 0,
127
+ "days": 0,
128
+ "uptime": "0:02 hours"
129
+ },
130
+ "hostname": "foo"
131
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "gem_version": "~> 2.4.0",
3
+ "system_uptime": {
4
+ "seconds": 329,
5
+ "hours": 0,
6
+ "days": 0,
7
+ "uptime": "0:05 hours"
8
+ },
9
+ "netmask": "255.255.255.0",
10
+ "kernel": "Linux",
11
+ "network_eth0": "10.0.2.0",
12
+ "network_lo": "127.0.0.0",
13
+ "kernelversion": "3.19.0",
14
+ "ps": "ps -ef",
15
+ "uptime_days": 0,
16
+ "virtual": "virtualbox",
17
+ "is_virtual": true,
18
+ "uniqueid": "007f0101",
19
+ "filesystems": "ext2,ext3,ext4,vfat",
20
+ "uptime": "0:05 hours",
21
+ "lsbdistcodename": "vivid",
22
+ "operatingsystemrelease": "15.04",
23
+ "id": "root",
24
+ "os": {
25
+ "name": "Ubuntu",
26
+ "family": "Debian",
27
+ "release": {
28
+ "major": "15.04",
29
+ "full": "15.04"
30
+ },
31
+ "lsb": {
32
+ "distcodename": "vivid",
33
+ "distid": "Ubuntu",
34
+ "distdescription": "Ubuntu 15.04",
35
+ "distrelease": "15.04",
36
+ "majdistrelease": "15.04"
37
+ }
38
+ },
39
+ "processors": {
40
+ "models": [
41
+ "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz"
42
+ ],
43
+ "count": 1,
44
+ "physicalcount": 1
45
+ },
46
+ "physicalprocessorcount": 1,
47
+ "uptime_hours": 0,
48
+ "lsbdistdescription": "Ubuntu 15.04",
49
+ "rubyversion": "1.9.3",
50
+ "hardwareisa": "i386",
51
+ "rubysitedir": "/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1",
52
+ "interfaces": "eth0,lo",
53
+ "ipaddress_eth0": "10.0.2.15",
54
+ "macaddress_eth0": "08:00:27:a7:ef:aa",
55
+ "netmask_eth0": "255.255.255.0",
56
+ "mtu_eth0": 1500,
57
+ "ipaddress_lo": "127.0.0.1",
58
+ "netmask_lo": "255.0.0.0",
59
+ "mtu_lo": 65536,
60
+ "rubyplatform": "i386-linux",
61
+ "gid": "root",
62
+ "memorysize": "489.11 MB",
63
+ "memoryfree": "306.77 MB",
64
+ "swapsize": "0.00 MB",
65
+ "swapfree": "0.00 MB",
66
+ "swapsize_mb": "0.00",
67
+ "swapfree_mb": "0.00",
68
+ "memorysize_mb": "489.11",
69
+ "memoryfree_mb": "306.77",
70
+ "operatingsystem": "Ubuntu",
71
+ "timezone": "UTC",
72
+ "architecture": "i386",
73
+ "hardwaremodel": "i386",
74
+ "processor0": "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz",
75
+ "processorcount": 1,
76
+ "blockdevice_sda_size": 42949672960,
77
+ "blockdevice_sda_vendor": "ATA",
78
+ "blockdevice_sda_model": "VBOX HARDDISK",
79
+ "blockdevices": "sda",
80
+ "macaddress": "08:00:27:a7:ef:aa",
81
+ "operatingsystemmajrelease": "15.04",
82
+ "lsbmajdistrelease": "15.04",
83
+ "uptime_seconds": 329,
84
+ "osfamily": "Debian",
85
+ "lsbdistrelease": "15.04",
86
+ "facterversion": "2.4.4",
87
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAPjyEh5U22K+91QPzLnv5BpBHArW1ZY0bQ4MBJsBkPWHY5gJqUsCS0OvuCTrB167JAlQ23q8stKE5MALOy3ABjyDNEv/5p4a0wvlQg7GLkVQg4G4QA85rx0k3WHRLFSPKTDly3XytRTiQ7Wqwr13s1q0EinBbnku/t9ZhPkGZq/9AAAAFQCouIAIhQVyHJ5QHe72JcX/PDiM1wAAAIEA7rrsDeOM4tsb7E6btFSeSdVKFp61dLtWcGt6YTjCApLoAoOKPBfpcDs8vcH0sGypuM9D/iYRffMq9Xkx7PW28WdYof9fvhbdmZcKXu3Sxm37phXk2hl0lG5DkXKg7a++uY73QY4Yf5yNzKdxX6ZXjbQpAsuqWgJ/FenMzYfayesAAACAP8eVVsEVMMQrHpDCLLPPicc5nE+hN24Iozw+2DPKJ/n0bc2ORI0XEDWUTrDmQBY+xrEGkPgmEDSYoSm3B0W/KhYGMv4s4rHRLVisYuD/qwVqAaKnr8qZBJW25gwAXUJrRxBjp2VfnY1BklFqqBqjSoGr2+nQDRU3CSwiSSgCbMw=",
88
+ "sshfp_dsa": "SSHFP 2 1 cd6f2883cb8caf52993af82c54a211a3ec509063\nSSHFP 2 2 e51c7965a89f687582f70bb0f0c13fa598bea4cba9991c612b2f87a349038626",
89
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqsArwfrUVXRWgrHuDERaewWZsM3v1Qx/FGe52TaiWUpFD0EUxauC//jAKPpYhwOpwiu7Awl8/J5WRwAOrh1NmMT7/YXngVBPk3AKw9lZSsSfeAogXnQnJQfS5B4kfOWeyG+tQYCQDLJAPlIDKrgGDSRA7+7UV9lJ6h89y77WqwqYoyu+Ghy7ffS+bUT6Mtu9GkQdyz9pLThfk3G8tHLBEr4I77dxcTnWOmPzhOoqvlLw9IgYXKd202i9dNuTvFoixUS5bZyB/6DKZuYWuXlzYw39w+MNk6OfnNImEXJJ1jutzfQzc8HVkHF82NGQgNGIdu9YtT5G5zEqhld42jWMb",
90
+ "sshfp_rsa": "SSHFP 1 1 74b2a63f43c9eff3fc720101070cefc86f6919a9\nSSHFP 1 2 20d270a243198b82bae7377fa8f7ec40fe19edc5c5e8ffa8ad7efb0223ddd47c",
91
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFoZKUPtXoKqWaRHVRrRw4jiJOLbmNX+PicEAlPfluyLWWkL9FpEhjZTuquv43YdCt5iO/aljQUisHL973YDIgw=",
92
+ "sshfp_ecdsa": "SSHFP 3 1 579c8f5eb97ceff3950a32e83e304fe582a7ef33\nSSHFP 3 2 fd12f89578dd88f50c17a8a23c9bfaff189af7240860bbbb204fd2af35a4655d",
93
+ "lsbdistid": "Ubuntu",
94
+ "fqdn": "foo.example.com",
95
+ "selinux": false,
96
+ "path": "/home/vagrant/vendor/bundler/ruby/1.9.1/bin:/usr/local/rvm/gems/ruby-1.9.3-p551/bin:/usr/local/rvm/gems/ruby-1.9.3-p551@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p551/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin:/var/lib/gems/1.8/bin/:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.12/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.12/bin",
97
+ "partitions": {
98
+ "sda1": {
99
+ "uuid": "0409f064-ec58-40e4-afb8-e28b54770392",
100
+ "size": "83884032",
101
+ "mount": "/",
102
+ "label": "cloudimg-rootfs",
103
+ "filesystem": "ext4"
104
+ }
105
+ },
106
+ "kernelrelease": "3.19.0-15-generic",
107
+ "ipaddress": "10.0.2.15",
108
+ "hostname": "foo",
109
+ "domain": "example.com",
110
+ "kernelmajversion": "3.19",
111
+ "boardmanufacturer": "Oracle Corporation",
112
+ "boardproductname": "VirtualBox",
113
+ "boardserialnumber": "0",
114
+ "bios_vendor": "innotek GmbH",
115
+ "bios_version": "VirtualBox",
116
+ "bios_release_date": "12/01/2006",
117
+ "manufacturer": "innotek GmbH",
118
+ "productname": "VirtualBox",
119
+ "serialnumber": "0",
120
+ "uuid": "763942B2-1688-4BBC-98EC-7BCA1207C081",
121
+ "type": "Other"
122
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "gem_version": "~> 2.4.0",
3
+ "system_uptime": {
4
+ "seconds": 329,
5
+ "hours": 0,
6
+ "days": 0,
7
+ "uptime": "0:05 hours"
8
+ },
9
+ "netmask": "255.255.255.0",
10
+ "kernel": "Linux",
11
+ "network_eth0": "10.0.2.0",
12
+ "network_lo": "127.0.0.0",
13
+ "kernelversion": "3.19.0",
14
+ "ps": "ps -ef",
15
+ "uptime_days": 0,
16
+ "virtual": "virtualbox",
17
+ "is_virtual": true,
18
+ "uniqueid": "007f0101",
19
+ "filesystems": "ext2,ext3,ext4,vfat",
20
+ "uptime": "0:05 hours",
21
+ "lsbdistcodename": "vivid",
22
+ "operatingsystemrelease": "15.04",
23
+ "id": "root",
24
+ "os": {
25
+ "name": "Ubuntu",
26
+ "family": "Debian",
27
+ "release": {
28
+ "major": "15.04",
29
+ "full": "15.04"
30
+ },
31
+ "lsb": {
32
+ "distcodename": "vivid",
33
+ "distid": "Ubuntu",
34
+ "distdescription": "Ubuntu 15.04",
35
+ "distrelease": "15.04",
36
+ "majdistrelease": "15.04"
37
+ }
38
+ },
39
+ "processors": {
40
+ "models": [
41
+ "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz"
42
+ ],
43
+ "count": 1,
44
+ "physicalcount": 1
45
+ },
46
+ "physicalprocessorcount": 1,
47
+ "uptime_hours": 0,
48
+ "lsbdistdescription": "Ubuntu 15.04",
49
+ "rubyversion": "1.9.3",
50
+ "hardwareisa": "x86_64",
51
+ "rubysitedir": "/usr/local/rvm/rubies/ruby-1.9.3-p551/lib/ruby/site_ruby/1.9.1",
52
+ "interfaces": "eth0,lo",
53
+ "ipaddress_eth0": "10.0.2.15",
54
+ "macaddress_eth0": "08:00:27:a7:ef:aa",
55
+ "netmask_eth0": "255.255.255.0",
56
+ "mtu_eth0": 1500,
57
+ "ipaddress_lo": "127.0.0.1",
58
+ "netmask_lo": "255.0.0.0",
59
+ "mtu_lo": 65536,
60
+ "rubyplatform": "x86_64-linux",
61
+ "gid": "root",
62
+ "memorysize": "489.11 MB",
63
+ "memoryfree": "306.77 MB",
64
+ "swapsize": "0.00 MB",
65
+ "swapfree": "0.00 MB",
66
+ "swapsize_mb": "0.00",
67
+ "swapfree_mb": "0.00",
68
+ "memorysize_mb": "489.11",
69
+ "memoryfree_mb": "306.77",
70
+ "operatingsystem": "Ubuntu",
71
+ "timezone": "UTC",
72
+ "architecture": "amd64",
73
+ "hardwaremodel": "x86_64",
74
+ "processor0": "Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz",
75
+ "processorcount": 1,
76
+ "blockdevice_sda_size": 42949672960,
77
+ "blockdevice_sda_vendor": "ATA",
78
+ "blockdevice_sda_model": "VBOX HARDDISK",
79
+ "blockdevices": "sda",
80
+ "macaddress": "08:00:27:a7:ef:aa",
81
+ "operatingsystemmajrelease": "15.04",
82
+ "lsbmajdistrelease": "15.04",
83
+ "uptime_seconds": 329,
84
+ "osfamily": "Debian",
85
+ "lsbdistrelease": "15.04",
86
+ "facterversion": "2.4.4",
87
+ "sshdsakey": "AAAAB3NzaC1kc3MAAACBAPjyEh5U22K+91QPzLnv5BpBHArW1ZY0bQ4MBJsBkPWHY5gJqUsCS0OvuCTrB167JAlQ23q8stKE5MALOy3ABjyDNEv/5p4a0wvlQg7GLkVQg4G4QA85rx0k3WHRLFSPKTDly3XytRTiQ7Wqwr13s1q0EinBbnku/t9ZhPkGZq/9AAAAFQCouIAIhQVyHJ5QHe72JcX/PDiM1wAAAIEA7rrsDeOM4tsb7E6btFSeSdVKFp61dLtWcGt6YTjCApLoAoOKPBfpcDs8vcH0sGypuM9D/iYRffMq9Xkx7PW28WdYof9fvhbdmZcKXu3Sxm37phXk2hl0lG5DkXKg7a++uY73QY4Yf5yNzKdxX6ZXjbQpAsuqWgJ/FenMzYfayesAAACAP8eVVsEVMMQrHpDCLLPPicc5nE+hN24Iozw+2DPKJ/n0bc2ORI0XEDWUTrDmQBY+xrEGkPgmEDSYoSm3B0W/KhYGMv4s4rHRLVisYuD/qwVqAaKnr8qZBJW25gwAXUJrRxBjp2VfnY1BklFqqBqjSoGr2+nQDRU3CSwiSSgCbMw=",
88
+ "sshfp_dsa": "SSHFP 2 1 cd6f2883cb8caf52993af82c54a211a3ec509063\nSSHFP 2 2 e51c7965a89f687582f70bb0f0c13fa598bea4cba9991c612b2f87a349038626",
89
+ "sshrsakey": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCqsArwfrUVXRWgrHuDERaewWZsM3v1Qx/FGe52TaiWUpFD0EUxauC//jAKPpYhwOpwiu7Awl8/J5WRwAOrh1NmMT7/YXngVBPk3AKw9lZSsSfeAogXnQnJQfS5B4kfOWeyG+tQYCQDLJAPlIDKrgGDSRA7+7UV9lJ6h89y77WqwqYoyu+Ghy7ffS+bUT6Mtu9GkQdyz9pLThfk3G8tHLBEr4I77dxcTnWOmPzhOoqvlLw9IgYXKd202i9dNuTvFoixUS5bZyB/6DKZuYWuXlzYw39w+MNk6OfnNImEXJJ1jutzfQzc8HVkHF82NGQgNGIdu9YtT5G5zEqhld42jWMb",
90
+ "sshfp_rsa": "SSHFP 1 1 74b2a63f43c9eff3fc720101070cefc86f6919a9\nSSHFP 1 2 20d270a243198b82bae7377fa8f7ec40fe19edc5c5e8ffa8ad7efb0223ddd47c",
91
+ "sshecdsakey": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFoZKUPtXoKqWaRHVRrRw4jiJOLbmNX+PicEAlPfluyLWWkL9FpEhjZTuquv43YdCt5iO/aljQUisHL973YDIgw=",
92
+ "sshfp_ecdsa": "SSHFP 3 1 579c8f5eb97ceff3950a32e83e304fe582a7ef33\nSSHFP 3 2 fd12f89578dd88f50c17a8a23c9bfaff189af7240860bbbb204fd2af35a4655d",
93
+ "lsbdistid": "Ubuntu",
94
+ "fqdn": "foo.example.com",
95
+ "selinux": false,
96
+ "path": "/home/vagrant/vendor/bundler/ruby/1.9.1/bin:/usr/local/rvm/gems/ruby-1.9.3-p551/bin:/usr/local/rvm/gems/ruby-1.9.3-p551@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p551/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/rvm/bin:/var/lib/gems/1.8/bin/:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.12/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.12/bin",
97
+ "partitions": {
98
+ "sda1": {
99
+ "uuid": "0409f064-ec58-40e4-afb8-e28b54770392",
100
+ "size": "83884032",
101
+ "mount": "/",
102
+ "label": "cloudimg-rootfs",
103
+ "filesystem": "ext4"
104
+ }
105
+ },
106
+ "kernelrelease": "3.19.0-15-generic",
107
+ "ipaddress": "10.0.2.15",
108
+ "hostname": "foo",
109
+ "domain": "example.com",
110
+ "kernelmajversion": "3.19",
111
+ "boardmanufacturer": "Oracle Corporation",
112
+ "boardproductname": "VirtualBox",
113
+ "boardserialnumber": "0",
114
+ "bios_vendor": "innotek GmbH",
115
+ "bios_version": "VirtualBox",
116
+ "bios_release_date": "12/01/2006",
117
+ "manufacturer": "innotek GmbH",
118
+ "productname": "VirtualBox",
119
+ "serialnumber": "0",
120
+ "uuid": "763942B2-1688-4BBC-98EC-7BCA1207C081",
121
+ "type": "Other"
122
+ }
data/facts/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source ENV['GEM_SOURCE'] || "https://rubygems.org"
2
+
3
+ gem 'json', :require => false
4
+
5
+ if facterversion = ENV['FACTER_GEM_VERSION']
6
+ gem 'facter', facterversion, :require => false
7
+ else
8
+ gem 'facter', :require => false
9
+ end
data/facts/Vagrantfile ADDED
@@ -0,0 +1,174 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+
4
+ # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5
+ VAGRANTFILE_API_VERSION = "2"
6
+
7
+ $install_rvm = <<SCRIPT
8
+ # Install mpapis public key
9
+ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 ||
10
+ curl -sSL https://rvm.io/mpapis.asc | gpg --import - &&
11
+
12
+ # Run the installer
13
+ \\curl -sSL https://get.rvm.io | bash -s stable &&
14
+
15
+ # Install Ruby
16
+ source /etc/profile.d/rvm.sh &&
17
+ rvm install 1.9.3 &&
18
+ rvm use --create 1.9.3
19
+ SCRIPT
20
+
21
+ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
22
+
23
+ config.vm.hostname = "foo.example.com"
24
+
25
+ config.vm.define "debian-6-x86_64" do |host|
26
+ host.vm.box = "puppetlabs/debian-6.0.10-64-nocm"
27
+ host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby rubygems"
28
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
29
+ host.vm.provision "shell", path: "get_facts.sh"
30
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
31
+ end
32
+ config.vm.define "debian-7-x86_64" do |host|
33
+ host.vm.box = "puppetlabs/debian-7.8-64-nocm"
34
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
35
+ host.vm.provision "shell", path: "get_facts.sh"
36
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
37
+ end
38
+ config.vm.define "debian-8-x86_64" do |host|
39
+ host.vm.box = "camptocamp/debian-8-amd64"
40
+ host.vm.provision "shell", inline: "apt-get update && apt-get install -y curl"
41
+ host.vm.provision "shell", inline: "curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \\curl -sSL https://get.rvm.io | bash -s stable"
42
+ host.vm.provision "shell", inline: "source /etc/profile.d/rvm.sh && rvm install 1.9.3 && rvm use --create 1.9.3"
43
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
44
+ host.vm.provision "shell", path: "get_facts.sh"
45
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
46
+ end
47
+ config.vm.define "ubuntu-10.04-x86_64" do |host|
48
+ host.vm.box = "ubuntu-server-10044-x64-vbox4210-nocm"
49
+ host.vm.box_url = "http://puppet-vagrant-boxes.puppetlabs.com/ubuntu-server-10044-x64-vbox4210-nocm.box"
50
+ host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev rubygems libopenssl-ruby"
51
+ host.vm.provision "shell", inline: "gem install rubygems-update && /var/lib/gems/1.8/bin/update_rubygems"
52
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
53
+ host.vm.provision "shell", path: "get_facts.sh"
54
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
55
+ end
56
+ config.vm.define "ubuntu-12.04-x86_64" do |host|
57
+ host.vm.box = "puppetlabs/ubuntu-12.04-64-nocm"
58
+ host.vm.provision "shell", inline: "apt-get update && apt-get install -y rubygems"
59
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
60
+ host.vm.provision "shell", path: "get_facts.sh"
61
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
62
+ end
63
+ config.vm.define "ubuntu-14.04-x86_64" do |host|
64
+ host.vm.box = "puppetlabs/ubuntu-14.04-64-nocm"
65
+ host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev"
66
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
67
+ host.vm.provision "shell", path: "get_facts.sh"
68
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
69
+ end
70
+ config.vm.define "ubuntu-14.10-x86_64" do |host|
71
+ host.vm.box = "chef/ubuntu-14.10"
72
+ host.vm.provision "shell", inline: "apt-get update && apt-get install -y ruby ruby-dev"
73
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
74
+ host.vm.provision "shell", path: "get_facts.sh"
75
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
76
+ end
77
+ config.vm.define "ubuntu-15.04-x86_64" do |host|
78
+ host.vm.box = "ubuntu/vivid64"
79
+ host.vm.provision "shell", inline: $install_rvm
80
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
81
+ host.vm.provision "shell", path: "get_facts.sh"
82
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
83
+ end
84
+ config.vm.define "centos-5-x86_64" do |host|
85
+ host.vm.box = "puppetlabs/centos-5.11-64-nocm"
86
+ host.vm.provision "shell", inline: "curl -sSL https://rvm.io/mpapis.asc | gpg --import - && \\curl -sSL https://get.rvm.io | bash -s stable"
87
+ host.vm.provision "shell", inline: "source /etc/profile.d/rvm.sh && rvm install 1.9.3 && rvm use --create 1.9.3"
88
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
89
+ host.vm.provision "shell", path: "get_facts.sh"
90
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
91
+ end
92
+ config.vm.define "centos-6-x86_64" do |host|
93
+ host.vm.box = "puppetlabs/centos-6.6-64-nocm"
94
+ host.vm.provision "shell", inline: "yum -y install ruby-devel rubygems"
95
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
96
+ host.vm.provision "shell", path: "get_facts.sh"
97
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
98
+ end
99
+ config.vm.define "centos-7-x86_64" do |host|
100
+ host.vm.box = "puppetlabs/centos-7.0-64-nocm"
101
+ host.vm.provision "shell", inline: "yum -y install ruby ruby-devel"
102
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
103
+ host.vm.provision "shell", path: "get_facts.sh"
104
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
105
+ end
106
+ config.vm.define "fedora-19-x86_64" do |host|
107
+ host.vm.box = "chef/fedora-19"
108
+ host.vm.provision "shell", inline: "yum -y install ruby ruby-devel"
109
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
110
+ host.vm.provision "shell", path: "get_facts.sh"
111
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
112
+ end
113
+ config.vm.define "archlinux-x86_64" do |host|
114
+ host.vm.box = "terrywang/archlinux"
115
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
116
+ host.vm.provision "shell", path: "get_facts.sh"
117
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
118
+ end
119
+ config.vm.define "sles-11sp1-x86_64" do |host|
120
+ host.vm.box = "suse/sles11sp3"
121
+ host.vm.provision "shell", inline: "gem update --system"
122
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
123
+ host.vm.provision "shell", path: "get_facts.sh"
124
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
125
+ end
126
+ config.vm.define "opensuse-12-x86_64" do |host|
127
+ host.vm.box = "alexeym/opensuse-12.3"
128
+ host.vm.provision "shell", inline: "zypper install -y rubygems ruby-devel make gcc"
129
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
130
+ host.vm.provision "shell", path: "get_facts.sh"
131
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
132
+ end
133
+ config.vm.define "opensuse-13-x86_64" do |host|
134
+ host.vm.box = "chef/opensuse-13.1"
135
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
136
+ host.vm.provision "shell", path: "get_facts.sh"
137
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
138
+ end
139
+ config.vm.define "freebsd-10-x86_64" do |host|
140
+ host.vm.box = "chef/freebsd-10.0"
141
+ host.vm.network :private_network, ip: '10.0.0.2'
142
+ host.vm.synced_folder ".", "/vagrant", :nfs => true
143
+ host.vm.provision "shell", inline: "pkg install -y devel/ruby-gems"
144
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
145
+ host.vm.provision "shell", path: "get_facts.sh"
146
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
147
+ end
148
+ config.vm.define "freebsd-9-x86_64" do |host|
149
+ host.vm.box = "chef/freebsd-9.2"
150
+ host.vm.network :private_network, ip: '10.0.0.2'
151
+ host.vm.synced_folder ".", "/vagrant", :nfs => true
152
+ host.ssh.shell = '/bin/sh'
153
+ host.vm.provision "shell", inline: "pkg_add -F -r ruby19-gems"
154
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
155
+ host.vm.provision "shell", path: "get_facts.sh"
156
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
157
+ end
158
+ config.vm.define "gentoo-x86_64" do |host|
159
+ host.vm.box = "cmiles/gentoo-amd64-minimal"
160
+ host.vm.provision "shell", inline: "emerge-webrsync && emerge app-crypt/gnupg net-misc/curl"
161
+ host.vm.provision "shell", inline: $install_rvm
162
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
163
+ host.vm.provision "shell", path: "get_facts.sh"
164
+ host.vm.provision "shell", inline: "/sbin/shutdown -h now"
165
+ end
166
+ config.vm.define "solaris-11-x86_64" do |host|
167
+ host.vm.box = "http://benden.us/vagrant/solaris-11.2.box"
168
+ host.ssh.insert_key = false
169
+ host.vm.provision "shell", inline: "pkg info gcc || pkg install gcc"
170
+ host.vm.provision "file", source: "Gemfile", destination: "Gemfile"
171
+ host.vm.provision "shell", path: "get_facts.sh"
172
+ host.vm.provision "shell", inline: "/sbin/shutdown -i S -g0 -y 'Bye' &"
173
+ end
174
+ end
@@ -0,0 +1,35 @@
1
+ #!/bin/bash
2
+
3
+ # Make Solaris use GNU tools by default
4
+ export PATH=/usr/gnu/bin:$PATH
5
+
6
+ # Fix for squeeze, el7, arch, opensuse12, opensuse13 and solaris
7
+ export PATH=$PATH:/var/lib/gems/1.8/bin/:/usr/local/bin:/root/.gem/ruby/2.1.0/bin:/usr/lib64/ruby/gems/1.9.1/gems/bundler-1.7.12/bin:/usr/lib64/ruby/gems/2.0.0/gems/bundler-1.7.12/bin:/usr/ruby/1.9/bin
8
+
9
+ # Install latest version of facter
10
+ gem install bundler --no-ri --no-rdoc
11
+ bundle install --path vendor/bundler
12
+ operatingsystem=$(bundle exec facter operatingsystem | tr '[:upper:]' '[:lower:]')
13
+ operatingsystemmajrelease=$(bundle exec facter operatingsystemmajrelease)
14
+ hardwaremodel=$(bundle exec facter hardwaremodel)
15
+
16
+ # Fix for FreeBSD
17
+ [ "${hardwaremodel}" = 'amd64' ] && hardwaremodel='x86_64'
18
+
19
+ # Fix for Solaris
20
+ [ "${hardwaremodel}" = 'i86pc' ] && hardwaremodel='x86_64'
21
+
22
+ for version in 1.6.0 1.7.0 2.0.0 2.1.0 2.2.0 2.3.0 2.4.0; do
23
+ FACTER_GEM_VERSION="~> ${version}" bundle update
24
+ minor_version=$(echo $version | cut -c1-3)
25
+ output_dir="/vagrant/${minor_version}"
26
+ mkdir -p $output_dir
27
+ if [ $operatingsystem == 'archlinux' -o $operatingsystem == 'gentoo' ]; then
28
+ output_file="${output_dir}/${operatingsystem}-${hardwaremodel}.facts"
29
+ else
30
+ output_file="${output_dir}/${operatingsystem}-${operatingsystemmajrelease}-${hardwaremodel}.facts"
31
+ fi
32
+ echo $version | grep -q -E '^1\.' &&
33
+ FACTER_GEM_VERSION="~> ${version}" bundle exec facter -j | bundle exec ruby -e 'require "json"; jj JSON.parse gets' | tee $output_file ||
34
+ FACTER_GEM_VERSION="~> ${version}" bundle exec facter -j | tee $output_file
35
+ done
@@ -0,0 +1,5 @@
1
+ module FacterDB
2
+ module Version
3
+ STRING = '0.0.1'
4
+ end
5
+ end
data/lib/facterdb.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'facter'
2
+
3
+ module FacterDB
4
+
5
+ def get_os_facts
6
+ facts_dir = File.expand_path(File.join(File.dirname(__FILE__), '../facts'))
7
+ ret = []
8
+ Dir.glob("#{facts_dir}/*/*.facts") do |file|
9
+ ret << JSON.parse(IO.read(file), :symbolize_names => true)
10
+ end
11
+ ret
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'FacterDB' do
4
+
5
+ describe '#get_os_facts' do
6
+
7
+ context 'without parameters' do
8
+ subject { get_os_facts() }
9
+ it "Should return an array of hashes with at least 1 element" do
10
+ expect(subject.class).to eq Array
11
+ expect(subject.size).not_to eq(0)
12
+ expect(subject.select { |facts| facts.class != Hash }.size).to eq(0)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
4
+ require 'rspec'
5
+ require 'facterdb'
6
+ include FacterDB