facter 1.6.18 → 1.7.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of facter might be problematic. Click here for more details.
- data/Gemfile +23 -8
- data/bin/facter +4 -1
- data/ext/build_defaults.yaml +1 -1
- data/ext/debian/changelog.erb +4 -22
- data/ext/debian/control +2 -2
- data/ext/project_data.yaml +1 -1
- data/ext/redhat/facter.spec.erb +10 -9
- data/install.rb +27 -53
- data/lib/facter.rb +23 -5
- data/lib/facter/application.rb +21 -0
- data/lib/facter/blockdevices.rb +105 -0
- data/lib/facter/domain.rb +19 -7
- data/lib/facter/filesystems.rb +38 -0
- data/lib/facter/hardwaremodel.rb +3 -2
- data/lib/facter/ipaddress6.rb +1 -2
- data/lib/facter/kernelrelease.rb +10 -2
- data/lib/facter/ldom.rb +47 -0
- data/lib/facter/macaddress.rb +1 -1
- data/lib/facter/manufacturer.rb +7 -1
- data/lib/facter/memory.rb +58 -160
- data/lib/facter/operatingsystem.rb +17 -2
- data/lib/facter/operatingsystemmajrelease.rb +33 -0
- data/lib/facter/operatingsystemrelease.rb +88 -37
- data/lib/facter/osfamily.rb +6 -2
- data/lib/facter/processor.rb +2 -2
- data/lib/facter/ps.rb +5 -0
- data/lib/facter/ssh.rb +50 -12
- data/lib/facter/util/cfpropertylist.rb +6 -0
- data/lib/facter/util/cfpropertylist/LICENSE +19 -0
- data/lib/facter/util/cfpropertylist/README +44 -0
- data/lib/facter/util/cfpropertylist/Rakefile +44 -0
- data/lib/facter/util/cfpropertylist/THANKS +7 -0
- data/lib/facter/util/cfpropertylist/lib/cfpropertylist.rb +6 -0
- data/lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb +562 -0
- data/lib/facter/util/cfpropertylist/lib/rbCFPlistError.rb +26 -0
- data/lib/facter/util/cfpropertylist/lib/rbCFPropertyList.rb +402 -0
- data/lib/facter/util/cfpropertylist/lib/rbCFTypes.rb +244 -0
- data/lib/facter/util/cfpropertylist/lib/rbLibXMLParser.rb +135 -0
- data/lib/facter/util/cfpropertylist/lib/rbNokogiriParser.rb +140 -0
- data/lib/facter/util/cfpropertylist/lib/rbREXMLParser.rb +136 -0
- data/lib/facter/util/collection.rb +36 -14
- data/lib/facter/util/composite_loader.rb +12 -0
- data/lib/facter/util/config.rb +36 -0
- data/lib/facter/util/confine.rb +1 -6
- data/lib/facter/util/directory_loader.rb +83 -0
- data/lib/facter/util/fact.rb +49 -42
- data/lib/facter/util/file_read.rb +32 -0
- data/lib/facter/util/ip.rb +2 -9
- data/lib/facter/util/loader.rb +16 -2
- data/lib/facter/util/macosx.rb +15 -2
- data/lib/facter/util/memory.rb +154 -27
- data/lib/facter/util/nothing_loader.rb +15 -0
- data/lib/facter/util/parser.rb +141 -0
- data/lib/facter/util/processor.rb +27 -35
- data/lib/facter/util/resolution.rb +97 -26
- data/lib/facter/util/solaris_zones.rb +153 -0
- data/lib/facter/util/virtual.rb +32 -3
- data/lib/facter/version.rb +72 -2
- data/lib/facter/virtual.rb +56 -3
- data/lib/facter/zfs_version.rb +10 -0
- data/lib/facter/zonename.rb +6 -0
- data/lib/facter/zones.rb +17 -0
- data/lib/facter/zpool_version.rb +10 -0
- data/spec/fixtures/ifconfig/ifconfig_net_tools_1.60.txt +19 -0
- data/spec/fixtures/ifconfig/ifconfig_ubuntu_1204.txt +16 -0
- data/spec/fixtures/ldom/ldom_v1 +6 -0
- data/spec/fixtures/unit/filesystems/linux +28 -0
- data/spec/fixtures/unit/util/manufacturer/intel_linux_dmidecode +549 -0
- data/spec/fixtures/unit/virtual/sysfs_dmi_entries_raw.txt +0 -0
- data/spec/fixtures/unit/zfs_version/freebsd_8.2 +14 -0
- data/spec/fixtures/unit/zfs_version/freebsd_9.0 +13 -0
- data/spec/fixtures/unit/zfs_version/linux-fuse_0.6.9 +14 -0
- data/spec/fixtures/unit/zfs_version/solaris_10 +10 -0
- data/spec/fixtures/unit/zfs_version/solaris_11 +12 -0
- data/spec/fixtures/unit/zpool_version/freebsd_8.2 +26 -0
- data/spec/fixtures/unit/zpool_version/freebsd_9.0 +38 -0
- data/spec/fixtures/unit/zpool_version/linux-fuse_0.6.9 +35 -0
- data/spec/fixtures/unit/zpool_version/solaris_10 +31 -0
- data/spec/fixtures/unit/zpool_version/solaris_11 +43 -0
- data/spec/integration/facter_spec.rb +12 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/unit/architecture_spec.rb +1 -1
- data/spec/unit/blockdevices_spec.rb +109 -0
- data/spec/unit/domain_spec.rb +189 -81
- data/spec/unit/ec2_spec.rb +15 -8
- data/spec/unit/filesystems_spec.rb +50 -0
- data/spec/unit/hardwaremodel_spec.rb +8 -1
- data/spec/unit/id_spec.rb +6 -5
- data/spec/unit/ipaddress6_spec.rb +14 -2
- data/spec/unit/ipaddress_spec.rb +1 -1
- data/spec/unit/kernel_spec.rb +24 -0
- data/spec/unit/kernelmajversion_spec.rb +17 -0
- data/spec/unit/kernelrelease_spec.rb +53 -0
- data/spec/unit/kernelversion_spec.rb +32 -0
- data/spec/unit/ldom_spec.rb +74 -0
- data/spec/unit/macaddress_spec.rb +3 -1
- data/spec/unit/manufacturer_spec.rb +115 -0
- data/spec/unit/memory_spec.rb +442 -75
- data/spec/unit/operatingsystem_spec.rb +16 -2
- data/spec/unit/operatingsystemmajrelease_spec.rb +16 -0
- data/spec/unit/operatingsystemrelease_spec.rb +110 -1
- data/spec/unit/processor_spec.rb +22 -7
- data/spec/unit/ps_spec.rb +42 -0
- data/spec/unit/ssh_spec.rb +76 -0
- data/spec/unit/util/collection_spec.rb +94 -118
- data/spec/unit/util/config_spec.rb +36 -5
- data/spec/unit/util/confine_spec.rb +31 -43
- data/spec/unit/util/directory_loader_spec.rb +87 -0
- data/spec/unit/util/fact_spec.rb +37 -25
- data/spec/unit/util/file_read_spec.rb +29 -0
- data/spec/unit/util/ip_spec.rb +4 -2
- data/spec/unit/util/loader_spec.rb +102 -45
- data/spec/unit/util/macosx_spec.rb +40 -9
- data/spec/unit/util/manufacturer_spec.rb +12 -1
- data/spec/unit/util/parser_spec.rb +135 -0
- data/spec/unit/util/resolution_spec.rb +136 -4
- data/spec/unit/util/solaris_zones_spec.rb +127 -0
- data/spec/unit/util/virtual_spec.rb +54 -0
- data/spec/unit/version_spec.rb +42 -0
- data/spec/unit/virtual_spec.rb +102 -27
- data/spec/unit/zfs_version_spec.rb +76 -0
- data/spec/unit/zonename_spec.rb +14 -0
- data/spec/unit/zones_spec.rb +55 -0
- data/spec/unit/zpool_version_spec.rb +76 -0
- metadata +113 -11
- data/lib/facter/arp.rb +0 -28
@@ -0,0 +1,76 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe "zfs_version fact" do
|
6
|
+
|
7
|
+
# http://blogs.oracle.com/bobn/entry/live_upgrade_and_zfs_versioning
|
8
|
+
#
|
9
|
+
# Solaris Release ZPOOL Version ZFS Version
|
10
|
+
# Solaris 10 10/08 (u6) 10 3
|
11
|
+
# Solaris 10 5/09 (u7) 10 3
|
12
|
+
# Solaris 10 10/09 (u8) 15 4
|
13
|
+
# Solaris 10 9/10 (u9) 22 4
|
14
|
+
# Solaris 10 8/11 (u10) 29 5
|
15
|
+
# Solaris 11 11/11 (ga) 33 5
|
16
|
+
|
17
|
+
before :each do
|
18
|
+
Facter::Util::Resolution.stubs(:which).with("zfs").returns("/usr/bin/zfs")
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should return correct version on Solaris 10" do
|
22
|
+
Facter::Util::Resolution.stubs(:exec).with("zfs upgrade -v").returns(my_fixture_read('solaris_10'))
|
23
|
+
Facter.fact(:zfs_version).value.should == "3"
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should return correct version on Solaris 11" do
|
27
|
+
Facter::Util::Resolution.stubs(:exec).with("zfs upgrade -v").returns(my_fixture_read('solaris_11'))
|
28
|
+
Facter.fact(:zfs_version).value.should == "5"
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should return correct version on FreeBSD 8.2" do
|
32
|
+
Facter::Util::Resolution.stubs(:exec).with("zfs upgrade -v").returns(my_fixture_read('freebsd_8.2'))
|
33
|
+
Facter.fact(:zfs_version).value.should == "4"
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should return correct version on FreeBSD 9.0" do
|
37
|
+
Facter::Util::Resolution.stubs(:exec).with("zfs upgrade -v").returns(my_fixture_read('freebsd_9.0'))
|
38
|
+
Facter.fact(:zfs_version).value.should == "5"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should return correct version on Linux with ZFS-fuse" do
|
42
|
+
Facter::Util::Resolution.stubs(:exec).with("zfs upgrade -v").returns(my_fixture_read('linux-fuse_0.6.9'))
|
43
|
+
Facter.fact(:zfs_version).value.should == "4"
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should return nil if zfs command is not available" do
|
47
|
+
Facter::Util::Resolution.stubs(:which).with("zfs").returns(nil)
|
48
|
+
Facter::Util::Resolution.stubs(:exec).with("zfs upgrade -v").returns(my_fixture_read('linux-fuse_0.6.9'))
|
49
|
+
Facter.fact(:zfs_version).value.should == nil
|
50
|
+
end
|
51
|
+
|
52
|
+
it "should return nil if zfs fails to run" do
|
53
|
+
Facter::Util::Resolution.stubs(:exec).with("zfs upgrade -v").returns(nil)
|
54
|
+
Facter.fact(:zfs_version).value.should == nil
|
55
|
+
end
|
56
|
+
|
57
|
+
it "handles the zfs command becoming available at a later point in time" do
|
58
|
+
# Simulate Puppet configuring the zfs tools from a persistent daemon by
|
59
|
+
# simulating three sequential responses to which('zfs')
|
60
|
+
# (NOTE, each resolution causes which to execute twice.
|
61
|
+
Facter::Util::Resolution.stubs(:which).
|
62
|
+
with("zfs").
|
63
|
+
returns(nil,nil,nil,nil,"/usr/bin/zfs")
|
64
|
+
Facter::Util::Resolution.stubs(:exec).
|
65
|
+
with("zfs upgrade -v").
|
66
|
+
returns(my_fixture_read('linux-fuse_0.6.9'))
|
67
|
+
|
68
|
+
fact = Facter.fact(:zfs_version)
|
69
|
+
|
70
|
+
# zfs is not present the first two times the fact is resolved.
|
71
|
+
fact.value.should_not == "4"
|
72
|
+
fact.value.should_not == "4"
|
73
|
+
# zfs was configured between the second and third resolutions.
|
74
|
+
fact.value.should == "4"
|
75
|
+
end
|
76
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env rspec
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'facter'
|
5
|
+
|
6
|
+
describe "zonename fact" do
|
7
|
+
|
8
|
+
it "should return global zone" do
|
9
|
+
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
10
|
+
Facter::Util::Resolution.stubs(:exec).with("zonename").returns('global')
|
11
|
+
|
12
|
+
Facter.fact(:zonename).value.should == "global"
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe "on Solaris" do
|
6
|
+
before do
|
7
|
+
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
8
|
+
zone_list = <<-EOF
|
9
|
+
0:global:running:/::native:shared
|
10
|
+
-:local:configured:/::native:shared
|
11
|
+
-:zoneA:stopped:/::native:shared
|
12
|
+
EOF
|
13
|
+
Facter::Util::Resolution.stubs(:exec).with('/usr/sbin/zoneadm list -cp').returns(zone_list)
|
14
|
+
Facter.collection.internal_loader.load(:zones)
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "number of zones" do
|
18
|
+
it "should output number of zones" do
|
19
|
+
Facter.fact(:zones).value.should == 3
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
describe "zone specific values" do
|
24
|
+
it "Fact#zone_<z>_status" do
|
25
|
+
{'global' => 'running', 'local' => 'configured', 'zoneA' => 'stopped'}.each do |key, val|
|
26
|
+
Facter.value("zone_%s_status" % key).should == val
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
it "Fact#zone_<z>_id" do
|
31
|
+
{'global' => '0', 'local' => '-', 'zoneA' => '-'}.each do |key, val|
|
32
|
+
Facter.value("zone_%s_id" % key).should == val
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
it "Fact#zone_<z>_path" do
|
37
|
+
{'global' => '/', 'local' => '/', 'zoneA' => '/'}.each do |key, val|
|
38
|
+
Facter.value("zone_%s_path" % key).should == val
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
it "Fact#zone_<z>_brand" do
|
43
|
+
{'global' => 'native', 'local' => 'native', 'zoneA' => 'native'}.each do |key, val|
|
44
|
+
Facter.value("zone_%s_brand" % key).should == val
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
it "Fact#zone_<z>_iptype" do
|
49
|
+
{'global' => 'shared', 'local' => 'shared', 'zoneA' => 'shared'}.each do |key, val|
|
50
|
+
Facter.value("zone_%s_iptype" % key).should == val
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
@@ -0,0 +1,76 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe "zpool_version fact" do
|
6
|
+
|
7
|
+
# http://blogs.oracle.com/bobn/entry/live_upgrade_and_zfs_versioning
|
8
|
+
#
|
9
|
+
# Solaris Release ZPOOL Version ZFS Version
|
10
|
+
# Solaris 10 10/08 (u6) 10 3
|
11
|
+
# Solaris 10 5/09 (u7) 10 3
|
12
|
+
# Solaris 10 10/09 (u8) 15 4
|
13
|
+
# Solaris 10 9/10 (u9) 22 4
|
14
|
+
# Solaris 10 8/11 (u10) 29 5
|
15
|
+
# Solaris 11 11/11 (ga) 33 5
|
16
|
+
|
17
|
+
before :each do
|
18
|
+
Facter::Util::Resolution.stubs(:which).with("zpool").returns("/usr/bin/zpool")
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should return correct version on Solaris 10" do
|
22
|
+
Facter::Util::Resolution.stubs(:exec).with("zpool upgrade -v").returns(my_fixture_read('solaris_10'))
|
23
|
+
Facter.fact(:zpool_version).value.should == "22"
|
24
|
+
end
|
25
|
+
|
26
|
+
it "should return correct version on Solaris 11" do
|
27
|
+
Facter::Util::Resolution.stubs(:exec).with("zpool upgrade -v").returns(my_fixture_read('solaris_11'))
|
28
|
+
Facter.fact(:zpool_version).value.should == "33"
|
29
|
+
end
|
30
|
+
|
31
|
+
it "should return correct version on FreeBSD 8.2" do
|
32
|
+
Facter::Util::Resolution.stubs(:exec).with("zpool upgrade -v").returns(my_fixture_read('freebsd_8.2'))
|
33
|
+
Facter.fact(:zpool_version).value.should == "15"
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should return correct version on FreeBSD 9.0" do
|
37
|
+
Facter::Util::Resolution.stubs(:exec).with("zpool upgrade -v").returns(my_fixture_read('freebsd_9.0'))
|
38
|
+
Facter.fact(:zpool_version).value.should == "28"
|
39
|
+
end
|
40
|
+
|
41
|
+
it "should return correct version on Linux with ZFS-fuse" do
|
42
|
+
Facter::Util::Resolution.stubs(:exec).with("zpool upgrade -v").returns(my_fixture_read('linux-fuse_0.6.9'))
|
43
|
+
Facter.fact(:zpool_version).value.should == "23"
|
44
|
+
end
|
45
|
+
|
46
|
+
it "should return nil if zpool is not available" do
|
47
|
+
Facter::Util::Resolution.stubs(:which).with("zpool").returns(nil)
|
48
|
+
Facter::Util::Resolution.stubs(:exec).with("zpool upgrade -v").returns(my_fixture_read('linux-fuse_0.6.9'))
|
49
|
+
Facter.fact(:zpool_version).value.should == nil
|
50
|
+
end
|
51
|
+
|
52
|
+
it "should return nil if zpool fails to run" do
|
53
|
+
Facter::Util::Resolution.stubs(:exec).with("zpool upgrade -v").returns(nil)
|
54
|
+
Facter.fact(:zpool_version).value.should == nil
|
55
|
+
end
|
56
|
+
|
57
|
+
it "handles the zpool command becoming available" do
|
58
|
+
# Simulate Puppet configuring the zfs tools from a persistent daemon by
|
59
|
+
# simulating three sequential responses to which('zpool')
|
60
|
+
# (NOTE, each resolution causes which to execute twice.
|
61
|
+
Facter::Util::Resolution.stubs(:which).
|
62
|
+
with("zpool").
|
63
|
+
returns(nil,nil,nil,nil,"/usr/bin/zpool")
|
64
|
+
Facter::Util::Resolution.stubs(:exec).
|
65
|
+
with("zpool upgrade -v").
|
66
|
+
returns(my_fixture_read('linux-fuse_0.6.9'))
|
67
|
+
|
68
|
+
fact = Facter.fact(:zpool_version)
|
69
|
+
|
70
|
+
# zfs is not present the first two times the fact is resolved.
|
71
|
+
fact.value.should_not == "23"
|
72
|
+
fact.value.should_not == "23"
|
73
|
+
# zfs was configured between the second and third resolutions.
|
74
|
+
fact.value.should == "23"
|
75
|
+
end
|
76
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 1394194789
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
- rc
|
11
|
+
- 1
|
12
|
+
version: 1.7.0.rc1
|
11
13
|
platform: ruby
|
12
14
|
authors:
|
13
15
|
- Puppet Labs
|
@@ -15,7 +17,7 @@ autorequire:
|
|
15
17
|
bindir: bin
|
16
18
|
cert_chain: []
|
17
19
|
|
18
|
-
date: 2013-
|
20
|
+
date: 2013-04-01 00:00:00 Z
|
19
21
|
dependencies: []
|
20
22
|
|
21
23
|
description: You can prove anything with facts!
|
@@ -60,11 +62,26 @@ files:
|
|
60
62
|
- lib/facter/util/uptime.rb
|
61
63
|
- lib/facter/util/virtual.rb
|
62
64
|
- lib/facter/util/netmask.rb
|
65
|
+
- lib/facter/util/nothing_loader.rb
|
63
66
|
- lib/facter/util/macaddress.rb
|
67
|
+
- lib/facter/util/cfpropertylist/README
|
68
|
+
- lib/facter/util/cfpropertylist/THANKS
|
69
|
+
- lib/facter/util/cfpropertylist/lib/rbCFTypes.rb
|
70
|
+
- lib/facter/util/cfpropertylist/lib/rbCFPlistError.rb
|
71
|
+
- lib/facter/util/cfpropertylist/lib/rbBinaryCFPropertyList.rb
|
72
|
+
- lib/facter/util/cfpropertylist/lib/rbCFPropertyList.rb
|
73
|
+
- lib/facter/util/cfpropertylist/lib/rbNokogiriParser.rb
|
74
|
+
- lib/facter/util/cfpropertylist/lib/rbREXMLParser.rb
|
75
|
+
- lib/facter/util/cfpropertylist/lib/cfpropertylist.rb
|
76
|
+
- lib/facter/util/cfpropertylist/lib/rbLibXMLParser.rb
|
77
|
+
- lib/facter/util/cfpropertylist/LICENSE
|
78
|
+
- lib/facter/util/cfpropertylist/Rakefile
|
64
79
|
- lib/facter/util/xendomains.rb
|
65
80
|
- lib/facter/util/wmi.rb
|
81
|
+
- lib/facter/util/file_read.rb
|
66
82
|
- lib/facter/util/registry.rb
|
67
83
|
- lib/facter/util/values.rb
|
84
|
+
- lib/facter/util/parser.rb
|
68
85
|
- lib/facter/util/vlans.rb
|
69
86
|
- lib/facter/util/processor.rb
|
70
87
|
- lib/facter/util/plist.rb
|
@@ -75,14 +92,19 @@ files:
|
|
75
92
|
- lib/facter/util/collection.rb
|
76
93
|
- lib/facter/util/memory.rb
|
77
94
|
- lib/facter/util/ip.rb
|
95
|
+
- lib/facter/util/solaris_zones.rb
|
96
|
+
- lib/facter/util/cfpropertylist.rb
|
78
97
|
- lib/facter/util/config.rb
|
79
98
|
- lib/facter/util/monkey_patches.rb
|
80
99
|
- lib/facter/util/plist/parser.rb
|
81
100
|
- lib/facter/util/plist/generator.rb
|
101
|
+
- lib/facter/util/directory_loader.rb
|
82
102
|
- lib/facter/util/confine.rb
|
103
|
+
- lib/facter/util/composite_loader.rb
|
83
104
|
- lib/facter/util/macosx.rb
|
84
105
|
- lib/facter/lsbrelease.rb
|
85
106
|
- lib/facter/hardwareisa.rb
|
107
|
+
- lib/facter/zonename.rb
|
86
108
|
- lib/facter/lsbdistcodename.rb
|
87
109
|
- lib/facter/kernelmajversion.rb
|
88
110
|
- lib/facter/uptime_seconds.rb
|
@@ -93,6 +115,8 @@ files:
|
|
93
115
|
- lib/facter/virtual.rb
|
94
116
|
- lib/facter/operatingsystem.rb
|
95
117
|
- lib/facter/physicalprocessorcount.rb
|
118
|
+
- lib/facter/ldom.rb
|
119
|
+
- lib/facter/blockdevices.rb
|
96
120
|
- lib/facter/netmask.rb
|
97
121
|
- lib/facter/version.rb
|
98
122
|
- lib/facter/uptime_days.rb
|
@@ -105,6 +129,8 @@ files:
|
|
105
129
|
- lib/facter/hostname.rb
|
106
130
|
- lib/facter/rubyversion.rb
|
107
131
|
- lib/facter/path.rb
|
132
|
+
- lib/facter/zones.rb
|
133
|
+
- lib/facter/operatingsystemmajrelease.rb
|
108
134
|
- lib/facter/vlans.rb
|
109
135
|
- lib/facter/application.rb
|
110
136
|
- lib/facter/processor.rb
|
@@ -122,14 +148,16 @@ files:
|
|
122
148
|
- lib/facter/puppetversion.rb
|
123
149
|
- lib/facter/rubysitedir.rb
|
124
150
|
- lib/facter/facterversion.rb
|
151
|
+
- lib/facter/filesystems.rb
|
125
152
|
- lib/facter/lsbdistid.rb
|
126
153
|
- lib/facter/memory.rb
|
127
154
|
- lib/facter/lsbdistdescription.rb
|
128
155
|
- lib/facter/network.rb
|
156
|
+
- lib/facter/zpool_version.rb
|
157
|
+
- lib/facter/zfs_version.rb
|
129
158
|
- lib/facter/domain.rb
|
130
159
|
- lib/facter/lsbdistrelease.rb
|
131
160
|
- lib/facter/Cfkey.rb
|
132
|
-
- lib/facter/arp.rb
|
133
161
|
- lib/facter/osfamily.rb
|
134
162
|
- lib/facter/ps.rb
|
135
163
|
- lib/facter/hardwaremodel.rb
|
@@ -166,6 +194,7 @@ files:
|
|
166
194
|
- spec/fixtures/virtual/proc_self_status/vserver_2_3/guest
|
167
195
|
- spec/fixtures/virtual/proc_self_status/vserver_2_1/host
|
168
196
|
- spec/fixtures/virtual/proc_self_status/vserver_2_1/guest
|
197
|
+
- spec/fixtures/ldom/ldom_v1
|
169
198
|
- spec/fixtures/netsh/windows_netsh_addresses_with_multiple_interfaces
|
170
199
|
- spec/fixtures/unit/util/xendomains/xendomains
|
171
200
|
- spec/fixtures/unit/util/vlans/linux_vlan_config
|
@@ -174,6 +203,7 @@ files:
|
|
174
203
|
- spec/fixtures/unit/util/manufacturer/opensolaris_smbios
|
175
204
|
- spec/fixtures/unit/util/manufacturer/linux_dmidecode_with_spaces
|
176
205
|
- spec/fixtures/unit/util/manufacturer/solaris_t5220_prtdiag
|
206
|
+
- spec/fixtures/unit/util/manufacturer/intel_linux_dmidecode
|
177
207
|
- spec/fixtures/unit/util/ec2/centos-arp-ec2.out
|
178
208
|
- spec/fixtures/unit/util/ec2/linux-arp-not-ec2.out
|
179
209
|
- spec/fixtures/unit/util/ec2/windows-2008-arp-a.out
|
@@ -227,12 +257,25 @@ files:
|
|
227
257
|
- spec/fixtures/unit/util/uptime/sysctl_kern_boottime_darwin
|
228
258
|
- spec/fixtures/unit/ipaddress/ifconfig_ubuntu_1204.txt
|
229
259
|
- spec/fixtures/unit/ipaddress/ifconfig_net_tools_1.60.txt
|
260
|
+
- spec/fixtures/unit/virtual/sysfs_dmi_entries_raw.txt
|
261
|
+
- spec/fixtures/unit/zfs_version/freebsd_9.0
|
262
|
+
- spec/fixtures/unit/zfs_version/freebsd_8.2
|
263
|
+
- spec/fixtures/unit/zfs_version/solaris_11
|
264
|
+
- spec/fixtures/unit/zfs_version/solaris_10
|
265
|
+
- spec/fixtures/unit/zfs_version/linux-fuse_0.6.9
|
266
|
+
- spec/fixtures/unit/filesystems/linux
|
267
|
+
- spec/fixtures/unit/zpool_version/freebsd_9.0
|
268
|
+
- spec/fixtures/unit/zpool_version/freebsd_8.2
|
269
|
+
- spec/fixtures/unit/zpool_version/solaris_11
|
270
|
+
- spec/fixtures/unit/zpool_version/solaris_10
|
271
|
+
- spec/fixtures/unit/zpool_version/linux-fuse_0.6.9
|
230
272
|
- spec/fixtures/unit/selinux/selinux_sestatus
|
231
273
|
- spec/fixtures/ifconfig/fedora_8
|
232
274
|
- spec/fixtures/ifconfig/darwin_10_6_4
|
233
275
|
- spec/fixtures/ifconfig/fedora_13
|
234
276
|
- spec/fixtures/ifconfig/sunos_ifconfig_all_with_multiple_interfaces
|
235
277
|
- spec/fixtures/ifconfig/fedora_13_eth0
|
278
|
+
- spec/fixtures/ifconfig/ifconfig_ubuntu_1204.txt
|
236
279
|
- spec/fixtures/ifconfig/fedora_10_eth0
|
237
280
|
- spec/fixtures/ifconfig/darwin_ifconfig_all_with_multiple_interfaces
|
238
281
|
- spec/fixtures/ifconfig/darwin_10_3_0_en0
|
@@ -241,6 +284,7 @@ files:
|
|
241
284
|
- spec/fixtures/ifconfig/fedora_8_eth0
|
242
285
|
- spec/fixtures/ifconfig/darwin_9_8_0_en0
|
243
286
|
- spec/fixtures/ifconfig/bsd_ifconfig_all_with_multiple_interfaces
|
287
|
+
- spec/fixtures/ifconfig/ifconfig_net_tools_1.60.txt
|
244
288
|
- spec/fixtures/ifconfig/darwin_10_6_6_dualstack_en1
|
245
289
|
- spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces
|
246
290
|
- spec/fixtures/ifconfig/fedora_10
|
@@ -265,6 +309,7 @@ files:
|
|
265
309
|
- spec/fixtures/netstat/darwin_9_8_0
|
266
310
|
- spec/fixtures/netstat/open_solaris_b132
|
267
311
|
- spec/fixtures/netstat/ubuntu_7_04
|
312
|
+
- spec/unit/util/parser_spec.rb
|
268
313
|
- spec/unit/util/virtual_spec.rb
|
269
314
|
- spec/unit/util/monkey_patches_spec.rb
|
270
315
|
- spec/unit/util/collection_spec.rb
|
@@ -274,11 +319,14 @@ files:
|
|
274
319
|
- spec/unit/util/ec2_spec.rb
|
275
320
|
- spec/unit/util/confine_spec.rb
|
276
321
|
- spec/unit/util/registry_spec.rb
|
322
|
+
- spec/unit/util/directory_loader_spec.rb
|
277
323
|
- spec/unit/util/config_spec.rb
|
278
324
|
- spec/unit/util/processor_spec.rb
|
325
|
+
- spec/unit/util/file_read_spec.rb
|
279
326
|
- spec/unit/util/vlans_spec.rb
|
280
327
|
- spec/unit/util/loader_spec.rb
|
281
328
|
- spec/unit/util/fact_spec.rb
|
329
|
+
- spec/unit/util/solaris_zones_spec.rb
|
282
330
|
- spec/unit/util/resolution_spec.rb
|
283
331
|
- spec/unit/util/macaddress_spec.rb
|
284
332
|
- spec/unit/util/macosx_spec.rb
|
@@ -286,32 +334,48 @@ files:
|
|
286
334
|
- spec/unit/util/xendomains_spec.rb
|
287
335
|
- spec/unit/virtual_spec.rb
|
288
336
|
- spec/unit/operatingsystemrelease_spec.rb
|
337
|
+
- spec/unit/kernelversion_spec.rb
|
289
338
|
- spec/unit/operatingsystem_spec.rb
|
290
339
|
- spec/unit/lsbrelease_spec.rb
|
340
|
+
- spec/unit/zfs_version_spec.rb
|
291
341
|
- spec/unit/ipaddress6_spec.rb
|
292
342
|
- spec/unit/lsbdistcodename_spec.rb
|
343
|
+
- spec/unit/manufacturer_spec.rb
|
293
344
|
- spec/unit/ipaddress_spec.rb
|
294
345
|
- spec/unit/ec2_spec.rb
|
346
|
+
- spec/unit/operatingsystemmajrelease_spec.rb
|
295
347
|
- spec/unit/hostname_spec.rb
|
296
348
|
- spec/unit/id_spec.rb
|
297
349
|
- spec/unit/lsbdistrelease_spec.rb
|
350
|
+
- spec/unit/filesystems_spec.rb
|
351
|
+
- spec/unit/version_spec.rb
|
298
352
|
- spec/unit/application_spec.rb
|
353
|
+
- spec/unit/blockdevices_spec.rb
|
299
354
|
- spec/unit/hardwareisa_spec.rb
|
300
355
|
- spec/unit/processor_spec.rb
|
301
356
|
- spec/unit/hardwaremodel_spec.rb
|
302
357
|
- spec/unit/interfaces_spec.rb
|
358
|
+
- spec/unit/zpool_version_spec.rb
|
303
359
|
- spec/unit/memory_spec.rb
|
304
360
|
- spec/unit/lsbdistid_spec.rb
|
361
|
+
- spec/unit/zonename_spec.rb
|
305
362
|
- spec/unit/uniqueid_spec.rb
|
306
363
|
- spec/unit/physicalprocessorcount_spec.rb
|
307
364
|
- spec/unit/lsbmajdistrelease_spec.rb
|
308
365
|
- spec/unit/architecture_spec.rb
|
309
366
|
- spec/unit/macaddress_spec.rb
|
367
|
+
- spec/unit/kernelrelease_spec.rb
|
368
|
+
- spec/unit/ldom_spec.rb
|
310
369
|
- spec/unit/uptime_spec.rb
|
311
370
|
- spec/unit/selinux_spec.rb
|
371
|
+
- spec/unit/kernel_spec.rb
|
372
|
+
- spec/unit/kernelmajversion_spec.rb
|
373
|
+
- spec/unit/ssh_spec.rb
|
312
374
|
- spec/unit/domain_spec.rb
|
375
|
+
- spec/unit/zones_spec.rb
|
313
376
|
- spec/unit/facter_spec.rb
|
314
377
|
- spec/unit/lsbdistdescription_spec.rb
|
378
|
+
- spec/unit/ps_spec.rb
|
315
379
|
- spec/spec_helper.rb
|
316
380
|
homepage: https://github.com/puppetlabs/facter
|
317
381
|
licenses: []
|
@@ -333,12 +397,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
333
397
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
334
398
|
none: false
|
335
399
|
requirements:
|
336
|
-
- - "
|
400
|
+
- - ">"
|
337
401
|
- !ruby/object:Gem::Version
|
338
|
-
hash:
|
402
|
+
hash: 25
|
339
403
|
segments:
|
340
|
-
-
|
341
|
-
|
404
|
+
- 1
|
405
|
+
- 3
|
406
|
+
- 1
|
407
|
+
version: 1.3.1
|
342
408
|
requirements: []
|
343
409
|
|
344
410
|
rubyforge_project:
|
@@ -376,6 +442,7 @@ test_files:
|
|
376
442
|
- spec/fixtures/virtual/proc_self_status/vserver_2_3/guest
|
377
443
|
- spec/fixtures/virtual/proc_self_status/vserver_2_1/host
|
378
444
|
- spec/fixtures/virtual/proc_self_status/vserver_2_1/guest
|
445
|
+
- spec/fixtures/ldom/ldom_v1
|
379
446
|
- spec/fixtures/netsh/windows_netsh_addresses_with_multiple_interfaces
|
380
447
|
- spec/fixtures/unit/util/xendomains/xendomains
|
381
448
|
- spec/fixtures/unit/util/vlans/linux_vlan_config
|
@@ -384,6 +451,7 @@ test_files:
|
|
384
451
|
- spec/fixtures/unit/util/manufacturer/opensolaris_smbios
|
385
452
|
- spec/fixtures/unit/util/manufacturer/linux_dmidecode_with_spaces
|
386
453
|
- spec/fixtures/unit/util/manufacturer/solaris_t5220_prtdiag
|
454
|
+
- spec/fixtures/unit/util/manufacturer/intel_linux_dmidecode
|
387
455
|
- spec/fixtures/unit/util/ec2/centos-arp-ec2.out
|
388
456
|
- spec/fixtures/unit/util/ec2/linux-arp-not-ec2.out
|
389
457
|
- spec/fixtures/unit/util/ec2/windows-2008-arp-a.out
|
@@ -437,12 +505,25 @@ test_files:
|
|
437
505
|
- spec/fixtures/unit/util/uptime/sysctl_kern_boottime_darwin
|
438
506
|
- spec/fixtures/unit/ipaddress/ifconfig_ubuntu_1204.txt
|
439
507
|
- spec/fixtures/unit/ipaddress/ifconfig_net_tools_1.60.txt
|
508
|
+
- spec/fixtures/unit/virtual/sysfs_dmi_entries_raw.txt
|
509
|
+
- spec/fixtures/unit/zfs_version/freebsd_9.0
|
510
|
+
- spec/fixtures/unit/zfs_version/freebsd_8.2
|
511
|
+
- spec/fixtures/unit/zfs_version/solaris_11
|
512
|
+
- spec/fixtures/unit/zfs_version/solaris_10
|
513
|
+
- spec/fixtures/unit/zfs_version/linux-fuse_0.6.9
|
514
|
+
- spec/fixtures/unit/filesystems/linux
|
515
|
+
- spec/fixtures/unit/zpool_version/freebsd_9.0
|
516
|
+
- spec/fixtures/unit/zpool_version/freebsd_8.2
|
517
|
+
- spec/fixtures/unit/zpool_version/solaris_11
|
518
|
+
- spec/fixtures/unit/zpool_version/solaris_10
|
519
|
+
- spec/fixtures/unit/zpool_version/linux-fuse_0.6.9
|
440
520
|
- spec/fixtures/unit/selinux/selinux_sestatus
|
441
521
|
- spec/fixtures/ifconfig/fedora_8
|
442
522
|
- spec/fixtures/ifconfig/darwin_10_6_4
|
443
523
|
- spec/fixtures/ifconfig/fedora_13
|
444
524
|
- spec/fixtures/ifconfig/sunos_ifconfig_all_with_multiple_interfaces
|
445
525
|
- spec/fixtures/ifconfig/fedora_13_eth0
|
526
|
+
- spec/fixtures/ifconfig/ifconfig_ubuntu_1204.txt
|
446
527
|
- spec/fixtures/ifconfig/fedora_10_eth0
|
447
528
|
- spec/fixtures/ifconfig/darwin_ifconfig_all_with_multiple_interfaces
|
448
529
|
- spec/fixtures/ifconfig/darwin_10_3_0_en0
|
@@ -451,6 +532,7 @@ test_files:
|
|
451
532
|
- spec/fixtures/ifconfig/fedora_8_eth0
|
452
533
|
- spec/fixtures/ifconfig/darwin_9_8_0_en0
|
453
534
|
- spec/fixtures/ifconfig/bsd_ifconfig_all_with_multiple_interfaces
|
535
|
+
- spec/fixtures/ifconfig/ifconfig_net_tools_1.60.txt
|
454
536
|
- spec/fixtures/ifconfig/darwin_10_6_6_dualstack_en1
|
455
537
|
- spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces
|
456
538
|
- spec/fixtures/ifconfig/fedora_10
|
@@ -475,6 +557,7 @@ test_files:
|
|
475
557
|
- spec/fixtures/netstat/darwin_9_8_0
|
476
558
|
- spec/fixtures/netstat/open_solaris_b132
|
477
559
|
- spec/fixtures/netstat/ubuntu_7_04
|
560
|
+
- spec/unit/util/parser_spec.rb
|
478
561
|
- spec/unit/util/virtual_spec.rb
|
479
562
|
- spec/unit/util/monkey_patches_spec.rb
|
480
563
|
- spec/unit/util/collection_spec.rb
|
@@ -484,11 +567,14 @@ test_files:
|
|
484
567
|
- spec/unit/util/ec2_spec.rb
|
485
568
|
- spec/unit/util/confine_spec.rb
|
486
569
|
- spec/unit/util/registry_spec.rb
|
570
|
+
- spec/unit/util/directory_loader_spec.rb
|
487
571
|
- spec/unit/util/config_spec.rb
|
488
572
|
- spec/unit/util/processor_spec.rb
|
573
|
+
- spec/unit/util/file_read_spec.rb
|
489
574
|
- spec/unit/util/vlans_spec.rb
|
490
575
|
- spec/unit/util/loader_spec.rb
|
491
576
|
- spec/unit/util/fact_spec.rb
|
577
|
+
- spec/unit/util/solaris_zones_spec.rb
|
492
578
|
- spec/unit/util/resolution_spec.rb
|
493
579
|
- spec/unit/util/macaddress_spec.rb
|
494
580
|
- spec/unit/util/macosx_spec.rb
|
@@ -496,30 +582,46 @@ test_files:
|
|
496
582
|
- spec/unit/util/xendomains_spec.rb
|
497
583
|
- spec/unit/virtual_spec.rb
|
498
584
|
- spec/unit/operatingsystemrelease_spec.rb
|
585
|
+
- spec/unit/kernelversion_spec.rb
|
499
586
|
- spec/unit/operatingsystem_spec.rb
|
500
587
|
- spec/unit/lsbrelease_spec.rb
|
588
|
+
- spec/unit/zfs_version_spec.rb
|
501
589
|
- spec/unit/ipaddress6_spec.rb
|
502
590
|
- spec/unit/lsbdistcodename_spec.rb
|
591
|
+
- spec/unit/manufacturer_spec.rb
|
503
592
|
- spec/unit/ipaddress_spec.rb
|
504
593
|
- spec/unit/ec2_spec.rb
|
594
|
+
- spec/unit/operatingsystemmajrelease_spec.rb
|
505
595
|
- spec/unit/hostname_spec.rb
|
506
596
|
- spec/unit/id_spec.rb
|
507
597
|
- spec/unit/lsbdistrelease_spec.rb
|
598
|
+
- spec/unit/filesystems_spec.rb
|
599
|
+
- spec/unit/version_spec.rb
|
508
600
|
- spec/unit/application_spec.rb
|
601
|
+
- spec/unit/blockdevices_spec.rb
|
509
602
|
- spec/unit/hardwareisa_spec.rb
|
510
603
|
- spec/unit/processor_spec.rb
|
511
604
|
- spec/unit/hardwaremodel_spec.rb
|
512
605
|
- spec/unit/interfaces_spec.rb
|
606
|
+
- spec/unit/zpool_version_spec.rb
|
513
607
|
- spec/unit/memory_spec.rb
|
514
608
|
- spec/unit/lsbdistid_spec.rb
|
609
|
+
- spec/unit/zonename_spec.rb
|
515
610
|
- spec/unit/uniqueid_spec.rb
|
516
611
|
- spec/unit/physicalprocessorcount_spec.rb
|
517
612
|
- spec/unit/lsbmajdistrelease_spec.rb
|
518
613
|
- spec/unit/architecture_spec.rb
|
519
614
|
- spec/unit/macaddress_spec.rb
|
615
|
+
- spec/unit/kernelrelease_spec.rb
|
616
|
+
- spec/unit/ldom_spec.rb
|
520
617
|
- spec/unit/uptime_spec.rb
|
521
618
|
- spec/unit/selinux_spec.rb
|
619
|
+
- spec/unit/kernel_spec.rb
|
620
|
+
- spec/unit/kernelmajversion_spec.rb
|
621
|
+
- spec/unit/ssh_spec.rb
|
522
622
|
- spec/unit/domain_spec.rb
|
623
|
+
- spec/unit/zones_spec.rb
|
523
624
|
- spec/unit/facter_spec.rb
|
524
625
|
- spec/unit/lsbdistdescription_spec.rb
|
626
|
+
- spec/unit/ps_spec.rb
|
525
627
|
- spec/spec_helper.rb
|