facterdb 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitmodules +2 -2
- data/.travis.yml +1 -1
- data/CHANGELOG.md +39 -0
- data/README.md +88 -83
- data/Rakefile +21 -7
- data/facts/1.6/archlinux-x86_64.facts +21 -34
- data/facts/1.6/centos-6-x86_64.facts +50 -49
- data/facts/1.6/centos-7-x86_64.facts +20 -21
- data/facts/1.6/debian-10-x86_64.facts +57 -0
- data/facts/1.6/debian-8-x86_64.facts +34 -29
- data/facts/1.6/debian-9-x86_64.facts +56 -0
- data/facts/1.6/fedora-28-x86_64.facts +52 -0
- data/facts/1.6/fedora-29-x86_64.facts +52 -0
- data/facts/1.6/fedora-30-x86_64.facts +52 -0
- data/facts/1.6/freebsd-11-x86_64.facts +15 -15
- data/facts/1.6/freebsd-12-x86_64.facts +50 -0
- data/facts/1.6/linuxmint-18-x86_64.facts +68 -0
- data/facts/1.6/linuxmint-19-x86_64.facts +58 -0
- data/facts/1.6/openbsd-6.2-i386.facts +62 -0
- data/facts/1.6/openbsd-6.2-x86_64.facts +62 -0
- data/facts/1.6/openbsd-6.3-i386.facts +62 -0
- data/facts/1.6/openbsd-6.3-x86_64.facts +62 -0
- data/facts/1.6/openbsd-6.4-x86_64.facts +62 -0
- data/facts/1.6/oraclelinux-6-x86_64.facts +50 -49
- data/facts/1.6/oraclelinux-7-x86_64.facts +20 -21
- data/facts/1.6/redhat-6-x86_64.facts +50 -49
- data/facts/1.6/redhat-7-x86_64.facts +20 -21
- data/facts/1.6/redhat-8-x86_64.facts +60 -0
- data/facts/1.6/scientific-6-x86_64.facts +50 -49
- data/facts/1.6/scientific-7-x86_64.facts +20 -21
- data/facts/1.6/sles-11-x86_64.facts +58 -51
- data/facts/1.6/sles-12-x86_64.facts +26 -41
- data/facts/1.6/ubuntu-14.04-x86_64.facts +12 -13
- data/facts/1.6/ubuntu-16.04-x86_64.facts +27 -27
- data/facts/1.6/ubuntu-18.04-x86_64.facts +18 -17
- data/facts/1.7/archlinux-x86_64.facts +31 -58
- data/facts/1.7/centos-6-x86_64.facts +67 -66
- data/facts/1.7/centos-7-x86_64.facts +26 -27
- data/facts/1.7/debian-10-x86_64.facts +73 -0
- data/facts/1.7/debian-8-x86_64.facts +41 -36
- data/facts/1.7/debian-9-x86_64.facts +72 -0
- data/facts/1.7/fedora-26-x86_64.facts +53 -53
- data/facts/1.7/fedora-28-x86_64.facts +71 -0
- data/facts/1.7/fedora-29-x86_64.facts +71 -0
- data/facts/1.7/fedora-30-x86_64.facts +71 -0
- data/facts/1.7/freebsd-11-x86_64.facts +23 -23
- data/facts/1.7/freebsd-12-x86_64.facts +64 -0
- data/facts/1.7/linuxmint-18-x86_64.facts +85 -0
- data/facts/1.7/linuxmint-19-x86_64.facts +81 -0
- data/facts/1.7/openbsd-6.2-i386.facts +69 -0
- data/facts/1.7/openbsd-6.2-x86_64.facts +69 -0
- data/facts/1.7/openbsd-6.3-i386.facts +69 -0
- data/facts/1.7/openbsd-6.3-x86_64.facts +69 -0
- data/facts/1.7/openbsd-6.4-x86_64.facts +69 -0
- data/facts/1.7/oraclelinux-6-x86_64.facts +67 -66
- data/facts/1.7/oraclelinux-7-x86_64.facts +26 -27
- data/facts/1.7/redhat-6-x86_64.facts +67 -66
- data/facts/1.7/redhat-7-x86_64.facts +26 -27
- data/facts/1.7/redhat-8-x86_64.facts +83 -0
- data/facts/1.7/scientific-6-x86_64.facts +67 -66
- data/facts/1.7/scientific-7-x86_64.facts +26 -27
- data/facts/1.7/sles-11-x86_64.facts +73 -71
- data/facts/1.7/sles-12-x86_64.facts +63 -60
- data/facts/1.7/ubuntu-14.04-x86_64.facts +13 -14
- data/facts/1.7/ubuntu-16.04-x86_64.facts +40 -37
- data/facts/1.7/ubuntu-18.04-x86_64.facts +24 -23
- data/facts/2.0/archlinux-x86_64.facts +47 -73
- data/facts/2.0/centos-6-x86_64.facts +62 -61
- data/facts/2.0/centos-7-x86_64.facts +27 -26
- data/facts/2.0/darwin-17-x86_64.facts +92 -0
- data/facts/2.0/darwin-18-x86_64.facts +91 -0
- data/facts/2.0/debian-10-x86_64.facts +75 -0
- data/facts/2.0/debian-8-x86_64.facts +75 -70
- data/facts/2.0/debian-9-x86_64.facts +66 -77
- data/facts/2.0/fedora-26-x86_64.facts +5 -19
- data/facts/2.0/fedora-28-x86_64.facts +71 -0
- data/facts/2.0/fedora-29-x86_64.facts +71 -0
- data/facts/2.0/fedora-30-x86_64.facts +71 -0
- data/facts/2.0/freebsd-11-x86_64.facts +46 -46
- data/facts/2.0/freebsd-12-x86_64.facts +65 -0
- data/facts/2.0/linuxmint-18-x86_64.facts +86 -0
- data/facts/2.0/linuxmint-19-x86_64.facts +82 -0
- data/facts/2.0/openbsd-6.2-i386.facts +70 -0
- data/facts/2.0/openbsd-6.2-x86_64.facts +70 -0
- data/facts/2.0/openbsd-6.3-i386.facts +70 -0
- data/facts/2.0/openbsd-6.3-x86_64.facts +70 -0
- data/facts/2.0/openbsd-6.4-x86_64.facts +70 -0
- data/facts/2.0/oraclelinux-6-x86_64.facts +62 -61
- data/facts/2.0/oraclelinux-7-x86_64.facts +27 -26
- data/facts/2.0/redhat-6-x86_64.facts +62 -61
- data/facts/2.0/redhat-7-x86_64.facts +27 -26
- data/facts/2.0/redhat-8-x86_64.facts +83 -0
- data/facts/2.0/scientific-6-x86_64.facts +62 -61
- data/facts/2.0/scientific-7-x86_64.facts +27 -26
- data/facts/2.0/sles-11-x86_64.facts +72 -70
- data/facts/2.0/sles-12-x86_64.facts +64 -68
- data/facts/2.0/ubuntu-14.04-x86_64.facts +13 -14
- data/facts/2.0/ubuntu-16.04-x86_64.facts +70 -67
- data/facts/2.0/ubuntu-18.04-x86_64.facts +63 -62
- data/facts/2.1/archlinux-x86_64.facts +57 -86
- data/facts/2.1/centos-6-x86_64.facts +69 -68
- data/facts/2.1/centos-7-x86_64.facts +28 -27
- data/facts/2.1/darwin-17-x86_64.facts +92 -0
- data/facts/2.1/darwin-18-x86_64.facts +91 -0
- data/facts/2.1/debian-10-x86_64.facts +92 -0
- data/facts/2.1/debian-8-x86_64.facts +90 -74
- data/facts/2.1/debian-9-x86_64.facts +77 -89
- data/facts/2.1/fedora-26-x86_64.facts +6 -28
- data/facts/2.1/fedora-28-x86_64.facts +85 -0
- data/facts/2.1/fedora-29-x86_64.facts +90 -0
- data/facts/2.1/fedora-30-x86_64.facts +90 -0
- data/facts/2.1/freebsd-11-x86_64.facts +45 -45
- data/facts/2.1/freebsd-12-x86_64.facts +65 -0
- data/facts/2.1/linuxmint-18-x86_64.facts +106 -0
- data/facts/2.1/linuxmint-19-x86_64.facts +95 -0
- data/facts/2.1/openbsd-6.2-i386.facts +72 -0
- data/facts/2.1/openbsd-6.2-x86_64.facts +72 -0
- data/facts/2.1/openbsd-6.3-i386.facts +72 -0
- data/facts/2.1/openbsd-6.3-x86_64.facts +72 -0
- data/facts/2.1/openbsd-6.4-x86_64.facts +72 -0
- data/facts/2.1/oraclelinux-6-x86_64.facts +69 -68
- data/facts/2.1/oraclelinux-7-x86_64.facts +28 -27
- data/facts/2.1/redhat-6-x86_64.facts +69 -68
- data/facts/2.1/redhat-7-x86_64.facts +28 -27
- data/facts/2.1/redhat-8-x86_64.facts +97 -0
- data/facts/2.1/scientific-6-x86_64.facts +69 -68
- data/facts/2.1/scientific-7-x86_64.facts +28 -27
- data/facts/2.1/sles-11-x86_64.facts +76 -79
- data/facts/2.1/sles-12-x86_64.facts +74 -89
- data/facts/2.1/ubuntu-14.04-x86_64.facts +13 -14
- data/facts/2.1/ubuntu-16.04-x86_64.facts +75 -81
- data/facts/2.1/ubuntu-18.04-x86_64.facts +74 -73
- data/facts/2.2/archlinux-x86_64.facts +76 -107
- data/facts/2.2/centos-6-x86_64.facts +90 -89
- data/facts/2.2/centos-7-x86_64.facts +33 -32
- data/facts/2.2/darwin-17-x86_64.facts +113 -0
- data/facts/2.2/darwin-18-x86_64.facts +112 -0
- data/facts/2.2/debian-10-x86_64.facts +123 -0
- data/facts/2.2/debian-8-x86_64.facts +115 -98
- data/facts/2.2/debian-9-x86_64.facts +100 -112
- data/facts/2.2/fedora-26-x86_64.facts +13 -14
- data/facts/2.2/fedora-28-x86_64.facts +107 -0
- data/facts/2.2/fedora-29-x86_64.facts +112 -0
- data/facts/2.2/fedora-30-x86_64.facts +112 -0
- data/facts/2.2/freebsd-11-x86_64.facts +63 -63
- data/facts/2.2/freebsd-12-x86_64.facts +86 -0
- data/facts/2.2/linuxmint-18-x86_64.facts +138 -0
- data/facts/2.2/linuxmint-19-x86_64.facts +127 -0
- data/facts/2.2/openbsd-6.2-i386.facts +140 -0
- data/facts/2.2/openbsd-6.2-x86_64.facts +140 -0
- data/facts/2.2/openbsd-6.3-i386.facts +140 -0
- data/facts/2.2/openbsd-6.3-x86_64.facts +140 -0
- data/facts/2.2/openbsd-6.4-x86_64.facts +140 -0
- data/facts/2.2/oraclelinux-6-x86_64.facts +90 -89
- data/facts/2.2/oraclelinux-7-x86_64.facts +33 -32
- data/facts/2.2/redhat-6-x86_64.facts +90 -89
- data/facts/2.2/redhat-7-x86_64.facts +33 -32
- data/facts/2.2/redhat-8-x86_64.facts +121 -0
- data/facts/2.2/scientific-6-x86_64.facts +90 -89
- data/facts/2.2/scientific-7-x86_64.facts +33 -32
- data/facts/2.2/sles-11-x86_64.facts +93 -96
- data/facts/2.2/sles-12-x86_64.facts +101 -93
- data/facts/2.2/ubuntu-14.04-x86_64.facts +16 -17
- data/facts/2.2/ubuntu-16.04-x86_64.facts +90 -95
- data/facts/2.2/ubuntu-18.04-x86_64.facts +90 -89
- data/facts/2.3/archlinux-x86_64.facts +73 -104
- data/facts/2.3/centos-6-x86_64.facts +96 -95
- data/facts/2.3/centos-7-x86_64.facts +33 -32
- data/facts/2.3/darwin-17-x86_64.facts +114 -0
- data/facts/2.3/darwin-18-x86_64.facts +113 -0
- data/facts/2.3/debian-10-x86_64.facts +124 -0
- data/facts/2.3/debian-8-x86_64.facts +116 -99
- data/facts/2.3/debian-9-x86_64.facts +102 -114
- data/facts/2.3/fedora-26-x86_64.facts +7 -8
- data/facts/2.3/fedora-28-x86_64.facts +108 -0
- data/facts/2.3/fedora-29-x86_64.facts +113 -0
- data/facts/2.3/fedora-30-x86_64.facts +113 -0
- data/facts/2.3/freebsd-11-x86_64.facts +48 -48
- data/facts/2.3/freebsd-12-x86_64.facts +87 -0
- data/facts/2.3/linuxmint-18-x86_64.facts +139 -0
- data/facts/2.3/linuxmint-19-x86_64.facts +128 -0
- data/facts/2.3/openbsd-6.2-i386.facts +143 -0
- data/facts/2.3/openbsd-6.2-x86_64.facts +143 -0
- data/facts/2.3/openbsd-6.3-i386.facts +143 -0
- data/facts/2.3/openbsd-6.3-x86_64.facts +143 -0
- data/facts/2.3/openbsd-6.4-x86_64.facts +143 -0
- data/facts/2.3/oraclelinux-6-x86_64.facts +96 -95
- data/facts/2.3/oraclelinux-7-x86_64.facts +33 -32
- data/facts/2.3/redhat-6-x86_64.facts +96 -95
- data/facts/2.3/redhat-7-x86_64.facts +33 -32
- data/facts/2.3/redhat-8-x86_64.facts +122 -0
- data/facts/2.3/scientific-6-x86_64.facts +96 -95
- data/facts/2.3/scientific-7-x86_64.facts +33 -32
- data/facts/2.3/sles-11-x86_64.facts +96 -99
- data/facts/2.3/sles-12-x86_64.facts +93 -85
- data/facts/2.3/ubuntu-14.04-x86_64.facts +16 -17
- data/facts/2.3/ubuntu-16.04-x86_64.facts +91 -96
- data/facts/2.3/ubuntu-18.04-x86_64.facts +91 -90
- data/facts/2.4/archlinux-x86_64.facts +79 -108
- data/facts/2.4/centos-6-x86_64.facts +90 -88
- data/facts/2.4/centos-7-x86_64.facts +34 -32
- data/facts/2.4/darwin-17-x86_64.facts +114 -0
- data/facts/2.4/darwin-18-x86_64.facts +113 -0
- data/facts/2.4/debian-10-x86_64.facts +124 -0
- data/facts/2.4/debian-8-x86_64.facts +117 -99
- data/facts/2.4/debian-9-x86_64.facts +103 -114
- data/facts/2.4/fedora-26-x86_64.facts +94 -127
- data/facts/2.4/fedora-28-x86_64.facts +110 -0
- data/facts/2.4/fedora-29-x86_64.facts +114 -0
- data/facts/2.4/fedora-30-x86_64.facts +114 -0
- data/facts/2.4/freebsd-11-x86_64.facts +58 -58
- data/facts/2.4/freebsd-12-x86_64.facts +87 -0
- data/facts/2.4/linuxmint-18-x86_64.facts +140 -0
- data/facts/2.4/linuxmint-19-x86_64.facts +129 -0
- data/facts/2.4/openbsd-6.2-i386.facts +143 -0
- data/facts/2.4/openbsd-6.2-x86_64.facts +143 -0
- data/facts/2.4/openbsd-6.3-i386.facts +143 -0
- data/facts/2.4/openbsd-6.3-x86_64.facts +143 -0
- data/facts/2.4/openbsd-6.4-x86_64.facts +143 -0
- data/facts/2.4/oraclelinux-6-x86_64.facts +90 -88
- data/facts/2.4/oraclelinux-7-x86_64.facts +34 -32
- data/facts/2.4/redhat-6-x86_64.facts +90 -88
- data/facts/2.4/redhat-7-x86_64.facts +34 -32
- data/facts/2.4/redhat-8-x86_64.facts +123 -0
- data/facts/2.4/scientific-6-x86_64.facts +90 -88
- data/facts/2.4/scientific-7-x86_64.facts +34 -32
- data/facts/2.4/sles-11-x86_64.facts +96 -98
- data/facts/2.4/sles-12-x86_64.facts +104 -44
- data/facts/2.4/ubuntu-14.04-x86_64.facts +17 -17
- data/facts/2.4/ubuntu-16.04-x86_64.facts +93 -96
- data/facts/2.4/ubuntu-18.04-x86_64.facts +92 -90
- data/facts/2.5/archlinux-x86_64.facts +98 -0
- data/facts/2.5/centos-6-x86_64.facts +91 -105
- data/facts/2.5/centos-7-x86_64.facts +57 -60
- data/facts/2.5/darwin-17-x86_64.facts +114 -0
- data/facts/2.5/darwin-18-x86_64.facts +113 -0
- data/facts/2.5/debian-10-x86_64.facts +124 -0
- data/facts/2.5/debian-8-x86_64.facts +121 -114
- data/facts/2.5/debian-9-x86_64.facts +103 -114
- data/facts/2.5/fedora-28-x86_64.facts +74 -74
- data/facts/2.5/fedora-29-x86_64.facts +114 -0
- data/facts/2.5/fedora-30-x86_64.facts +114 -0
- data/facts/2.5/freebsd-11-x86_64.facts +60 -60
- data/facts/2.5/freebsd-12-x86_64.facts +87 -0
- data/facts/2.5/linuxmint-18-x86_64.facts +140 -0
- data/facts/2.5/linuxmint-19-x86_64.facts +129 -0
- data/facts/2.5/openbsd-6.2-i386.facts +143 -0
- data/facts/2.5/openbsd-6.2-x86_64.facts +143 -0
- data/facts/2.5/openbsd-6.3-i386.facts +143 -0
- data/facts/2.5/openbsd-6.3-x86_64.facts +143 -0
- data/facts/2.5/openbsd-6.4-x86_64.facts +143 -0
- data/facts/2.5/oraclelinux-5-x86_64.facts +115 -117
- data/facts/2.5/oraclelinux-6-x86_64.facts +90 -94
- data/facts/2.5/oraclelinux-7-x86_64.facts +70 -78
- data/facts/2.5/redhat-5-x86_64.facts +109 -103
- data/facts/2.5/redhat-6-x86_64.facts +97 -111
- data/facts/2.5/redhat-7-x86_64.facts +66 -68
- data/facts/2.5/redhat-8-x86_64.facts +123 -0
- data/facts/2.5/scientific-5-x86_64.facts +109 -103
- data/facts/2.5/scientific-6-x86_64.facts +96 -92
- data/facts/2.5/scientific-7-x86_64.facts +62 -65
- data/facts/2.5/sles-11-x86_64.facts +100 -103
- data/facts/2.5/sles-12-x86_64.facts +94 -94
- data/facts/2.5/solaris-10-i86pc.facts +201 -0
- data/facts/2.5/ubuntu-14.04-x86_64.facts +100 -103
- data/facts/2.5/ubuntu-16.04-x86_64.facts +97 -102
- data/facts/2.5/ubuntu-18.04-x86_64.facts +92 -90
- data/facts/2.5/windows-2019-x86_64.facts +73 -0
- data/facts/3.0/centos-6-x86_64.facts +127 -163
- data/facts/3.0/centos-7-x86_64.facts +75 -66
- data/facts/3.0/oraclelinux-5-x86_64.facts +83 -121
- data/facts/3.0/oraclelinux-6-x86_64.facts +109 -127
- data/facts/3.0/oraclelinux-7-x86_64.facts +75 -66
- data/facts/3.0/redhat-5-x86_64.facts +81 -72
- data/facts/3.0/redhat-6-x86_64.facts +127 -163
- data/facts/3.0/redhat-7-x86_64.facts +75 -66
- data/facts/3.0/scientific-5-x86_64.facts +85 -76
- data/facts/3.0/scientific-6-x86_64.facts +126 -147
- data/facts/3.0/scientific-7-x86_64.facts +75 -66
- data/facts/3.0/windows-2019-x86_64.facts +143 -0
- data/facts/3.1/centos-6-x86_64.facts +138 -174
- data/facts/3.1/centos-7-x86_64.facts +83 -74
- data/facts/3.1/oraclelinux-5-x86_64.facts +93 -107
- data/facts/3.1/oraclelinux-6-x86_64.facts +120 -138
- data/facts/3.1/oraclelinux-7-x86_64.facts +83 -74
- data/facts/3.1/redhat-5-x86_64.facts +92 -79
- data/facts/3.1/redhat-6-x86_64.facts +138 -174
- data/facts/3.1/redhat-7-x86_64.facts +83 -74
- data/facts/3.1/scientific-5-x86_64.facts +96 -83
- data/facts/3.1/scientific-6-x86_64.facts +135 -156
- data/facts/3.1/scientific-7-x86_64.facts +83 -74
- data/facts/3.1/windows-2019-x86_64.facts +160 -0
- data/facts/3.10/centos-5-i386.facts +357 -0
- data/facts/3.10/centos-5-x86_64.facts +357 -0
- data/facts/3.10/centos-6-i386.facts +349 -0
- data/facts/3.10/centos-6-x86_64.facts +34 -34
- data/facts/3.10/centos-7-x86_64.facts +34 -34
- data/facts/3.10/darwin-15-x86_64.facts +398 -0
- data/facts/3.10/darwin-16-x86_64.facts +402 -0
- data/facts/3.10/darwin-17-x86_64.facts +423 -0
- data/facts/3.10/debian-8-x86_64.facts +162 -155
- data/facts/3.10/debian-9-x86_64.facts +122 -90
- data/facts/3.10/freebsd-11-amd64.facts +460 -0
- data/facts/3.10/freebsd-12-amd64.facts +460 -0
- data/facts/3.10/linuxmint-18-x86_64.facts +457 -0
- data/facts/3.10/openbsd-6.3-i386.facts +411 -0
- data/facts/3.10/openbsd-6.3-x86_64.facts +411 -0
- data/facts/3.10/oraclelinux-5-x86_64.facts +357 -0
- data/facts/3.10/oraclelinux-6-x86_64.facts +34 -34
- data/facts/3.10/oraclelinux-7-x86_64.facts +34 -34
- data/facts/3.10/redhat-5-i386.facts +357 -0
- data/facts/3.10/redhat-5-x86_64.facts +357 -0
- data/facts/3.10/redhat-6-i386.facts +349 -0
- data/facts/3.10/redhat-6-x86_64.facts +34 -34
- data/facts/3.10/redhat-7-x86_64.facts +34 -34
- data/facts/3.10/scientific-5-i386.facts +357 -0
- data/facts/3.10/scientific-5-x86_64.facts +357 -0
- data/facts/3.10/scientific-6-i386.facts +349 -0
- data/facts/3.10/scientific-6-x86_64.facts +34 -34
- data/facts/3.10/scientific-7-x86_64.facts +34 -34
- data/facts/3.10/sles-11-i386.facts +348 -0
- data/facts/3.10/sles-11-x86_64.facts +365 -0
- data/facts/3.10/sles-12-x86_64.facts +785 -0
- data/facts/3.10/ubuntu-14.04-x86_64.facts +33 -33
- data/facts/3.10/ubuntu-16.04-x86_64.facts +86 -86
- data/facts/3.10/windows-10-i386.facts +166 -0
- data/facts/3.10/windows-10-x86_64.facts +166 -0
- data/facts/3.10/windows-2012 r2-core-x86_64.facts +166 -0
- data/facts/3.10/windows-2012 r2-x86_64.facts +166 -0
- data/facts/3.10/windows-2012-x86_64.facts +166 -0
- data/facts/3.10/windows-2016-x86_64.facts +166 -0
- data/facts/3.10/windows-2019-x86_64.facts +166 -0
- data/facts/3.11/centos-5-i386.facts +359 -0
- data/facts/3.11/centos-5-x86_64.facts +359 -0
- data/facts/3.11/centos-6-i386.facts +351 -0
- data/facts/3.11/centos-6-x86_64.facts +73 -41
- data/facts/3.11/centos-7-i386.facts +427 -0
- data/facts/3.11/centos-7-x86_64.facts +145 -50
- data/facts/3.11/darwin-16-x86_64.facts +457 -0
- data/facts/3.11/darwin-17-x86_64.facts +427 -0
- data/facts/3.11/darwin-18-x86_64.facts +451 -0
- data/facts/3.11/debian-10-x86_64.facts +426 -0
- data/facts/3.11/debian-8-x86_64.facts +162 -155
- data/facts/3.11/debian-9-x86_64.facts +202 -83
- data/facts/3.11/fedora-28-x86_64.facts +418 -0
- data/facts/3.11/fedora-29-x86_64.facts +530 -0
- data/facts/3.11/freebsd-11-amd64.facts +463 -0
- data/facts/3.11/freebsd-12-amd64.facts +463 -0
- data/facts/3.11/linuxmint-18-x86_64.facts +461 -0
- data/facts/3.11/linuxmint-19-x86_64.facts +426 -0
- data/facts/3.11/opensuse-15-x86_64.facts +584 -0
- data/facts/3.11/oraclelinux-5-x86_64.facts +359 -0
- data/facts/3.11/oraclelinux-6-i386.facts +351 -0
- data/facts/3.11/oraclelinux-6-x86_64.facts +73 -41
- data/facts/3.11/oraclelinux-7-i386.facts +427 -0
- data/facts/3.11/oraclelinux-7-x86_64.facts +145 -50
- data/facts/3.11/redhat-5-i386.facts +359 -0
- data/facts/3.11/redhat-5-x86_64.facts +359 -0
- data/facts/3.11/redhat-6-i386.facts +351 -0
- data/facts/3.11/redhat-6-x86_64.facts +73 -41
- data/facts/3.11/redhat-7-i386.facts +427 -0
- data/facts/3.11/redhat-7-x86_64.facts +145 -50
- data/facts/3.11/redhat-8-x86_64.facts +504 -0
- data/facts/3.11/scientific-5-i386.facts +359 -0
- data/facts/3.11/scientific-5-x86_64.facts +359 -0
- data/facts/3.11/scientific-6-i386.facts +351 -0
- data/facts/3.11/scientific-6-x86_64.facts +73 -41
- data/facts/3.11/scientific-7-i386.facts +427 -0
- data/facts/3.11/scientific-7-x86_64.facts +145 -50
- data/facts/3.11/sles-11-i386.facts +351 -0
- data/facts/3.11/sles-11-x86_64.facts +429 -0
- data/facts/3.11/sles-12-x86_64.facts +873 -0
- data/facts/3.11/solaris-10-i86pc.facts +603 -0
- data/facts/3.11/ubuntu-14.04-x86_64.facts +36 -36
- data/facts/3.11/ubuntu-16.04-x86_64.facts +86 -86
- data/facts/3.11/ubuntu-18.04-x86_64.facts +157 -70
- data/facts/3.11/windows-10-i386.facts +176 -0
- data/facts/3.11/windows-10-x86_64.facts +176 -0
- data/facts/3.11/windows-2012 r2-core-x86_64.facts +174 -0
- data/facts/3.11/windows-2012 r2-x86_64.facts +174 -0
- data/facts/3.11/windows-2012-x86_64.facts +174 -0
- data/facts/3.11/windows-2016-x86_64.facts +176 -0
- data/facts/3.11/windows-2019-x86_64.facts +176 -0
- data/facts/3.12/centos-6-x86_64.facts +351 -0
- data/facts/3.12/centos-7-x86_64.facts +427 -0
- data/facts/3.12/darwin-16-x86_64.facts +440 -0
- data/facts/3.12/darwin-17-x86_64.facts +461 -0
- data/facts/3.12/debian-8-x86_64.facts +452 -0
- data/facts/3.12/debian-9-x86_64.facts +472 -0
- data/facts/3.12/fedora-28-x86_64.facts +418 -0
- data/facts/3.12/fedora-29-x86_64.facts +423 -0
- data/facts/3.12/freebsd-11-amd64.facts +493 -0
- data/facts/3.12/freebsd-12-amd64.facts +493 -0
- data/facts/3.12/linuxmint-18-x86_64.facts +461 -0
- data/facts/3.12/linuxmint-19-x86_64.facts +426 -0
- data/facts/3.12/openbsd-6.4-x86_64.facts +412 -0
- data/facts/3.12/oraclelinux-6-x86_64.facts +351 -0
- data/facts/3.12/oraclelinux-7-x86_64.facts +427 -0
- data/facts/3.12/redhat-6-x86_64.facts +351 -0
- data/facts/3.12/redhat-7-x86_64.facts +427 -0
- data/facts/3.12/redhat-8-x86_64.facts +409 -0
- data/facts/3.12/scientific-6-x86_64.facts +351 -0
- data/facts/3.12/scientific-7-x86_64.facts +427 -0
- data/facts/3.12/sles-11-x86_64.facts +368 -0
- data/facts/3.12/sles-12-x86_64.facts +789 -0
- data/facts/3.12/ubuntu-14.04-x86_64.facts +460 -0
- data/facts/3.12/ubuntu-16.04-x86_64.facts +432 -0
- data/facts/3.12/ubuntu-18.04-x86_64.facts +432 -0
- data/facts/3.12/windows-10-i386.facts +168 -0
- data/facts/3.12/windows-10-x86_64.facts +168 -0
- data/facts/3.12/windows-2012 r2-core-x86_64.facts +168 -0
- data/facts/3.12/windows-2012 r2-x86_64.facts +168 -0
- data/facts/3.12/windows-2012-x86_64.facts +168 -0
- data/facts/3.12/windows-2016-x86_64.facts +168 -0
- data/facts/3.12/windows-2019-x86_64.facts +168 -0
- data/facts/3.13/archlinux-x86_64.facts +421 -0
- data/facts/3.13/centos-6-x86_64.facts +351 -0
- data/facts/3.13/centos-7-x86_64.facts +427 -0
- data/facts/3.13/darwin-16-x86_64.facts +423 -0
- data/facts/3.13/darwin-17-x86_64.facts +444 -0
- data/facts/3.13/darwin-18-x86_64.facts +434 -0
- data/facts/3.13/debian-8-x86_64.facts +452 -0
- data/facts/3.13/debian-9-x86_64.facts +472 -0
- data/facts/3.13/fedora-28-x86_64.facts +418 -0
- data/facts/3.13/fedora-29-x86_64.facts +423 -0
- data/facts/3.13/freebsd-11-amd64.facts +493 -0
- data/facts/3.13/freebsd-12-amd64.facts +493 -0
- data/facts/3.13/linuxmint-18-x86_64.facts +461 -0
- data/facts/3.13/linuxmint-19-x86_64.facts +426 -0
- data/facts/3.13/oraclelinux-6-x86_64.facts +351 -0
- data/facts/3.13/oraclelinux-7-x86_64.facts +427 -0
- data/facts/3.13/redhat-6-x86_64.facts +351 -0
- data/facts/3.13/redhat-7-x86_64.facts +427 -0
- data/facts/3.13/redhat-8-x86_64.facts +415 -0
- data/facts/3.13/scientific-6-x86_64.facts +351 -0
- data/facts/3.13/scientific-7-x86_64.facts +427 -0
- data/facts/3.13/sles-11-x86_64.facts +368 -0
- data/facts/3.13/sles-12-x86_64.facts +789 -0
- data/facts/3.13/ubuntu-14.04-x86_64.facts +460 -0
- data/facts/3.13/ubuntu-16.04-x86_64.facts +432 -0
- data/facts/3.13/ubuntu-18.04-x86_64.facts +432 -0
- data/facts/3.13/windows-10-i386.facts +168 -0
- data/facts/3.13/windows-10-x86_64.facts +168 -0
- data/facts/3.13/windows-2012 r2-core-x86_64.facts +168 -0
- data/facts/3.13/windows-2012 r2-x86_64.facts +168 -0
- data/facts/3.13/windows-2012-x86_64.facts +168 -0
- data/facts/3.13/windows-2016-x86_64.facts +168 -0
- data/facts/3.13/windows-2019-x86_64.facts +168 -0
- data/facts/3.14/centos-6-x86_64.facts +351 -0
- data/facts/3.14/centos-7-x86_64.facts +427 -0
- data/facts/3.14/darwin-16-x86_64.facts +406 -0
- data/facts/3.14/darwin-17-x86_64.facts +427 -0
- data/facts/3.14/darwin-18-x86_64.facts +417 -0
- data/facts/3.14/debian-8-x86_64.facts +452 -0
- data/facts/3.14/debian-9-x86_64.facts +472 -0
- data/facts/3.14/fedora-28-x86_64.facts +418 -0
- data/facts/3.14/fedora-29-x86_64.facts +423 -0
- data/facts/3.14/fedora-30-x86_64.facts +423 -0
- data/facts/3.14/freebsd-11-amd64.facts +485 -0
- data/facts/3.14/freebsd-12-amd64.facts +494 -0
- data/facts/3.14/linuxmint-18-x86_64.facts +461 -0
- data/facts/3.14/linuxmint-19-x86_64.facts +426 -0
- data/facts/3.14/oraclelinux-6-x86_64.facts +351 -0
- data/facts/3.14/oraclelinux-7-x86_64.facts +427 -0
- data/facts/3.14/redhat-6-x86_64.facts +351 -0
- data/facts/3.14/redhat-7-x86_64.facts +427 -0
- data/facts/3.14/redhat-8-x86_64.facts +415 -0
- data/facts/3.14/scientific-6-x86_64.facts +351 -0
- data/facts/3.14/scientific-7-x86_64.facts +427 -0
- data/facts/3.14/sles-11-x86_64.facts +368 -0
- data/facts/3.14/sles-12-x86_64.facts +789 -0
- data/facts/3.14/ubuntu-14.04-x86_64.facts +460 -0
- data/facts/3.14/ubuntu-16.04-x86_64.facts +432 -0
- data/facts/3.14/ubuntu-18.04-x86_64.facts +432 -0
- data/facts/3.14/windows-10-i386.facts +176 -0
- data/facts/3.14/windows-10-x86_64.facts +176 -0
- data/facts/3.14/windows-2012 r2-core-x86_64.facts +174 -0
- data/facts/3.14/windows-2012 r2-x86_64.facts +174 -0
- data/facts/3.14/windows-2012-x86_64.facts +174 -0
- data/facts/3.14/windows-2016-x86_64.facts +176 -0
- data/facts/3.14/windows-2019-x86_64.facts +176 -0
- data/facts/3.3/centos-6-x86_64.facts +138 -174
- data/facts/3.3/centos-7-x86_64.facts +85 -76
- data/facts/3.3/oraclelinux-5-x86_64.facts +93 -107
- data/facts/3.3/oraclelinux-6-x86_64.facts +119 -137
- data/facts/3.3/oraclelinux-7-x86_64.facts +85 -76
- data/facts/3.3/redhat-5-x86_64.facts +92 -79
- data/facts/3.3/redhat-6-x86_64.facts +138 -174
- data/facts/3.3/redhat-7-x86_64.facts +85 -76
- data/facts/3.3/scientific-5-x86_64.facts +96 -83
- data/facts/3.3/scientific-6-x86_64.facts +135 -156
- data/facts/3.3/scientific-7-x86_64.facts +85 -76
- data/facts/3.3/windows-2019-x86_64.facts +160 -0
- data/facts/3.4/oraclelinux-5-x86_64.facts +93 -107
- data/facts/3.4/oraclelinux-6-x86_64.facts +123 -105
- data/facts/3.4/oraclelinux-7-x86_64.facts +99 -109
- data/facts/3.4/redhat-5-x86_64.facts +92 -79
- data/facts/3.4/redhat-6-x86_64.facts +62 -62
- data/facts/3.4/redhat-7-x86_64.facts +110 -111
- data/facts/3.4/scientific-5-x86_64.facts +96 -83
- data/facts/3.4/scientific-6-x86_64.facts +97 -82
- data/facts/3.4/scientific-7-x86_64.facts +85 -85
- data/facts/3.4/sles-11-x86_64.facts +146 -149
- data/facts/3.4/sles-12-x86_64.facts +507 -136
- data/facts/3.4/windows-2019-x86_64.facts +162 -0
- data/facts/3.5/oraclelinux-5-x86_64.facts +97 -111
- data/facts/3.5/oraclelinux-6-x86_64.facts +129 -110
- data/facts/3.5/oraclelinux-7-x86_64.facts +120 -134
- data/facts/3.5/redhat-5-x86_64.facts +94 -81
- data/facts/3.5/redhat-6-x86_64.facts +63 -63
- data/facts/3.5/redhat-7-x86_64.facts +140 -125
- data/facts/3.5/scientific-5-x86_64.facts +100 -87
- data/facts/3.5/scientific-6-x86_64.facts +97 -82
- data/facts/3.5/scientific-7-x86_64.facts +100 -100
- data/facts/3.5/sles-11-x86_64.facts +164 -165
- data/facts/3.5/sles-12-x86_64.facts +544 -152
- data/facts/3.5/windows-2019-x86_64.facts +162 -0
- data/facts/3.6/centos-6-x86_64.facts +36 -36
- data/facts/3.6/centos-7-x86_64.facts +32 -32
- data/facts/3.6/oraclelinux-5-x86_64.facts +97 -111
- data/facts/3.6/oraclelinux-6-x86_64.facts +36 -36
- data/facts/3.6/oraclelinux-7-x86_64.facts +32 -32
- data/facts/{2.4 → 3.6}/pcs-6-x86_64.facts +0 -0
- data/facts/3.6/redhat-5-x86_64.facts +92 -79
- data/facts/3.6/redhat-6-x86_64.facts +36 -36
- data/facts/3.6/redhat-7-x86_64.facts +32 -32
- data/facts/3.6/scientific-5-x86_64.facts +100 -87
- data/facts/3.6/scientific-6-x86_64.facts +36 -36
- data/facts/3.6/scientific-7-x86_64.facts +32 -32
- data/facts/3.6/sles-11-x86_64.facts +167 -168
- data/facts/3.6/sles-12-x86_64.facts +547 -155
- data/facts/3.6/windows-2019-x86_64.facts +162 -0
- data/facts/3.7/centos-6-x86_64.facts +143 -180
- data/facts/3.7/centos-7-x86_64.facts +146 -162
- data/facts/3.7/debian-8-x86_64.facts +203 -222
- data/facts/3.7/linuxmint-18-x86_64.facts +450 -0
- data/facts/3.7/oraclelinux-5-x86_64.facts +97 -111
- data/facts/3.7/oraclelinux-6-x86_64.facts +124 -142
- data/facts/3.7/oraclelinux-7-x86_64.facts +176 -206
- data/facts/3.7/redhat-5-x86_64.facts +94 -81
- data/facts/3.7/redhat-6-x86_64.facts +143 -180
- data/facts/3.7/redhat-7-x86_64.facts +187 -188
- data/facts/3.7/scientific-5-x86_64.facts +100 -87
- data/facts/3.7/scientific-6-x86_64.facts +140 -162
- data/facts/3.7/scientific-7-x86_64.facts +154 -170
- data/facts/3.7/sles-11-x86_64.facts +164 -165
- data/facts/3.7/sles-12-x86_64.facts +549 -157
- data/facts/3.7/ubuntu-14.04-x86_64.facts +131 -149
- data/facts/3.7/ubuntu-16.04-x86_64.facts +162 -223
- data/facts/3.7/windows-2019-x86_64.facts +162 -0
- data/facts/3.8/centos-6-x86_64.facts +142 -179
- data/facts/3.8/centos-7-x86_64.facts +149 -165
- data/facts/3.8/debian-8-x86_64.facts +205 -224
- data/facts/3.8/debian-9-x86_64.facts +204 -218
- data/facts/3.8/linuxmint-18-x86_64.facts +450 -0
- data/facts/3.8/openbsd-6.2-i386.facts +417 -0
- data/facts/3.8/openbsd-6.2-x86_64.facts +417 -0
- data/facts/3.8/oraclelinux-5-x86_64.facts +98 -112
- data/facts/3.8/oraclelinux-6-x86_64.facts +147 -189
- data/facts/3.8/oraclelinux-7-x86_64.facts +177 -207
- data/facts/3.8/redhat-5-x86_64.facts +92 -79
- data/facts/3.8/redhat-6-x86_64.facts +144 -181
- data/facts/3.8/redhat-7-x86_64.facts +188 -189
- data/facts/3.8/scientific-5-x86_64.facts +99 -86
- data/facts/3.8/scientific-6-x86_64.facts +141 -163
- data/facts/3.8/scientific-7-x86_64.facts +155 -171
- data/facts/3.8/sles-11-x86_64.facts +165 -166
- data/facts/3.8/sles-12-x86_64.facts +550 -158
- data/facts/3.8/ubuntu-14.04-x86_64.facts +132 -150
- data/facts/3.8/ubuntu-16.04-x86_64.facts +163 -224
- data/facts/3.8/windows-2019-x86_64.facts +162 -0
- data/facts/3.9/{archlinux-4-x86_64.facts → archlinux-x86_64.facts} +0 -0
- data/facts/3.9/centos-5-i386.facts +356 -0
- data/facts/3.9/centos-5-x86_64.facts +356 -0
- data/facts/3.9/centos-6-i386.facts +348 -0
- data/facts/3.9/centos-6-x86_64.facts +34 -34
- data/facts/3.9/centos-7-x86_64.facts +34 -34
- data/facts/3.9/darwin-15-x86_64.facts +415 -0
- data/facts/3.9/darwin-16-x86_64.facts +419 -0
- data/facts/3.9/darwin-17-x86_64.facts +440 -0
- data/facts/3.9/debian-8-x86_64.facts +162 -155
- data/facts/3.9/debian-9-x86_64.facts +120 -88
- data/facts/3.9/freebsd-11-amd64.facts +123 -123
- data/facts/3.9/freebsd-12-amd64.facts +460 -0
- data/facts/3.9/linuxmint-18-x86_64.facts +456 -0
- data/facts/3.9/oraclelinux-5-x86_64.facts +356 -0
- data/facts/3.9/oraclelinux-6-x86_64.facts +34 -34
- data/facts/3.9/oraclelinux-7-x86_64.facts +34 -34
- data/facts/3.9/redhat-5-i386.facts +356 -0
- data/facts/3.9/redhat-5-x86_64.facts +356 -0
- data/facts/3.9/redhat-6-i386.facts +348 -0
- data/facts/3.9/redhat-6-x86_64.facts +34 -34
- data/facts/3.9/redhat-7-x86_64.facts +34 -34
- data/facts/3.9/scientific-5-i386.facts +356 -0
- data/facts/3.9/scientific-5-x86_64.facts +356 -0
- data/facts/3.9/scientific-6-i386.facts +348 -0
- data/facts/3.9/scientific-6-x86_64.facts +34 -34
- data/facts/3.9/scientific-7-x86_64.facts +34 -34
- data/facts/3.9/sles-11-i386.facts +347 -0
- data/facts/3.9/sles-11-x86_64.facts +364 -0
- data/facts/3.9/sles-12-x86_64.facts +784 -0
- data/facts/3.9/{solaris-10-i386.facts → solaris-10-i86pc.facts} +0 -5
- data/facts/3.9/ubuntu-14.04-x86_64.facts +34 -34
- data/facts/3.9/ubuntu-16.04-x86_64.facts +86 -86
- data/facts/3.9/windows-10-i386.facts +166 -0
- data/facts/3.9/windows-10-x86_64.facts +166 -0
- data/facts/3.9/windows-2012 r2-core-x86_64.facts +166 -0
- data/facts/3.9/windows-2012 r2-x86_64.facts +166 -0
- data/facts/3.9/windows-2012-x86_64.facts +166 -0
- data/facts/3.9/windows-2016-x86_64.facts +166 -0
- data/facts/3.9/windows-2019-x86_64.facts +166 -0
- data/facts/Vagrantfile +78 -46
- data/facts/get_facts.sh +184 -63
- data/lib/facterdb/version.rb +1 -1
- data/rakelib/rhel_alts.rake +24 -0
- data/spec/facterdb_spec.rb +252 -114
- data/spec/facts_spec.rb +81 -0
- data/spec/spec_helper.rb +9 -2
- metadata +328 -45
- data/facts/1.6/fedora-26-x86_64.facts +0 -72
- data/facts/1.6/solaris-11-x86_64.facts +0 -60
- data/facts/1.7/solaris-11-x86_64.facts +0 -80
- data/facts/2.0/solaris-11-x86_64.facts +0 -82
- data/facts/2.1/solaris-11-x86_64.facts +0 -82
- data/facts/2.2/solaris-11-x86_64.facts +0 -105
- data/facts/2.4/fedora-20-x86_64.facts +0 -116
- data/facts/2.4/fedora-21-x86_64.facts +0 -123
- data/facts/2.5/amazon-2017-x86_64.facts +0 -61
- data/facts/2.5/archlinux-4-x86_64.facts +0 -98
- data/facts/2.5/fedora-20-x86_64.facts +0 -116
- data/facts/2.5/fedora-21-x86_64.facts +0 -123
- data/facts/3.0/fedora-20-x86_64.facts +0 -116
- data/facts/3.0/fedora-21-x86_64.facts +0 -123
- data/facts/3.0/fedora-26-x86_64.facts +0 -143
- data/facts/3.1/fedora-20-x86_64.facts +0 -116
- data/facts/3.1/fedora-21-x86_64.facts +0 -123
- data/facts/3.1/fedora-26-x86_64.facts +0 -143
- data/facts/3.2/fedora-20-x86_64.facts +0 -116
- data/facts/3.2/fedora-21-x86_64.facts +0 -123
- data/facts/3.2/fedora-26-x86_64.facts +0 -143
- data/facts/3.3/fedora-20-x86_64.facts +0 -116
- data/facts/3.3/fedora-21-x86_64.facts +0 -123
- data/facts/3.3/fedora-26-x86_64.facts +0 -143
- data/facts/3.4/fedora-20-x86_64.facts +0 -116
- data/facts/3.4/fedora-21-x86_64.facts +0 -123
- data/facts/3.4/fedora-26-x86_64.facts +0 -143
- data/facts/3.5/fedora-20-x86_64.facts +0 -116
- data/facts/3.5/fedora-21-x86_64.facts +0 -123
- data/facts/3.5/fedora-26-x86_64.facts +0 -143
- data/facts/3.6/fedora-20-x86_64.facts +0 -116
- data/facts/3.6/fedora-21-x86_64.facts +0 -123
- data/facts/3.6/fedora-26-x86_64.facts +0 -143
- data/facts/3.7/fedora-20-x86_64.facts +0 -116
- data/facts/3.7/fedora-21-x86_64.facts +0 -123
- data/facts/3.7/fedora-26-x86_64.facts +0 -143
- data/facts/3.8/fedora-20-x86_64.facts +0 -116
- data/facts/3.8/fedora-21-x86_64.facts +0 -123
- data/facts/3.8/fedora-26-x86_64.facts +0 -143
- data/facts/3.9/solaris-10-x86_64.facts +0 -679
data/lib/facterdb/version.rb
CHANGED
@@ -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
|
data/spec/facterdb_spec.rb
CHANGED
@@ -1,181 +1,319 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe
|
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 '
|
23
|
+
describe '.use_defaultdb?' do
|
24
|
+
subject { described_class.use_defaultdb? }
|
6
25
|
|
7
26
|
before(:each) do
|
8
|
-
ENV
|
9
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
18
|
-
|
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
|
-
|
22
|
-
|
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
|
-
|
27
|
-
|
28
|
-
|
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
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
-
|
38
|
-
ENV
|
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
|
-
|
43
|
-
|
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
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
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
|
-
|
55
|
-
ENV
|
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
|
-
|
61
|
-
ENV
|
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 '
|
67
|
-
ENV['
|
68
|
-
|
69
|
-
expect(
|
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
|
-
|
156
|
+
context 'with no loaded fact sets' do
|
73
157
|
before(:each) do
|
74
|
-
|
75
|
-
|
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
|
81
|
-
|
82
|
-
|
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 '
|
86
|
-
|
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 '
|
91
|
-
|
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 '
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
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
|
-
|
111
|
-
|
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 '
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
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
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
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 '
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
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 '
|
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
|
-
|
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
|
-
|
157
|
-
|
158
|
-
|
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
|
-
|
166
|
-
|
167
|
-
|
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
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
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
|