facter 1.5.9 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of facter might be problematic. Click here for more details.
- data/CHANGELOG +39 -0
- data/LICENSE +11 -13
- data/README.md +24 -0
- data/bin/facter +2 -2
- data/conf/redhat/facter.spec +5 -2
- data/conf/solaris/pkginfo +1 -1
- data/install.rb +1 -1
- data/lib/facter.rb +12 -15
- data/lib/facter/Cfkey.rb +11 -11
- data/lib/facter/application.rb +3 -4
- data/lib/facter/architecture.rb +13 -0
- data/lib/facter/domain.rb +20 -0
- data/lib/facter/facterversion.rb +9 -0
- data/lib/facter/fqdn.rb +11 -0
- data/lib/facter/hardwareisa.rb +12 -0
- data/lib/facter/hardwaremodel.rb +13 -0
- data/lib/facter/hostname.rb +13 -0
- data/lib/facter/id.rb +13 -0
- data/lib/facter/interfaces.rb +9 -0
- data/lib/facter/ipaddress.rb +24 -0
- data/lib/facter/ipaddress6.rb +35 -40
- data/lib/facter/iphostnumber.rb +11 -0
- data/lib/facter/kernel.rb +11 -0
- data/lib/facter/kernelmajversion.rb +10 -0
- data/lib/facter/kernelrelease.rb +13 -0
- data/lib/facter/kernelversion.rb +12 -0
- data/lib/facter/lsb.rb +13 -12
- data/lib/facter/lsbmajdistrelease.rb +12 -0
- data/lib/facter/macaddress.rb +21 -0
- data/lib/facter/macosx.rb +13 -11
- data/lib/facter/manufacturer.rb +13 -0
- data/lib/facter/memory.rb +35 -18
- data/lib/facter/netmask.rb +9 -0
- data/lib/facter/network.rb +12 -0
- data/lib/facter/operatingsystem.rb +13 -0
- data/lib/facter/operatingsystemrelease.rb +17 -0
- data/lib/facter/path.rb +9 -0
- data/lib/facter/physicalprocessorcount.rb +53 -4
- data/lib/facter/processor.rb +14 -1
- data/lib/facter/ps.rb +12 -0
- data/lib/facter/puppetversion.rb +10 -0
- data/lib/facter/rubysitedir.rb +10 -0
- data/lib/facter/rubyversion.rb +9 -0
- data/lib/facter/selinux.rb +9 -0
- data/lib/facter/ssh.rb +9 -11
- data/lib/facter/timezone.rb +9 -0
- data/lib/facter/uptime.rb +11 -0
- data/lib/facter/uptime_days.rb +9 -0
- data/lib/facter/uptime_hours.rb +9 -0
- data/lib/facter/uptime_seconds.rb +14 -0
- data/lib/facter/util/collection.rb +5 -1
- data/lib/facter/util/fact.rb +1 -3
- data/lib/facter/util/loader.rb +1 -0
- data/lib/facter/util/macosx.rb +0 -11
- data/lib/facter/util/memory.rb +1 -13
- data/lib/facter/util/resolution.rb +12 -3
- data/lib/facter/util/virtual.rb +1 -1
- data/lib/facter/virtual.rb +49 -3
- data/lib/facter/vlans.rb +10 -0
- data/lib/facter/xendomains.rb +11 -0
- data/spec/fixtures/uptime/sysctl_kern_boottime_big_endian +0 -0
- data/spec/fixtures/uptime/{sysctl_kern_boottime → sysctl_kern_boottime_little_endian} +0 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/interfaces_spec.rb +2 -5
- data/spec/unit/memory_spec.rb +3 -1
- data/spec/unit/operatingsystem_spec.rb +2 -0
- data/spec/unit/physicalprocessorcount_spec.rb +40 -0
- data/spec/unit/util/fact_spec.rb +11 -11
- data/spec/unit/util/loader_spec.rb +4 -0
- data/spec/unit/util/resolution_spec.rb +20 -2
- data/spec/unit/util/uptime_spec.rb +6 -1
- data/spec/unit/util/virtual_spec.rb +1 -0
- data/spec/unit/virtual_spec.rb +34 -4
- metadata +133 -135
- data/COPYING +0 -339
- data/README +0 -8
- data/README.rst +0 -26
- data/TODO +0 -4
- data/lib/facter/util/#uptime.rb# +0 -64
data/spec/spec_helper.rb
CHANGED
@@ -3,17 +3,14 @@
|
|
3
3
|
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
4
4
|
|
5
5
|
require 'facter'
|
6
|
+
require 'facter/util/ip'
|
6
7
|
|
7
8
|
describe "Per Interface IP facts" do
|
8
|
-
before do
|
9
|
-
Facter.loadfacts
|
10
|
-
end
|
11
|
-
|
12
9
|
it "should replace the ':' in an interface list with '_'" do
|
13
10
|
# So we look supported
|
14
11
|
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
15
12
|
|
16
|
-
Facter::Util::IP.
|
13
|
+
Facter::Util::IP.stubs(:get_interfaces).returns %w{eth0:1 eth1:2}
|
17
14
|
Facter.fact(:interfaces).value.should == %{eth0_1,eth1_2}
|
18
15
|
end
|
19
16
|
end
|
data/spec/unit/memory_spec.rb
CHANGED
@@ -34,6 +34,7 @@ describe "Operating System fact" do
|
|
34
34
|
|
35
35
|
it "should identify Oracle VM as OVS" do
|
36
36
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
37
|
+
Facter.stubs(:value).with(:lsbdistid).returns(nil)
|
37
38
|
FileTest.stubs(:exists?).returns false
|
38
39
|
|
39
40
|
FileTest.expects(:exists?).with("/etc/ovs-release").returns true
|
@@ -44,6 +45,7 @@ describe "Operating System fact" do
|
|
44
45
|
|
45
46
|
it "should identify VMWare ESX" do
|
46
47
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
48
|
+
Facter.stubs(:value).with(:lsbdistid).returns(nil)
|
47
49
|
FileTest.stubs(:exists?).returns false
|
48
50
|
|
49
51
|
FileTest.expects(:exists?).with("/etc/vmware-release").returns true
|
@@ -0,0 +1,40 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
4
|
+
|
5
|
+
require 'facter'
|
6
|
+
|
7
|
+
describe "Physical processor count facts" do
|
8
|
+
before do
|
9
|
+
Facter.loadfacts
|
10
|
+
end
|
11
|
+
before do
|
12
|
+
Facter.clear
|
13
|
+
end
|
14
|
+
it "should return one physical CPU" do
|
15
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
16
|
+
File.stubs(:exists?).with('/sys/devices/system/cpu').returns(true)
|
17
|
+
Dir.stubs(:glob).with("/sys/devices/system/cpu/cpu*/topology/physical_package_id").returns(["/sys/devices/system/cpu/cpu0/topology/physical_package_id"])
|
18
|
+
Facter::Util::Resolution.stubs(:exec).with("cat /sys/devices/system/cpu/cpu0/topology/physical_package_id").returns("0")
|
19
|
+
|
20
|
+
Facter.fact(:physicalprocessorcount).value.should == 1
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should return four physical CPUs" do
|
24
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
25
|
+
File.stubs(:exists?).with('/sys/devices/system/cpu').returns(true)
|
26
|
+
Dir.stubs(:glob).with("/sys/devices/system/cpu/cpu*/topology/physical_package_id").returns(%w{
|
27
|
+
/sys/devices/system/cpu/cpu0/topology/physical_package_id
|
28
|
+
/sys/devices/system/cpu/cpu1/topology/physical_package_id
|
29
|
+
/sys/devices/system/cpu/cpu2/topology/physical_package_id
|
30
|
+
/sys/devices/system/cpu/cpu3/topology/physical_package_id
|
31
|
+
})
|
32
|
+
|
33
|
+
Facter::Util::Resolution.stubs(:exec).with("cat /sys/devices/system/cpu/cpu0/topology/physical_package_id").returns("0")
|
34
|
+
Facter::Util::Resolution.stubs(:exec).with("cat /sys/devices/system/cpu/cpu1/topology/physical_package_id").returns("1")
|
35
|
+
Facter::Util::Resolution.stubs(:exec).with("cat /sys/devices/system/cpu/cpu2/topology/physical_package_id").returns("2")
|
36
|
+
Facter::Util::Resolution.stubs(:exec).with("cat /sys/devices/system/cpu/cpu3/topology/physical_package_id").returns("3")
|
37
|
+
|
38
|
+
Facter.fact(:physicalprocessorcount).value.should == 4
|
39
|
+
end
|
40
|
+
end
|
data/spec/unit/util/fact_spec.rb
CHANGED
@@ -56,10 +56,10 @@ describe Facter::Util::Fact do
|
|
56
56
|
@fact.add { }
|
57
57
|
end
|
58
58
|
|
59
|
-
it "should re-sort the resolutions by
|
60
|
-
r1 = stub 'r1', :
|
61
|
-
r2 = stub 'r2', :
|
62
|
-
r3 = stub 'r3', :
|
59
|
+
it "should re-sort the resolutions by weight, so the most restricted resolutions are first" do
|
60
|
+
r1 = stub 'r1', :weight => 1
|
61
|
+
r2 = stub 'r2', :weight => 2
|
62
|
+
r3 = stub 'r3', :weight => 0
|
63
63
|
Facter::Util::Resolution.expects(:new).times(3).returns(r1).returns(r2).returns(r3)
|
64
64
|
@fact.add { }
|
65
65
|
@fact.add { }
|
@@ -83,9 +83,9 @@ describe Facter::Util::Fact do
|
|
83
83
|
end
|
84
84
|
|
85
85
|
it "should return the first value returned by a resolution" do
|
86
|
-
r1 = stub 'r1', :
|
87
|
-
r2 = stub 'r2', :
|
88
|
-
r3 = stub 'r3', :
|
86
|
+
r1 = stub 'r1', :weight => 2, :value => nil, :suitable? => true
|
87
|
+
r2 = stub 'r2', :weight => 1, :value => "yay", :suitable? => true
|
88
|
+
r3 = stub 'r3', :weight => 0, :value => "foo", :suitable? => true
|
89
89
|
Facter::Util::Resolution.expects(:new).times(3).returns(r1).returns(r2).returns(r3)
|
90
90
|
@fact.add { }
|
91
91
|
@fact.add { }
|
@@ -95,8 +95,8 @@ describe Facter::Util::Fact do
|
|
95
95
|
end
|
96
96
|
|
97
97
|
it "should short-cut returning the value once one is found" do
|
98
|
-
r1 = stub 'r1', :
|
99
|
-
r2 = stub 'r2', :
|
98
|
+
r1 = stub 'r1', :weight => 2, :value => "foo", :suitable? => true
|
99
|
+
r2 = stub 'r2', :weight => 1, :suitable? => true # would fail if 'value' were asked for
|
100
100
|
Facter::Util::Resolution.expects(:new).times(2).returns(r1).returns(r2)
|
101
101
|
@fact.add { }
|
102
102
|
@fact.add { }
|
@@ -105,8 +105,8 @@ describe Facter::Util::Fact do
|
|
105
105
|
end
|
106
106
|
|
107
107
|
it "should skip unsuitable resolutions" do
|
108
|
-
r1 = stub 'r1', :
|
109
|
-
r2 = stub 'r2', :
|
108
|
+
r1 = stub 'r1', :weight => 2, :suitable? => false # would fail if 'value' were asked for'
|
109
|
+
r2 = stub 'r2', :weight => 1, :value => "yay", :suitable? => true
|
110
110
|
Facter::Util::Resolution.expects(:new).times(2).returns(r1).returns(r2)
|
111
111
|
@fact.add { }
|
112
112
|
@fact.add { }
|
@@ -13,6 +13,10 @@ describe Facter::Util::Resolution do
|
|
13
13
|
Facter::Util::Resolution.new("yay").name.should == "yay"
|
14
14
|
end
|
15
15
|
|
16
|
+
it "should have a method for setting the weight" do
|
17
|
+
Facter::Util::Resolution.new("yay").should respond_to(:has_weight)
|
18
|
+
end
|
19
|
+
|
16
20
|
it "should have a method for setting the code" do
|
17
21
|
Facter::Util::Resolution.new("yay").should respond_to(:setcode)
|
18
22
|
end
|
@@ -195,11 +199,25 @@ describe Facter::Util::Resolution do
|
|
195
199
|
it "should provide a method for returning the number of confines" do
|
196
200
|
@resolve = Facter::Util::Resolution.new("yay")
|
197
201
|
@resolve.confine "one" => "foo", "two" => "fee"
|
198
|
-
@resolve.
|
202
|
+
@resolve.weight.should == 2
|
199
203
|
end
|
200
204
|
|
201
205
|
it "should return 0 confines when no confines have been added" do
|
202
|
-
Facter::Util::Resolution.new("yay").
|
206
|
+
Facter::Util::Resolution.new("yay").weight.should == 0
|
207
|
+
end
|
208
|
+
|
209
|
+
it "should provide a way to set the weight" do
|
210
|
+
@resolve = Facter::Util::Resolution.new("yay")
|
211
|
+
@resolve.has_weight(45)
|
212
|
+
@resolve.weight.should == 45
|
213
|
+
end
|
214
|
+
|
215
|
+
it "should allow the weight to override the number of confines" do
|
216
|
+
@resolve = Facter::Util::Resolution.new("yay")
|
217
|
+
@resolve.confine "one" => "foo", "two" => "fee"
|
218
|
+
@resolve.weight.should == 2
|
219
|
+
@resolve.has_weight(45)
|
220
|
+
@resolve.weight.should == 45
|
203
221
|
end
|
204
222
|
|
205
223
|
it "should have a method for determining if it is suitable" do
|
@@ -27,7 +27,12 @@ describe Facter::Util::Uptime do
|
|
27
27
|
end
|
28
28
|
|
29
29
|
it "should use 'sysctl kern.boottime'" do
|
30
|
-
|
30
|
+
if [1].pack("L") == [1].pack("V") # Determine endianness
|
31
|
+
sysctl_output_filename = 'sysctl_kern_boottime_little_endian'
|
32
|
+
else
|
33
|
+
sysctl_output_filename = 'sysctl_kern_boottime_big_endian'
|
34
|
+
end
|
35
|
+
sysctl_output_file = File.join(SPECDIR, 'fixtures', 'uptime', sysctl_output_filename) # Aug 01 14:13:47 -0700 2010
|
31
36
|
Facter::Util::Uptime.stubs(:uptime_sysctl_cmd).returns("cat \"#{sysctl_output_file}\"")
|
32
37
|
Time.stubs(:now).returns Time.parse("Aug 01 15:13:47 -0700 2010") # one hour later
|
33
38
|
Facter::Util::Uptime.get_uptime_seconds_unix.should == 60 * 60
|
data/spec/unit/virtual_spec.rb
CHANGED
@@ -73,6 +73,7 @@ describe "Virtual fact" do
|
|
73
73
|
|
74
74
|
before do
|
75
75
|
FileTest.expects(:exists?).with("/usr/lib/vmware/bin/vmware-vmx").returns false
|
76
|
+
Facter.fact(:operatingsystem).stubs(:value).returns(true)
|
76
77
|
Facter.fact(:architecture).stubs(:value).returns(true)
|
77
78
|
end
|
78
79
|
|
@@ -94,6 +95,12 @@ describe "Virtual fact" do
|
|
94
95
|
Facter.fact(:virtual).value.should == "vmware"
|
95
96
|
end
|
96
97
|
|
98
|
+
it "should be virtualbox with VirtualBox vendor name from lspci" do
|
99
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
100
|
+
Facter::Util::Resolution.stubs(:exec).with('lspci').returns("00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter")
|
101
|
+
Facter.fact(:virtual).value.should == "virtualbox"
|
102
|
+
end
|
103
|
+
|
97
104
|
it "should be vmware with VMWare vendor name from dmidecode" do
|
98
105
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
99
106
|
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
@@ -108,21 +115,38 @@ describe "Virtual fact" do
|
|
108
115
|
Facter.fact(:virtual).value.should == "parallels"
|
109
116
|
end
|
110
117
|
|
111
|
-
it "should be
|
118
|
+
it "should be virtualbox with VirtualBox vendor name from dmidecode" do
|
112
119
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
113
120
|
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
121
|
+
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns("BIOS Information\nVendor: innotek GmbH\nVersion: VirtualBox\n\nSystem Information\nManufacturer: innotek GmbH\nProduct Name: VirtualBox\nFamily: Virtual Machine")
|
122
|
+
Facter.fact(:virtual).value.should == "virtualbox"
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
describe "on Solaris" do
|
127
|
+
it "should be vmware with VMWare vendor name from prtdiag" do
|
128
|
+
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
129
|
+
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
114
130
|
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns(nil)
|
115
|
-
Facter::Util::Resolution.stubs(:exec).with('prtdiag').returns("System Configuration: VMware, Inc. VMware Virtual Platform")
|
131
|
+
Facter::Util::Resolution.stubs(:exec).with('prtdiag', '/bin/sh').returns("System Configuration: VMware, Inc. VMware Virtual Platform")
|
116
132
|
Facter.fact(:virtual).value.should == "vmware"
|
117
133
|
end
|
118
134
|
|
119
135
|
it "should be parallels with Parallels vendor name from prtdiag" do
|
120
|
-
Facter.fact(:kernel).stubs(:value).returns("
|
136
|
+
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
121
137
|
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
122
138
|
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns(nil)
|
123
|
-
Facter::Util::Resolution.stubs(:exec).with('prtdiag').returns("System Configuration: Parallels Virtual Platform")
|
139
|
+
Facter::Util::Resolution.stubs(:exec).with('prtdiag', '/bin/sh').returns("System Configuration: Parallels Virtual Platform")
|
124
140
|
Facter.fact(:virtual).value.should == "parallels"
|
125
141
|
end
|
142
|
+
|
143
|
+
it "should be virtualbox with VirtualBox vendor name from prtdiag" do
|
144
|
+
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
145
|
+
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
146
|
+
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns(nil)
|
147
|
+
Facter::Util::Resolution.stubs(:exec).with('prtdiag', '/bin/sh').returns("System Configuration: innotek GmbH VirtualBox")
|
148
|
+
Facter.fact(:virtual).value.should == "virtualbox"
|
149
|
+
end
|
126
150
|
end
|
127
151
|
end
|
128
152
|
|
@@ -152,6 +176,12 @@ describe "is_virtual fact" do
|
|
152
176
|
Facter.fact(:is_virtual).value.should == "true"
|
153
177
|
end
|
154
178
|
|
179
|
+
it "should be true when running on virtualbox" do
|
180
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
181
|
+
Facter.fact(:virtual).stubs(:value).returns("virtualbox")
|
182
|
+
Facter.fact(:is_virtual).value.should == "true"
|
183
|
+
end
|
184
|
+
|
155
185
|
it "should be true when running on openvz" do
|
156
186
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
157
187
|
Facter.fact(:virtual).stubs(:value).returns("openvzve")
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 15
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 6
|
9
|
+
- 0
|
10
|
+
version: 1.6.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Puppet Labs
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-23 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -28,175 +28,173 @@ extensions: []
|
|
28
28
|
extra_rdoc_files: []
|
29
29
|
|
30
30
|
files:
|
31
|
-
- README.rst
|
32
|
-
- INSTALL
|
33
|
-
- Rakefile
|
34
|
-
- COPYING
|
35
|
-
- README
|
36
31
|
- CHANGELOG
|
32
|
+
- INSTALL
|
37
33
|
- LICENSE
|
38
|
-
-
|
34
|
+
- Rakefile
|
35
|
+
- README.md
|
39
36
|
- install.rb
|
40
37
|
- bin/facter
|
41
|
-
- lib/facter.rb
|
42
|
-
- lib/facter/timezone.rb
|
43
|
-
- lib/facter/uptime_hours.rb
|
44
|
-
- lib/facter/id.rb
|
45
|
-
- lib/facter/network.rb
|
46
|
-
- lib/facter/ec2.rb
|
47
|
-
- lib/facter/operatingsystemrelease.rb
|
48
38
|
- lib/facter/application.rb
|
49
|
-
- lib/facter/
|
50
|
-
- lib/facter/netmask.rb
|
39
|
+
- lib/facter/architecture.rb
|
51
40
|
- lib/facter/arp.rb
|
52
|
-
- lib/facter/
|
53
|
-
- lib/facter/
|
54
|
-
- lib/facter/
|
55
|
-
- lib/facter/
|
56
|
-
- lib/facter/
|
57
|
-
- lib/facter/
|
58
|
-
- lib/facter/util/netmask.rb
|
59
|
-
- lib/facter/util/values.rb
|
60
|
-
- lib/facter/util/uptime.rb
|
61
|
-
- lib/facter/util/collection.rb
|
62
|
-
- lib/facter/util/macaddress.rb
|
63
|
-
- lib/facter/util/manufacturer.rb
|
64
|
-
- lib/facter/util/xendomains.rb
|
65
|
-
- lib/facter/util/memory.rb
|
66
|
-
- lib/facter/util/macosx.rb
|
67
|
-
- lib/facter/util/virtual.rb
|
68
|
-
- lib/facter/util/loader.rb
|
69
|
-
- lib/facter/util/plist.rb
|
70
|
-
- lib/facter/util/plist/parser.rb
|
71
|
-
- lib/facter/util/plist/generator.rb
|
72
|
-
- lib/facter/interfaces.rb
|
73
|
-
- lib/facter/kernelversion.rb
|
74
|
-
- lib/facter/puppetversion.rb
|
75
|
-
- lib/facter/ssh.rb
|
41
|
+
- lib/facter/Cfkey.rb
|
42
|
+
- lib/facter/domain.rb
|
43
|
+
- lib/facter/ec2.rb
|
44
|
+
- lib/facter/facterversion.rb
|
45
|
+
- lib/facter/fqdn.rb
|
46
|
+
- lib/facter/hardwareisa.rb
|
76
47
|
- lib/facter/hardwaremodel.rb
|
77
|
-
- lib/facter/uptime.rb
|
78
|
-
- lib/facter/processor.rb
|
79
|
-
- lib/facter/rubysitedir.rb
|
80
48
|
- lib/facter/hostname.rb
|
81
|
-
- lib/facter/
|
82
|
-
- lib/facter/
|
83
|
-
- lib/facter/rubyversion.rb
|
84
|
-
- lib/facter/macaddress.rb
|
85
|
-
- lib/facter/fqdn.rb
|
49
|
+
- lib/facter/id.rb
|
50
|
+
- lib/facter/interfaces.rb
|
86
51
|
- lib/facter/ipaddress.rb
|
87
|
-
- lib/facter/physicalprocessorcount.rb
|
88
|
-
- lib/facter/manufacturer.rb
|
89
|
-
- lib/facter/Cfkey.rb
|
90
|
-
- lib/facter/xendomains.rb
|
91
|
-
- lib/facter/uniqueid.rb
|
92
|
-
- lib/facter/path.rb
|
93
|
-
- lib/facter/kernelrelease.rb
|
94
|
-
- lib/facter/memory.rb
|
95
|
-
- lib/facter/macosx.rb
|
96
|
-
- lib/facter/uptime_days.rb
|
97
|
-
- lib/facter/selinux.rb
|
98
52
|
- lib/facter/ipaddress6.rb
|
99
|
-
- lib/facter/
|
53
|
+
- lib/facter/iphostnumber.rb
|
100
54
|
- lib/facter/kernel.rb
|
101
|
-
- lib/facter/architecture.rb
|
102
|
-
- lib/facter/operatingsystem.rb
|
103
|
-
- lib/facter/virtual.rb
|
104
55
|
- lib/facter/kernelmajversion.rb
|
105
|
-
- lib/facter/
|
56
|
+
- lib/facter/kernelrelease.rb
|
57
|
+
- lib/facter/kernelversion.rb
|
106
58
|
- lib/facter/lsb.rb
|
107
|
-
- lib/facter/
|
59
|
+
- lib/facter/lsbmajdistrelease.rb
|
60
|
+
- lib/facter/macaddress.rb
|
61
|
+
- lib/facter/macosx.rb
|
62
|
+
- lib/facter/manufacturer.rb
|
63
|
+
- lib/facter/memory.rb
|
64
|
+
- lib/facter/netmask.rb
|
65
|
+
- lib/facter/network.rb
|
66
|
+
- lib/facter/operatingsystem.rb
|
67
|
+
- lib/facter/operatingsystemrelease.rb
|
68
|
+
- lib/facter/path.rb
|
69
|
+
- lib/facter/physicalprocessorcount.rb
|
70
|
+
- lib/facter/processor.rb
|
108
71
|
- lib/facter/ps.rb
|
109
|
-
- lib/facter/
|
110
|
-
-
|
72
|
+
- lib/facter/puppetversion.rb
|
73
|
+
- lib/facter/rubysitedir.rb
|
74
|
+
- lib/facter/rubyversion.rb
|
75
|
+
- lib/facter/selinux.rb
|
76
|
+
- lib/facter/ssh.rb
|
77
|
+
- lib/facter/timezone.rb
|
78
|
+
- lib/facter/uniqueid.rb
|
79
|
+
- lib/facter/uptime.rb
|
80
|
+
- lib/facter/uptime_days.rb
|
81
|
+
- lib/facter/uptime_hours.rb
|
82
|
+
- lib/facter/uptime_seconds.rb
|
83
|
+
- lib/facter/util/collection.rb
|
84
|
+
- lib/facter/util/confine.rb
|
85
|
+
- lib/facter/util/fact.rb
|
86
|
+
- lib/facter/util/ip.rb
|
87
|
+
- lib/facter/util/loader.rb
|
88
|
+
- lib/facter/util/macaddress.rb
|
89
|
+
- lib/facter/util/macosx.rb
|
90
|
+
- lib/facter/util/manufacturer.rb
|
91
|
+
- lib/facter/util/memory.rb
|
92
|
+
- lib/facter/util/netmask.rb
|
93
|
+
- lib/facter/util/plist/generator.rb
|
94
|
+
- lib/facter/util/plist/parser.rb
|
95
|
+
- lib/facter/util/plist.rb
|
96
|
+
- lib/facter/util/resolution.rb
|
97
|
+
- lib/facter/util/uptime.rb
|
98
|
+
- lib/facter/util/values.rb
|
99
|
+
- lib/facter/util/virtual.rb
|
100
|
+
- lib/facter/util/vlans.rb
|
101
|
+
- lib/facter/util/xendomains.rb
|
102
|
+
- lib/facter/virtual.rb
|
103
|
+
- lib/facter/vlans.rb
|
104
|
+
- lib/facter/xendomains.rb
|
105
|
+
- lib/facter.rb
|
111
106
|
- conf/osx/createpackage.sh
|
107
|
+
- conf/osx/PackageInfo.plist
|
112
108
|
- conf/osx/preflight
|
113
109
|
- conf/redhat/facter.spec
|
114
110
|
- conf/solaris/pkginfo
|
115
111
|
- etc/facter.conf
|
116
|
-
- spec/
|
117
|
-
- spec/
|
118
|
-
- spec/fixtures/netstat/ubuntu_7_04
|
119
|
-
- spec/fixtures/netstat/open_solaris_10
|
120
|
-
- spec/fixtures/netstat/centos_5_5
|
121
|
-
- spec/fixtures/netstat/darwin_10_6_4
|
122
|
-
- spec/fixtures/netstat/open_solaris_b132
|
123
|
-
- spec/fixtures/netstat/fedora_10
|
124
|
-
- spec/fixtures/netstat/darwin_10_6_6_dualstack
|
125
|
-
- spec/fixtures/netstat/darwin_10_3_0
|
126
|
-
- spec/fixtures/netstat/darwin_9_8_0
|
127
|
-
- spec/fixtures/ifconfig/darwin_10_6_4_en1
|
128
|
-
- spec/fixtures/ifconfig/ubuntu_7_04
|
112
|
+
- spec/fixtures/ifconfig/bsd_ifconfig_all_with_multiple_interfaces
|
113
|
+
- spec/fixtures/ifconfig/centos_5_5
|
129
114
|
- spec/fixtures/ifconfig/centos_5_5_eth0
|
115
|
+
- spec/fixtures/ifconfig/darwin_10_3_0
|
130
116
|
- spec/fixtures/ifconfig/darwin_10_3_0_en0
|
131
|
-
- spec/fixtures/ifconfig/
|
132
|
-
- spec/fixtures/ifconfig/
|
133
|
-
- spec/fixtures/ifconfig/
|
134
|
-
- spec/fixtures/ifconfig/fedora_10_eth0
|
117
|
+
- spec/fixtures/ifconfig/darwin_10_6_4
|
118
|
+
- spec/fixtures/ifconfig/darwin_10_6_4_en1
|
119
|
+
- spec/fixtures/ifconfig/darwin_10_6_6_dualstack
|
135
120
|
- spec/fixtures/ifconfig/darwin_10_6_6_dualstack_en1
|
121
|
+
- spec/fixtures/ifconfig/darwin_9_8_0
|
136
122
|
- spec/fixtures/ifconfig/darwin_9_8_0_en0
|
137
|
-
- spec/fixtures/ifconfig/bsd_ifconfig_all_with_multiple_interfaces
|
138
|
-
- spec/fixtures/ifconfig/darwin_10_6_4
|
139
|
-
- spec/fixtures/ifconfig/open_solaris_b132
|
140
|
-
- spec/fixtures/ifconfig/fedora_10
|
141
123
|
- spec/fixtures/ifconfig/darwin_ifconfig_all_with_multiple_interfaces
|
124
|
+
- spec/fixtures/ifconfig/fedora_10
|
125
|
+
- spec/fixtures/ifconfig/fedora_10_eth0
|
142
126
|
- spec/fixtures/ifconfig/fedora_13
|
143
127
|
- spec/fixtures/ifconfig/fedora_13_eth0
|
144
|
-
- spec/fixtures/ifconfig/darwin_10_6_6_dualstack
|
145
|
-
- spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces
|
146
|
-
- spec/fixtures/ifconfig/darwin_10_3_0
|
147
|
-
- spec/fixtures/ifconfig/darwin_9_8_0
|
148
|
-
- spec/fixtures/ifconfig/freebsd_6_0
|
149
|
-
- spec/fixtures/ifconfig/fedora_8_eth0
|
150
128
|
- spec/fixtures/ifconfig/fedora_8
|
129
|
+
- spec/fixtures/ifconfig/fedora_8_eth0
|
130
|
+
- spec/fixtures/ifconfig/freebsd_6_0
|
131
|
+
- spec/fixtures/ifconfig/linux_ifconfig_all_with_multiple_interfaces
|
132
|
+
- spec/fixtures/ifconfig/open_solaris_10
|
133
|
+
- spec/fixtures/ifconfig/open_solaris_b132
|
134
|
+
- spec/fixtures/ifconfig/sunos_ifconfig_all_with_multiple_interfaces
|
135
|
+
- spec/fixtures/ifconfig/ubuntu_7_04
|
151
136
|
- spec/fixtures/ifconfig/ubuntu_7_04_eth0
|
152
|
-
- spec/fixtures/
|
153
|
-
- spec/fixtures/
|
154
|
-
- spec/fixtures/
|
155
|
-
- spec/fixtures/
|
137
|
+
- spec/fixtures/netstat/centos_5_5
|
138
|
+
- spec/fixtures/netstat/darwin_10_3_0
|
139
|
+
- spec/fixtures/netstat/darwin_10_6_4
|
140
|
+
- spec/fixtures/netstat/darwin_10_6_6_dualstack
|
141
|
+
- spec/fixtures/netstat/darwin_9_8_0
|
142
|
+
- spec/fixtures/netstat/fedora_10
|
143
|
+
- spec/fixtures/netstat/open_solaris_10
|
144
|
+
- spec/fixtures/netstat/open_solaris_b132
|
145
|
+
- spec/fixtures/netstat/ubuntu_7_04
|
156
146
|
- spec/fixtures/uptime/kstat_boot_time
|
157
|
-
- spec/fixtures/uptime/
|
147
|
+
- spec/fixtures/uptime/sysctl_kern_boottime_big_endian
|
148
|
+
- spec/fixtures/uptime/sysctl_kern_boottime_little_endian
|
158
149
|
- spec/fixtures/uptime/ubuntu_proc_uptime
|
159
150
|
- spec/fixtures/uptime/who_b_boottime
|
160
|
-
- spec/
|
161
|
-
- spec/
|
162
|
-
- spec/
|
163
|
-
- spec/
|
164
|
-
- spec/
|
165
|
-
- spec/
|
166
|
-
- spec/
|
151
|
+
- spec/fixtures/virtual/proc_self_status/vserver_2_1/guest
|
152
|
+
- spec/fixtures/virtual/proc_self_status/vserver_2_1/host
|
153
|
+
- spec/fixtures/virtual/proc_self_status/vserver_2_3/guest
|
154
|
+
- spec/fixtures/virtual/proc_self_status/vserver_2_3/host
|
155
|
+
- spec/integration/facter_spec.rb
|
156
|
+
- spec/spec.opts
|
157
|
+
- spec/spec_helper.rb
|
158
|
+
- spec/unit/data/6.0-STABLE_FreeBSD_ifconfig
|
167
159
|
- spec/unit/data/darwin_ifconfig_all_with_multiple_interfaces
|
160
|
+
- spec/unit/data/darwin_ifconfig_single_interface
|
161
|
+
- spec/unit/data/debian_kfreebsd_ifconfig
|
168
162
|
- spec/unit/data/freebsd_dmidecode
|
169
|
-
- spec/unit/data/
|
170
|
-
- spec/unit/data/solaris_ifconfig_single_interface
|
171
|
-
- spec/unit/data/opensolaris_smbios
|
163
|
+
- spec/unit/data/hpux_ifconfig_single_interface
|
172
164
|
- spec/unit/data/hpux_netstat_all_interfaces
|
173
165
|
- spec/unit/data/linux_dmidecode_with_spaces
|
174
|
-
- spec/unit/data/xendomains
|
175
|
-
- spec/unit/data/6.0-STABLE_FreeBSD_ifconfig
|
176
|
-
- spec/unit/data/Mac_OS_X_10.5.5_ifconfig
|
177
166
|
- spec/unit/data/linux_ifconfig_all_with_single_interface
|
178
|
-
- spec/unit/
|
179
|
-
- spec/unit/
|
167
|
+
- spec/unit/data/linux_vlan_config
|
168
|
+
- spec/unit/data/Mac_OS_X_10.5.5_ifconfig
|
169
|
+
- spec/unit/data/opensolaris_smbios
|
170
|
+
- spec/unit/data/selinux_sestatus
|
171
|
+
- spec/unit/data/solaris_ifconfig_all_with_multiple_interfaces
|
172
|
+
- spec/unit/data/solaris_ifconfig_single_interface
|
173
|
+
- spec/unit/data/xendomains
|
174
|
+
- spec/unit/facter_spec.rb
|
175
|
+
- spec/unit/id_spec.rb
|
176
|
+
- spec/unit/interfaces_spec.rb
|
177
|
+
- spec/unit/ipaddress6_spec.rb
|
178
|
+
- spec/unit/memory_spec.rb
|
179
|
+
- spec/unit/operatingsystem_spec.rb
|
180
|
+
- spec/unit/operatingsystemrelease_spec.rb
|
181
|
+
- spec/unit/physicalprocessorcount_spec.rb
|
182
|
+
- spec/unit/selinux_spec.rb
|
183
|
+
- spec/unit/uptime_spec.rb
|
180
184
|
- spec/unit/util/collection_spec.rb
|
181
|
-
- spec/unit/util/uptime_spec.rb
|
182
|
-
- spec/unit/util/loader_spec.rb
|
183
|
-
- spec/unit/util/resolution_spec.rb
|
184
185
|
- spec/unit/util/confine_spec.rb
|
185
|
-
- spec/unit/util/xendomains_spec.rb
|
186
|
-
- spec/unit/util/virtual_spec.rb
|
187
|
-
- spec/unit/util/macaddress_spec.rb
|
188
186
|
- spec/unit/util/fact_spec.rb
|
189
|
-
- spec/unit/util/manufacturer_spec.rb
|
190
187
|
- spec/unit/util/ip_spec.rb
|
191
|
-
- spec/unit/
|
192
|
-
- spec/unit/
|
193
|
-
- spec/unit/
|
194
|
-
- spec/unit/
|
195
|
-
- spec/unit/
|
188
|
+
- spec/unit/util/loader_spec.rb
|
189
|
+
- spec/unit/util/macaddress_spec.rb
|
190
|
+
- spec/unit/util/macosx_spec.rb
|
191
|
+
- spec/unit/util/manufacturer_spec.rb
|
192
|
+
- spec/unit/util/resolution_spec.rb
|
193
|
+
- spec/unit/util/uptime_spec.rb
|
194
|
+
- spec/unit/util/virtual_spec.rb
|
195
|
+
- spec/unit/util/vlans_spec.rb
|
196
|
+
- spec/unit/util/xendomains_spec.rb
|
196
197
|
- spec/unit/virtual_spec.rb
|
197
|
-
- spec/unit/interfaces_spec.rb
|
198
|
-
- spec/unit/operatingsystemrelease_spec.rb
|
199
|
-
- spec/integration/facter_spec.rb
|
200
198
|
has_rdoc: true
|
201
199
|
homepage: http://puppetlabs.com
|
202
200
|
licenses: []
|
@@ -231,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
229
|
requirements: []
|
232
230
|
|
233
231
|
rubyforge_project: facter
|
234
|
-
rubygems_version: 1.3
|
232
|
+
rubygems_version: 1.5.3
|
235
233
|
signing_key:
|
236
234
|
specification_version: 3
|
237
235
|
summary: Facter, a system inventory tool
|