facterdb 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/Gemfile +9 -0
- data/LICENSE +201 -0
- data/README.md +84 -0
- data/Rakefile +5 -0
- data/facterdb.gemspec +24 -0
- data/facts/1.6/archlinux-i386.facts +56 -0
- data/facts/1.6/archlinux-x86_64.facts +56 -0
- data/facts/1.6/centos-5-i386.facts +68 -0
- data/facts/1.6/centos-5-x86_64.facts +68 -0
- data/facts/1.6/centos-6-i386.facts +61 -0
- data/facts/1.6/centos-6-x86_64.facts +61 -0
- data/facts/1.6/centos-7-i386.facts +52 -0
- data/facts/1.6/centos-7-x86_64.facts +52 -0
- data/facts/1.6/debian-6-i386.facts +66 -0
- data/facts/1.6/debian-6-x86_64.facts +66 -0
- data/facts/1.6/debian-7-i386.facts +67 -0
- data/facts/1.6/debian-7-x86_64.facts +67 -0
- data/facts/1.6/debian-8-i386.facts +67 -0
- data/facts/1.6/debian-8-x86_64.facts +67 -0
- data/facts/1.6/fedora-19-i386.facts +44 -0
- data/facts/1.6/fedora-19-x86_64.facts +44 -0
- data/facts/1.6/freebsd-10-i386.facts +57 -0
- data/facts/1.6/freebsd-10-x86_64.facts +57 -0
- data/facts/1.6/freebsd-9-i386.facts +57 -0
- data/facts/1.6/freebsd-9-x86_64.facts +57 -0
- data/facts/1.6/gentoo-i386.facts +46 -0
- data/facts/1.6/gentoo-x86_64.facts +46 -0
- data/facts/1.6/opensuse-12-i386.facts +55 -0
- data/facts/1.6/opensuse-12-x86_64.facts +55 -0
- data/facts/1.6/opensuse-13-i386.facts +55 -0
- data/facts/1.6/opensuse-13-x86_64.facts +55 -0
- data/facts/1.6/oraclelinux-5-i386.facts +68 -0
- data/facts/1.6/oraclelinux-5-x86_64.facts +68 -0
- data/facts/1.6/oraclelinux-6-i386.facts +61 -0
- data/facts/1.6/oraclelinux-6-x86_64.facts +61 -0
- data/facts/1.6/oraclelinux-7-i386.facts +52 -0
- data/facts/1.6/oraclelinux-7-x86_64.facts +52 -0
- data/facts/1.6/redhat-5-i386.facts +68 -0
- data/facts/1.6/redhat-5-x86_64.facts +68 -0
- data/facts/1.6/redhat-6-i386.facts +61 -0
- data/facts/1.6/redhat-6-x86_64.facts +61 -0
- data/facts/1.6/redhat-7-i386.facts +52 -0
- data/facts/1.6/redhat-7-x86_64.facts +52 -0
- data/facts/1.6/scientific-5-i386.facts +68 -0
- data/facts/1.6/scientific-5-x86_64.facts +68 -0
- data/facts/1.6/scientific-6-i386.facts +61 -0
- data/facts/1.6/scientific-6-x86_64.facts +61 -0
- data/facts/1.6/scientific-7-i386.facts +52 -0
- data/facts/1.6/scientific-7-x86_64.facts +52 -0
- data/facts/1.6/sles-11-i386.facts +61 -0
- data/facts/1.6/sles-11-x86_64.facts +61 -0
- data/facts/1.6/solaris-11-x86_64.facts +60 -0
- data/facts/1.6/ubuntu-10.04-i386.facts +66 -0
- data/facts/1.6/ubuntu-10.04-x86_64.facts +66 -0
- data/facts/1.6/ubuntu-12.04-i386.facts +67 -0
- data/facts/1.6/ubuntu-12.04-x86_64.facts +67 -0
- data/facts/1.6/ubuntu-14.04-i386.facts +67 -0
- data/facts/1.6/ubuntu-14.04-x86_64.facts +67 -0
- data/facts/1.6/ubuntu-14.10-i386.facts +67 -0
- data/facts/1.6/ubuntu-14.10-x86_64.facts +67 -0
- data/facts/1.6/ubuntu-15.04-i386.facts +67 -0
- data/facts/1.6/ubuntu-15.04-x86_64.facts +67 -0
- data/facts/1.7/archlinux-i386.facts +82 -0
- data/facts/1.7/archlinux-x86_64.facts +82 -0
- data/facts/1.7/centos-5-i386.facts +82 -0
- data/facts/1.7/centos-5-x86_64.facts +82 -0
- data/facts/1.7/centos-6-i386.facts +77 -0
- data/facts/1.7/centos-6-x86_64.facts +77 -0
- data/facts/1.7/centos-7-i386.facts +75 -0
- data/facts/1.7/centos-7-x86_64.facts +75 -0
- data/facts/1.7/debian-6-i386.facts +88 -0
- data/facts/1.7/debian-6-x86_64.facts +88 -0
- data/facts/1.7/debian-7-i386.facts +84 -0
- data/facts/1.7/debian-7-x86_64.facts +84 -0
- data/facts/1.7/debian-8-i386.facts +87 -0
- data/facts/1.7/debian-8-x86_64.facts +87 -0
- data/facts/1.7/fedora-19-i386.facts +67 -0
- data/facts/1.7/fedora-19-x86_64.facts +67 -0
- data/facts/1.7/freebsd-10-i386.facts +76 -0
- data/facts/1.7/freebsd-10-x86_64.facts +76 -0
- data/facts/1.7/freebsd-9-i386.facts +76 -0
- data/facts/1.7/freebsd-9-x86_64.facts +76 -0
- data/facts/1.7/gentoo-i386.facts +70 -0
- data/facts/1.7/gentoo-x86_64.facts +70 -0
- data/facts/1.7/opensuse-12-i386.facts +70 -0
- data/facts/1.7/opensuse-12-x86_64.facts +70 -0
- data/facts/1.7/opensuse-13-i386.facts +67 -0
- data/facts/1.7/opensuse-13-x86_64.facts +67 -0
- data/facts/1.7/oraclelinux-5-i386.facts +82 -0
- data/facts/1.7/oraclelinux-5-x86_64.facts +82 -0
- data/facts/1.7/oraclelinux-6-i386.facts +77 -0
- data/facts/1.7/oraclelinux-6-x86_64.facts +77 -0
- data/facts/1.7/oraclelinux-7-i386.facts +75 -0
- data/facts/1.7/oraclelinux-7-x86_64.facts +75 -0
- data/facts/1.7/redhat-5-i386.facts +82 -0
- data/facts/1.7/redhat-5-x86_64.facts +82 -0
- data/facts/1.7/redhat-6-i386.facts +77 -0
- data/facts/1.7/redhat-6-x86_64.facts +77 -0
- data/facts/1.7/redhat-7-i386.facts +75 -0
- data/facts/1.7/redhat-7-x86_64.facts +75 -0
- data/facts/1.7/scientific-5-i386.facts +82 -0
- data/facts/1.7/scientific-5-x86_64.facts +82 -0
- data/facts/1.7/scientific-6-i386.facts +77 -0
- data/facts/1.7/scientific-6-x86_64.facts +77 -0
- data/facts/1.7/scientific-7-i386.facts +75 -0
- data/facts/1.7/scientific-7-x86_64.facts +75 -0
- data/facts/1.7/sles-11-i386.facts +82 -0
- data/facts/1.7/sles-11-x86_64.facts +82 -0
- data/facts/1.7/solaris-11-x86_64.facts +80 -0
- data/facts/1.7/ubuntu-10.04-i386.facts +87 -0
- data/facts/1.7/ubuntu-10.04-x86_64.facts +87 -0
- data/facts/1.7/ubuntu-12.04-i386.facts +89 -0
- data/facts/1.7/ubuntu-12.04-x86_64.facts +89 -0
- data/facts/1.7/ubuntu-14.04-i386.facts +83 -0
- data/facts/1.7/ubuntu-14.04-x86_64.facts +83 -0
- data/facts/1.7/ubuntu-14.10-i386.facts +83 -0
- data/facts/1.7/ubuntu-14.10-x86_64.facts +83 -0
- data/facts/1.7/ubuntu-15.04-i386.facts +83 -0
- data/facts/1.7/ubuntu-15.04-x86_64.facts +83 -0
- data/facts/2.0/archlinux-i386.facts +83 -0
- data/facts/2.0/archlinux-x86_64.facts +83 -0
- data/facts/2.0/centos-5-i386.facts +81 -0
- data/facts/2.0/centos-5-x86_64.facts +81 -0
- data/facts/2.0/centos-6-i386.facts +76 -0
- data/facts/2.0/centos-6-x86_64.facts +76 -0
- data/facts/2.0/centos-7-i386.facts +74 -0
- data/facts/2.0/centos-7-x86_64.facts +74 -0
- data/facts/2.0/debian-6-i386.facts +87 -0
- data/facts/2.0/debian-6-x86_64.facts +87 -0
- data/facts/2.0/debian-7-i386.facts +83 -0
- data/facts/2.0/debian-7-x86_64.facts +83 -0
- data/facts/2.0/debian-8-i386.facts +88 -0
- data/facts/2.0/debian-8-x86_64.facts +88 -0
- data/facts/2.0/fedora-19-i386.facts +66 -0
- data/facts/2.0/fedora-19-x86_64.facts +66 -0
- data/facts/2.0/freebsd-10-i386.facts +75 -0
- data/facts/2.0/freebsd-10-x86_64.facts +75 -0
- data/facts/2.0/freebsd-9-i386.facts +75 -0
- data/facts/2.0/freebsd-9-x86_64.facts +75 -0
- data/facts/2.0/gentoo-i386.facts +71 -0
- data/facts/2.0/gentoo-x86_64.facts +71 -0
- data/facts/2.0/opensuse-12-i386.facts +69 -0
- data/facts/2.0/opensuse-12-x86_64.facts +69 -0
- data/facts/2.0/opensuse-13-i386.facts +66 -0
- data/facts/2.0/opensuse-13-x86_64.facts +66 -0
- data/facts/2.0/oraclelinux-5-i386.facts +81 -0
- data/facts/2.0/oraclelinux-5-x86_64.facts +81 -0
- data/facts/2.0/oraclelinux-6-i386.facts +76 -0
- data/facts/2.0/oraclelinux-6-x86_64.facts +76 -0
- data/facts/2.0/oraclelinux-7-i386.facts +74 -0
- data/facts/2.0/oraclelinux-7-x86_64.facts +74 -0
- data/facts/2.0/redhat-5-i386.facts +81 -0
- data/facts/2.0/redhat-5-x86_64.facts +81 -0
- data/facts/2.0/redhat-6-i386.facts +76 -0
- data/facts/2.0/redhat-6-x86_64.facts +76 -0
- data/facts/2.0/redhat-7-i386.facts +74 -0
- data/facts/2.0/redhat-7-x86_64.facts +74 -0
- data/facts/2.0/scientific-5-i386.facts +81 -0
- data/facts/2.0/scientific-5-x86_64.facts +81 -0
- data/facts/2.0/scientific-6-i386.facts +76 -0
- data/facts/2.0/scientific-6-x86_64.facts +76 -0
- data/facts/2.0/scientific-7-i386.facts +74 -0
- data/facts/2.0/scientific-7-x86_64.facts +74 -0
- data/facts/2.0/sles-11-i386.facts +81 -0
- data/facts/2.0/sles-11-x86_64.facts +81 -0
- data/facts/2.0/solaris-11-x86_64.facts +82 -0
- data/facts/2.0/ubuntu-10.04-i386.facts +86 -0
- data/facts/2.0/ubuntu-10.04-x86_64.facts +86 -0
- data/facts/2.0/ubuntu-12.04-i386.facts +88 -0
- data/facts/2.0/ubuntu-12.04-x86_64.facts +88 -0
- data/facts/2.0/ubuntu-14.04-i386.facts +84 -0
- data/facts/2.0/ubuntu-14.04-x86_64.facts +84 -0
- data/facts/2.0/ubuntu-14.10-i386.facts +84 -0
- data/facts/2.0/ubuntu-14.10-x86_64.facts +84 -0
- data/facts/2.0/ubuntu-15.04-i386.facts +82 -0
- data/facts/2.0/ubuntu-15.04-x86_64.facts +82 -0
- data/facts/2.1/archlinux-i386.facts +99 -0
- data/facts/2.1/archlinux-x86_64.facts +99 -0
- data/facts/2.1/centos-5-i386.facts +92 -0
- data/facts/2.1/centos-5-x86_64.facts +92 -0
- data/facts/2.1/centos-6-i386.facts +88 -0
- data/facts/2.1/centos-6-x86_64.facts +88 -0
- data/facts/2.1/centos-7-i386.facts +92 -0
- data/facts/2.1/centos-7-x86_64.facts +92 -0
- data/facts/2.1/debian-6-i386.facts +102 -0
- data/facts/2.1/debian-6-x86_64.facts +102 -0
- data/facts/2.1/debian-7-i386.facts +98 -0
- data/facts/2.1/debian-7-x86_64.facts +98 -0
- data/facts/2.1/debian-8-i386.facts +105 -0
- data/facts/2.1/debian-8-x86_64.facts +105 -0
- data/facts/2.1/fedora-19-i386.facts +84 -0
- data/facts/2.1/fedora-19-x86_64.facts +84 -0
- data/facts/2.1/freebsd-10-i386.facts +75 -0
- data/facts/2.1/freebsd-10-x86_64.facts +75 -0
- data/facts/2.1/freebsd-9-i386.facts +75 -0
- data/facts/2.1/freebsd-9-x86_64.facts +75 -0
- data/facts/2.1/gentoo-i386.facts +96 -0
- data/facts/2.1/gentoo-x86_64.facts +96 -0
- data/facts/2.1/opensuse-12-i386.facts +81 -0
- data/facts/2.1/opensuse-12-x86_64.facts +81 -0
- data/facts/2.1/opensuse-13-i386.facts +85 -0
- data/facts/2.1/opensuse-13-x86_64.facts +85 -0
- data/facts/2.1/oraclelinux-5-i386.facts +92 -0
- data/facts/2.1/oraclelinux-5-x86_64.facts +92 -0
- data/facts/2.1/oraclelinux-6-i386.facts +88 -0
- data/facts/2.1/oraclelinux-6-x86_64.facts +88 -0
- data/facts/2.1/oraclelinux-7-i386.facts +92 -0
- data/facts/2.1/oraclelinux-7-x86_64.facts +92 -0
- data/facts/2.1/redhat-5-i386.facts +92 -0
- data/facts/2.1/redhat-5-x86_64.facts +92 -0
- data/facts/2.1/redhat-6-i386.facts +88 -0
- data/facts/2.1/redhat-6-x86_64.facts +88 -0
- data/facts/2.1/redhat-7-i386.facts +92 -0
- data/facts/2.1/redhat-7-x86_64.facts +92 -0
- data/facts/2.1/scientific-5-i386.facts +92 -0
- data/facts/2.1/scientific-5-x86_64.facts +92 -0
- data/facts/2.1/scientific-6-i386.facts +88 -0
- data/facts/2.1/scientific-6-x86_64.facts +88 -0
- data/facts/2.1/scientific-7-i386.facts +92 -0
- data/facts/2.1/scientific-7-x86_64.facts +92 -0
- data/facts/2.1/sles-11-i386.facts +94 -0
- data/facts/2.1/sles-11-x86_64.facts +94 -0
- data/facts/2.1/solaris-11-x86_64.facts +82 -0
- data/facts/2.1/ubuntu-10.04-i386.facts +101 -0
- data/facts/2.1/ubuntu-10.04-x86_64.facts +101 -0
- data/facts/2.1/ubuntu-12.04-i386.facts +103 -0
- data/facts/2.1/ubuntu-12.04-x86_64.facts +103 -0
- data/facts/2.1/ubuntu-14.04-i386.facts +99 -0
- data/facts/2.1/ubuntu-14.04-x86_64.facts +99 -0
- data/facts/2.1/ubuntu-14.10-i386.facts +100 -0
- data/facts/2.1/ubuntu-14.10-x86_64.facts +100 -0
- data/facts/2.1/ubuntu-15.04-i386.facts +90 -0
- data/facts/2.1/ubuntu-15.04-x86_64.facts +90 -0
- data/facts/2.2/archlinux-i386.facts +126 -0
- data/facts/2.2/archlinux-x86_64.facts +126 -0
- data/facts/2.2/centos-5-i386.facts +125 -0
- data/facts/2.2/centos-5-x86_64.facts +125 -0
- data/facts/2.2/centos-6-i386.facts +111 -0
- data/facts/2.2/centos-6-x86_64.facts +111 -0
- data/facts/2.2/centos-7-i386.facts +115 -0
- data/facts/2.2/centos-7-x86_64.facts +115 -0
- data/facts/2.2/debian-6-i386.facts +134 -0
- data/facts/2.2/debian-6-x86_64.facts +134 -0
- data/facts/2.2/debian-7-i386.facts +130 -0
- data/facts/2.2/debian-7-x86_64.facts +130 -0
- data/facts/2.2/debian-8-i386.facts +137 -0
- data/facts/2.2/debian-8-x86_64.facts +137 -0
- data/facts/2.2/fedora-19-i386.facts +106 -0
- data/facts/2.2/fedora-19-x86_64.facts +106 -0
- data/facts/2.2/freebsd-10-i386.facts +96 -0
- data/facts/2.2/freebsd-10-x86_64.facts +96 -0
- data/facts/2.2/freebsd-9-i386.facts +96 -0
- data/facts/2.2/freebsd-9-x86_64.facts +96 -0
- data/facts/2.2/gentoo-i386.facts +121 -0
- data/facts/2.2/gentoo-x86_64.facts +121 -0
- data/facts/2.2/opensuse-12-i386.facts +105 -0
- data/facts/2.2/opensuse-12-x86_64.facts +105 -0
- data/facts/2.2/opensuse-13-i386.facts +109 -0
- data/facts/2.2/opensuse-13-x86_64.facts +109 -0
- data/facts/2.2/oraclelinux-5-i386.facts +125 -0
- data/facts/2.2/oraclelinux-5-x86_64.facts +125 -0
- data/facts/2.2/oraclelinux-6-i386.facts +111 -0
- data/facts/2.2/oraclelinux-6-x86_64.facts +111 -0
- data/facts/2.2/oraclelinux-7-i386.facts +115 -0
- data/facts/2.2/oraclelinux-7-x86_64.facts +115 -0
- data/facts/2.2/redhat-5-i386.facts +125 -0
- data/facts/2.2/redhat-5-x86_64.facts +125 -0
- data/facts/2.2/redhat-6-i386.facts +111 -0
- data/facts/2.2/redhat-6-x86_64.facts +111 -0
- data/facts/2.2/redhat-7-i386.facts +115 -0
- data/facts/2.2/redhat-7-x86_64.facts +115 -0
- data/facts/2.2/scientific-5-i386.facts +125 -0
- data/facts/2.2/scientific-5-x86_64.facts +125 -0
- data/facts/2.2/scientific-6-i386.facts +111 -0
- data/facts/2.2/scientific-6-x86_64.facts +111 -0
- data/facts/2.2/scientific-7-i386.facts +115 -0
- data/facts/2.2/scientific-7-x86_64.facts +115 -0
- data/facts/2.2/sles-11-i386.facts +118 -0
- data/facts/2.2/sles-11-x86_64.facts +118 -0
- data/facts/2.2/solaris-11-x86_64.facts +105 -0
- data/facts/2.2/ubuntu-10.04-i386.facts +131 -0
- data/facts/2.2/ubuntu-10.04-x86_64.facts +131 -0
- data/facts/2.2/ubuntu-12.04-i386.facts +133 -0
- data/facts/2.2/ubuntu-12.04-x86_64.facts +133 -0
- data/facts/2.2/ubuntu-14.04-i386.facts +129 -0
- data/facts/2.2/ubuntu-14.04-x86_64.facts +129 -0
- data/facts/2.2/ubuntu-14.10-i386.facts +130 -0
- data/facts/2.2/ubuntu-14.10-x86_64.facts +130 -0
- data/facts/2.2/ubuntu-15.04-i386.facts +120 -0
- data/facts/2.2/ubuntu-15.04-x86_64.facts +120 -0
- data/facts/2.3/archlinux-i386.facts +127 -0
- data/facts/2.3/archlinux-x86_64.facts +127 -0
- data/facts/2.3/centos-5-i386.facts +126 -0
- data/facts/2.3/centos-5-x86_64.facts +126 -0
- data/facts/2.3/centos-6-i386.facts +112 -0
- data/facts/2.3/centos-6-x86_64.facts +112 -0
- data/facts/2.3/centos-7-i386.facts +116 -0
- data/facts/2.3/centos-7-x86_64.facts +116 -0
- data/facts/2.3/debian-6-i386.facts +135 -0
- data/facts/2.3/debian-6-x86_64.facts +135 -0
- data/facts/2.3/debian-7-i386.facts +131 -0
- data/facts/2.3/debian-7-x86_64.facts +131 -0
- data/facts/2.3/debian-8-i386.facts +138 -0
- data/facts/2.3/debian-8-x86_64.facts +138 -0
- data/facts/2.3/fedora-19-i386.facts +107 -0
- data/facts/2.3/fedora-19-x86_64.facts +107 -0
- data/facts/2.3/freebsd-10-i386.facts +97 -0
- data/facts/2.3/freebsd-10-x86_64.facts +97 -0
- data/facts/2.3/freebsd-9-i386.facts +97 -0
- data/facts/2.3/freebsd-9-x86_64.facts +97 -0
- data/facts/2.3/gentoo-i386.facts +122 -0
- data/facts/2.3/gentoo-x86_64.facts +122 -0
- data/facts/2.3/opensuse-12-i386.facts +106 -0
- data/facts/2.3/opensuse-12-x86_64.facts +106 -0
- data/facts/2.3/opensuse-13-i386.facts +110 -0
- data/facts/2.3/opensuse-13-x86_64.facts +110 -0
- data/facts/2.3/oraclelinux-5-i386.facts +126 -0
- data/facts/2.3/oraclelinux-5-x86_64.facts +126 -0
- data/facts/2.3/oraclelinux-6-i386.facts +112 -0
- data/facts/2.3/oraclelinux-6-x86_64.facts +112 -0
- data/facts/2.3/oraclelinux-7-i386.facts +116 -0
- data/facts/2.3/oraclelinux-7-x86_64.facts +116 -0
- data/facts/2.3/redhat-5-i386.facts +126 -0
- data/facts/2.3/redhat-5-x86_64.facts +126 -0
- data/facts/2.3/redhat-6-i386.facts +112 -0
- data/facts/2.3/redhat-6-x86_64.facts +112 -0
- data/facts/2.3/redhat-7-i386.facts +116 -0
- data/facts/2.3/redhat-7-x86_64.facts +116 -0
- data/facts/2.3/scientific-5-i386.facts +126 -0
- data/facts/2.3/scientific-5-x86_64.facts +126 -0
- data/facts/2.3/scientific-6-i386.facts +112 -0
- data/facts/2.3/scientific-6-x86_64.facts +112 -0
- data/facts/2.3/scientific-7-i386.facts +116 -0
- data/facts/2.3/scientific-7-x86_64.facts +116 -0
- data/facts/2.3/sles-11-i386.facts +119 -0
- data/facts/2.3/sles-11-x86_64.facts +119 -0
- data/facts/2.3/solaris-11-x86_64.facts +106 -0
- data/facts/2.3/ubuntu-10.04-i386.facts +132 -0
- data/facts/2.3/ubuntu-10.04-x86_64.facts +132 -0
- data/facts/2.3/ubuntu-12.04-i386.facts +134 -0
- data/facts/2.3/ubuntu-12.04-x86_64.facts +134 -0
- data/facts/2.3/ubuntu-14.04-i386.facts +130 -0
- data/facts/2.3/ubuntu-14.04-x86_64.facts +130 -0
- data/facts/2.3/ubuntu-14.10-i386.facts +131 -0
- data/facts/2.3/ubuntu-14.10-x86_64.facts +131 -0
- data/facts/2.3/ubuntu-15.04-i386.facts +121 -0
- data/facts/2.3/ubuntu-15.04-x86_64.facts +121 -0
- data/facts/2.4/archlinux-i386.facts +127 -0
- data/facts/2.4/archlinux-x86_64.facts +127 -0
- data/facts/2.4/centos-5-i386.facts +127 -0
- data/facts/2.4/centos-5-x86_64.facts +127 -0
- data/facts/2.4/centos-6-i386.facts +112 -0
- data/facts/2.4/centos-6-x86_64.facts +112 -0
- data/facts/2.4/centos-7-i386.facts +116 -0
- data/facts/2.4/centos-7-x86_64.facts +116 -0
- data/facts/2.4/debian-6-i386.facts +135 -0
- data/facts/2.4/debian-6-x86_64.facts +135 -0
- data/facts/2.4/debian-7-i386.facts +131 -0
- data/facts/2.4/debian-7-x86_64.facts +131 -0
- data/facts/2.4/debian-8-i386.facts +138 -0
- data/facts/2.4/debian-8-x86_64.facts +138 -0
- data/facts/2.4/fedora-19-i386.facts +107 -0
- data/facts/2.4/fedora-19-x86_64.facts +107 -0
- data/facts/2.4/freebsd-10-i386.facts +97 -0
- data/facts/2.4/freebsd-10-x86_64.facts +97 -0
- data/facts/2.4/freebsd-9-i386.facts +97 -0
- data/facts/2.4/freebsd-9-x86_64.facts +97 -0
- data/facts/2.4/gentoo-i386.facts +126 -0
- data/facts/2.4/gentoo-x86_64.facts +126 -0
- data/facts/2.4/opensuse-12-i386.facts +106 -0
- data/facts/2.4/opensuse-12-x86_64.facts +106 -0
- data/facts/2.4/opensuse-13-i386.facts +110 -0
- data/facts/2.4/opensuse-13-x86_64.facts +110 -0
- data/facts/2.4/oraclelinux-5-i386.facts +127 -0
- data/facts/2.4/oraclelinux-5-x86_64.facts +127 -0
- data/facts/2.4/oraclelinux-6-i386.facts +112 -0
- data/facts/2.4/oraclelinux-6-x86_64.facts +112 -0
- data/facts/2.4/oraclelinux-7-i386.facts +116 -0
- data/facts/2.4/oraclelinux-7-x86_64.facts +116 -0
- data/facts/2.4/redhat-5-i386.facts +127 -0
- data/facts/2.4/redhat-5-x86_64.facts +127 -0
- data/facts/2.4/redhat-6-i386.facts +112 -0
- data/facts/2.4/redhat-6-x86_64.facts +112 -0
- data/facts/2.4/redhat-7-i386.facts +116 -0
- data/facts/2.4/redhat-7-x86_64.facts +116 -0
- data/facts/2.4/scientific-5-i386.facts +127 -0
- data/facts/2.4/scientific-5-x86_64.facts +127 -0
- data/facts/2.4/scientific-6-i386.facts +112 -0
- data/facts/2.4/scientific-6-x86_64.facts +112 -0
- data/facts/2.4/scientific-7-i386.facts +116 -0
- data/facts/2.4/scientific-7-x86_64.facts +116 -0
- data/facts/2.4/sles-11-i386.facts +119 -0
- data/facts/2.4/sles-11-x86_64.facts +119 -0
- data/facts/2.4/solaris-11-x86_64.facts +106 -0
- data/facts/2.4/ubuntu-10.04-i386.facts +132 -0
- data/facts/2.4/ubuntu-10.04-x86_64.facts +132 -0
- data/facts/2.4/ubuntu-12.04-i386.facts +134 -0
- data/facts/2.4/ubuntu-12.04-x86_64.facts +134 -0
- data/facts/2.4/ubuntu-14.04-i386.facts +130 -0
- data/facts/2.4/ubuntu-14.04-x86_64.facts +130 -0
- data/facts/2.4/ubuntu-14.10-i386.facts +131 -0
- data/facts/2.4/ubuntu-14.10-x86_64.facts +131 -0
- data/facts/2.4/ubuntu-15.04-i386.facts +122 -0
- data/facts/2.4/ubuntu-15.04-x86_64.facts +122 -0
- data/facts/Gemfile +9 -0
- data/facts/Vagrantfile +174 -0
- data/facts/get_facts.sh +35 -0
- data/lib/facterdb/version.rb +5 -0
- data/lib/facterdb.rb +13 -0
- data/spec/facterdb_spec.rb +16 -0
- data/spec/spec_helper.rb +6 -0
- 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
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
|
data/facts/get_facts.sh
ADDED
@@ -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
|
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
|