facter 1.6.0 → 1.6.1
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/CHANGELOG +53 -0
- data/CONTRIBUTING.md +299 -0
- data/Rakefile +3 -3
- data/conf/redhat/facter.spec +1 -1
- data/install.rb +25 -10
- data/lib/facter.rb +16 -1
- data/lib/facter/arp.rb +1 -1
- data/lib/facter/augeasversion.rb +29 -0
- data/lib/facter/domain.rb +9 -10
- data/lib/facter/hardwareisa.rb +2 -2
- data/lib/facter/hostname.rb +4 -9
- data/lib/facter/ipaddress6.rb +9 -0
- data/lib/facter/kernel.rb +3 -3
- data/lib/facter/kernelrelease.rb +2 -4
- data/lib/facter/lsbmajdistrelease.rb +1 -1
- data/lib/facter/macaddress.rb +11 -31
- data/lib/facter/manufacturer.rb +5 -0
- data/lib/facter/memory.rb +32 -4
- data/lib/facter/operatingsystem.rb +6 -0
- data/lib/facter/operatingsystemrelease.rb +11 -2
- data/lib/facter/physicalprocessorcount.rb +8 -0
- data/lib/facter/processor.rb +38 -0
- data/lib/facter/ps.rb +5 -0
- data/lib/facter/selinux.rb +63 -48
- data/lib/facter/uniqueid.rb +2 -2
- data/lib/facter/util/config.rb +9 -0
- data/lib/facter/util/ip.rb +26 -3
- data/lib/facter/util/loader.rb +11 -0
- data/lib/facter/util/macaddress.rb +20 -0
- data/lib/facter/util/manufacturer.rb +10 -5
- data/lib/facter/util/resolution.rb +18 -9
- data/lib/facter/util/uptime.rb +6 -5
- data/lib/facter/util/wmi.rb +16 -0
- data/lib/facter/virtual.rb +15 -8
- data/spec/fixtures/netsh/windows_netsh_addresses_with_multiple_interfaces +35 -0
- data/spec/fixtures/unit/util/loader/nosuchfact.rb +1 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/data/windows_netsh_all_interfaces +12 -0
- data/spec/unit/data/windows_netsh_single_interface +7 -0
- data/spec/unit/data/windows_netsh_single_interface6 +18 -0
- data/spec/unit/domain_spec.rb +91 -0
- data/spec/unit/facter_spec.rb +21 -0
- data/spec/unit/hostname_spec.rb +38 -0
- data/spec/unit/id_spec.rb +6 -5
- data/spec/unit/interfaces_spec.rb +7 -0
- data/spec/unit/ipaddress6_spec.rb +19 -0
- data/spec/unit/macaddress_spec.rb +38 -0
- data/spec/unit/memory_spec.rb +26 -0
- data/spec/unit/operatingsystem_spec.rb +28 -0
- data/spec/unit/operatingsystemrelease_spec.rb +19 -8
- data/spec/unit/physicalprocessorcount_spec.rb +11 -0
- data/spec/unit/processor_spec.rb +66 -0
- data/spec/unit/selinux_spec.rb +1 -0
- data/spec/unit/util/ip_spec.rb +83 -21
- data/spec/unit/util/loader_spec.rb +8 -0
- data/spec/unit/util/macaddress_spec.rb +28 -1
- data/spec/unit/util/manufacturer_spec.rb +21 -0
- data/spec/unit/util/resolution_spec.rb +26 -14
- data/spec/unit/util/uptime_spec.rb +7 -1
- data/spec/unit/util/wmi_spec.rb +20 -0
- data/spec/unit/virtual_spec.rb +41 -5
- metadata +19 -8
- data/spec/spec.opts +0 -5
@@ -280,4 +280,12 @@ describe Facter::Util::Loader do
|
|
280
280
|
@loader.load_all
|
281
281
|
end
|
282
282
|
end
|
283
|
+
|
284
|
+
it "should load facts on the facter search path only once" do
|
285
|
+
facterlibdir = File.expand_path(File.dirname(__FILE__) + '../../../fixtures/unit/util/loader')
|
286
|
+
with_env 'FACTERLIB' => facterlibdir do
|
287
|
+
Facter::Util::Loader.new.load_all
|
288
|
+
Facter.value(:nosuchfact).should be_nil
|
289
|
+
end
|
290
|
+
end
|
283
291
|
end
|
@@ -4,7 +4,17 @@ require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
|
4
4
|
|
5
5
|
require 'facter/util/macaddress'
|
6
6
|
|
7
|
-
describe "
|
7
|
+
describe "standardized MAC address" do
|
8
|
+
it "should have zeroes added if missing" do
|
9
|
+
Facter::Util::Macaddress::standardize("0:ab:cd:e:12:3").should == "00:ab:cd:0e:12:03"
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should be identical if each octet already has two digits" do
|
13
|
+
Facter::Util::Macaddress::standardize("00:ab:cd:0e:12:03").should == "00:ab:cd:0e:12:03"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "Darwin", :unless => Facter.value(:operatingsystem) == 'windows' do
|
8
18
|
test_cases = [
|
9
19
|
# version, iface, real macaddress, fallback macaddress
|
10
20
|
["9.8.0", 'en0', "00:17:f2:06:e4:2e", "00:17:f2:06:e4:2e"],
|
@@ -66,3 +76,20 @@ describe "Darwin" do
|
|
66
76
|
end
|
67
77
|
end
|
68
78
|
end
|
79
|
+
|
80
|
+
describe "Windows" do
|
81
|
+
it "should return the first macaddress" do
|
82
|
+
Facter.fact(:kernel).stubs(:value).returns("windows")
|
83
|
+
|
84
|
+
nic = stubs 'nic'
|
85
|
+
nic.stubs(:MacAddress).returns("00:0C:29:0C:9E:9F")
|
86
|
+
|
87
|
+
nic2 = stubs 'nic'
|
88
|
+
nic2.stubs(:MacAddress).returns("00:0C:29:0C:9E:AF")
|
89
|
+
|
90
|
+
require 'facter/util/wmi'
|
91
|
+
Facter::Util::WMI.stubs(:execquery).with("select MACAddress from Win32_NetworkAdapterConfiguration where IPEnabled = True").returns([nic, nic2])
|
92
|
+
|
93
|
+
Facter.fact(:macaddress).value.should == "00:0C:29:0C:9E:9F"
|
94
|
+
end
|
95
|
+
end
|
@@ -129,4 +129,25 @@ Handle 0x001F
|
|
129
129
|
find_product_name("FreeBSD").should == find_product_name("SunOS")
|
130
130
|
end
|
131
131
|
|
132
|
+
it "should find information on Windows" do
|
133
|
+
Facter.fact(:kernel).stubs(:value).returns("windows")
|
134
|
+
require 'facter/util/wmi'
|
135
|
+
|
136
|
+
bios = stubs 'bios'
|
137
|
+
bios.stubs(:Manufacturer).returns("Phoenix Technologies LTD")
|
138
|
+
bios.stubs(:Serialnumber).returns("56 4d 40 2b 4d 81 94 d6-e6 c5 56 a4 56 0c 9e 9f")
|
139
|
+
|
140
|
+
product = stubs 'product'
|
141
|
+
product.stubs(:Name).returns("VMware Virtual Platform")
|
142
|
+
|
143
|
+
wmi = stubs 'wmi'
|
144
|
+
wmi.stubs(:ExecQuery).with("select * from Win32_Bios").returns([bios])
|
145
|
+
wmi.stubs(:ExecQuery).with("select * from Win32_Bios").returns([bios])
|
146
|
+
wmi.stubs(:ExecQuery).with("select * from Win32_ComputerSystemProduct").returns([product])
|
147
|
+
|
148
|
+
Facter::Util::WMI.stubs(:connect).returns(wmi)
|
149
|
+
Facter.value(:manufacturer).should == "Phoenix Technologies LTD"
|
150
|
+
Facter.value(:serialnumber).should == "56 4d 40 2b 4d 81 94 d6-e6 c5 56 a4 56 0c 9e 9f"
|
151
|
+
Facter.value(:productname).should == "VMware Virtual Platform"
|
152
|
+
end
|
132
153
|
end
|
@@ -34,6 +34,7 @@ describe Facter::Util::Resolution do
|
|
34
34
|
end
|
35
35
|
|
36
36
|
it "should default to nil for interpreter" do
|
37
|
+
Facter.expects(:warnonce).with("The 'Facter::Util::Resolution.interpreter' method is deprecated and will be removed in a future version.")
|
37
38
|
Facter::Util::Resolution.new("yay").interpreter.should be_nil
|
38
39
|
end
|
39
40
|
|
@@ -45,13 +46,25 @@ describe Facter::Util::Resolution do
|
|
45
46
|
|
46
47
|
describe "when setting the code" do
|
47
48
|
before do
|
49
|
+
Facter.stubs(:warnonce)
|
48
50
|
@resolve = Facter::Util::Resolution.new("yay")
|
49
51
|
end
|
50
52
|
|
51
|
-
it "should
|
52
|
-
Facter
|
53
|
-
@resolve.setcode "foo"
|
54
|
-
@resolve.interpreter.should == "
|
53
|
+
it "should deprecate the interpreter argument to 'setcode'" do
|
54
|
+
Facter.expects(:warnonce).with("The interpreter parameter to 'setcode' is deprecated and will be removed in a future version.")
|
55
|
+
@resolve.setcode "foo", "bar"
|
56
|
+
@resolve.interpreter.should == "bar"
|
57
|
+
end
|
58
|
+
|
59
|
+
it "should deprecate the interpreter= method" do
|
60
|
+
Facter.expects(:warnonce).with("The 'Facter::Util::Resolution.interpreter=' method is deprecated and will be removed in a future version.")
|
61
|
+
@resolve.interpreter = "baz"
|
62
|
+
@resolve.interpreter.should == "baz"
|
63
|
+
end
|
64
|
+
|
65
|
+
it "should deprecate the interpreter method" do
|
66
|
+
Facter.expects(:warnonce).with("The 'Facter::Util::Resolution.interpreter' method is deprecated and will be removed in a future version.")
|
67
|
+
@resolve.interpreter
|
55
68
|
end
|
56
69
|
|
57
70
|
it "should set the code to any provided string" do
|
@@ -95,12 +108,11 @@ describe Facter::Util::Resolution do
|
|
95
108
|
describe "on windows" do
|
96
109
|
before do
|
97
110
|
Facter::Util::Resolution::WINDOWS = true
|
98
|
-
Facter::Util::Resolution::INTERPRETER = "cmd.exe"
|
99
111
|
end
|
100
|
-
|
101
|
-
it "should return the result of executing the code
|
112
|
+
|
113
|
+
it "should return the result of executing the code" do
|
102
114
|
@resolve.setcode "/bin/foo"
|
103
|
-
Facter::Util::Resolution.expects(:exec).once.with("/bin/foo"
|
115
|
+
Facter::Util::Resolution.expects(:exec).once.with("/bin/foo").returns "yup"
|
104
116
|
|
105
117
|
@resolve.value.should == "yup"
|
106
118
|
end
|
@@ -115,12 +127,11 @@ describe Facter::Util::Resolution do
|
|
115
127
|
describe "on non-windows systems" do
|
116
128
|
before do
|
117
129
|
Facter::Util::Resolution::WINDOWS = false
|
118
|
-
Facter::Util::Resolution::INTERPRETER = "/bin/sh"
|
119
130
|
end
|
120
|
-
|
121
|
-
it "should return the result of executing the code
|
131
|
+
|
132
|
+
it "should return the result of executing the code" do
|
122
133
|
@resolve.setcode "/bin/foo"
|
123
|
-
Facter::Util::Resolution.expects(:exec).once.with("/bin/foo"
|
134
|
+
Facter::Util::Resolution.expects(:exec).once.with("/bin/foo").returns "yup"
|
124
135
|
|
125
136
|
@resolve.value.should == "yup"
|
126
137
|
end
|
@@ -276,8 +287,9 @@ describe Facter::Util::Resolution do
|
|
276
287
|
|
277
288
|
# It's not possible, AFAICT, to mock %x{}, so I can't really test this bit.
|
278
289
|
describe "when executing code" do
|
279
|
-
it "should
|
280
|
-
|
290
|
+
it "should deprecate the interpreter parameter" do
|
291
|
+
Facter.expects(:warnonce).with("The interpreter parameter to 'exec' is deprecated and will be removed in a future version.")
|
292
|
+
Facter::Util::Resolution.exec("/something", "/bin/perl")
|
281
293
|
end
|
282
294
|
|
283
295
|
it "should execute the binary" do
|
@@ -6,7 +6,7 @@ require 'facter/util/uptime'
|
|
6
6
|
|
7
7
|
describe Facter::Util::Uptime do
|
8
8
|
|
9
|
-
describe ".get_uptime_seconds_unix" do
|
9
|
+
describe ".get_uptime_seconds_unix", :unless => Facter.value(:operatingsystem) == 'windows' do
|
10
10
|
describe "when /proc/uptime is available" do
|
11
11
|
before do
|
12
12
|
uptime_file = File.join(SPECDIR, "fixtures", "uptime", "ubuntu_proc_uptime")
|
@@ -75,4 +75,10 @@ describe Facter::Util::Uptime do
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|
78
|
+
|
79
|
+
describe ".get_uptime_seconds_win", :if => Facter.value(:operatingsystem) == 'windows' do
|
80
|
+
it "should return a postive value" do
|
81
|
+
Facter::Util::Uptime.get_uptime_seconds_win.should > 0
|
82
|
+
end
|
83
|
+
end
|
78
84
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
4
|
+
|
5
|
+
require 'facter/util/wmi'
|
6
|
+
|
7
|
+
describe Facter::Util::WMI do
|
8
|
+
let(:connection) { stub 'connection' }
|
9
|
+
|
10
|
+
it "should default to localhost" do
|
11
|
+
Facter::Util::WMI.wmi_resource_uri.should == "winmgmts:{impersonationLevel=impersonate}!//./root/cimv2"
|
12
|
+
end
|
13
|
+
|
14
|
+
it "should execute the query on the connection" do
|
15
|
+
Facter::Util::WMI.stubs(:connect).returns(connection)
|
16
|
+
connection.stubs(:execquery).with("select * from Win32_OperatingSystem")
|
17
|
+
|
18
|
+
Facter::Util::WMI.execquery("select * from Win32_OperatingSystem")
|
19
|
+
end
|
20
|
+
end
|
data/spec/unit/virtual_spec.rb
CHANGED
@@ -72,7 +72,7 @@ describe "Virtual fact" do
|
|
72
72
|
describe "on Linux" do
|
73
73
|
|
74
74
|
before do
|
75
|
-
|
75
|
+
Facter::Util::Resolution.expects(:exec).with("vmware -v").returns false
|
76
76
|
Facter.fact(:operatingsystem).stubs(:value).returns(true)
|
77
77
|
Facter.fact(:architecture).stubs(:value).returns(true)
|
78
78
|
end
|
@@ -108,6 +108,19 @@ describe "Virtual fact" do
|
|
108
108
|
Facter.fact(:virtual).value.should == "vmware"
|
109
109
|
end
|
110
110
|
|
111
|
+
it "should be xenhvm with Xen HVM vendor name from lspci" do
|
112
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
113
|
+
Facter::Util::Resolution.stubs(:exec).with('lspci').returns("00:03.0 Unassigned class [ff80]: XenSource, Inc. Xen Platform Device (rev 01)")
|
114
|
+
Facter.fact(:virtual).value.should == "xenhvm"
|
115
|
+
end
|
116
|
+
|
117
|
+
it "should be xenhvm with Xen HVM vendor name from dmidecode" do
|
118
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
119
|
+
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
120
|
+
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns("System Information\nManufacturer: Xen\nProduct Name: HVM domU")
|
121
|
+
Facter.fact(:virtual).value.should == "xenhvm"
|
122
|
+
end
|
123
|
+
|
111
124
|
it "should be parallels with Parallels vendor name from dmidecode" do
|
112
125
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
113
126
|
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
@@ -124,11 +137,15 @@ describe "Virtual fact" do
|
|
124
137
|
|
125
138
|
end
|
126
139
|
describe "on Solaris" do
|
140
|
+
before(:each) do
|
141
|
+
Facter::Util::Resolution.expects(:exec).with("vmware -v").returns false
|
142
|
+
end
|
143
|
+
|
127
144
|
it "should be vmware with VMWare vendor name from prtdiag" do
|
128
145
|
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
129
146
|
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
130
147
|
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns(nil)
|
131
|
-
Facter::Util::Resolution.stubs(:exec).with('prtdiag'
|
148
|
+
Facter::Util::Resolution.stubs(:exec).with('prtdiag').returns("System Configuration: VMware, Inc. VMware Virtual Platform")
|
132
149
|
Facter.fact(:virtual).value.should == "vmware"
|
133
150
|
end
|
134
151
|
|
@@ -136,7 +153,7 @@ describe "Virtual fact" do
|
|
136
153
|
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
137
154
|
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
138
155
|
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns(nil)
|
139
|
-
Facter::Util::Resolution.stubs(:exec).with('prtdiag'
|
156
|
+
Facter::Util::Resolution.stubs(:exec).with('prtdiag').returns("System Configuration: Parallels Virtual Platform")
|
140
157
|
Facter.fact(:virtual).value.should == "parallels"
|
141
158
|
end
|
142
159
|
|
@@ -144,7 +161,7 @@ describe "Virtual fact" do
|
|
144
161
|
Facter.fact(:kernel).stubs(:value).returns("SunOS")
|
145
162
|
Facter::Util::Resolution.stubs(:exec).with('lspci').returns(nil)
|
146
163
|
Facter::Util::Resolution.stubs(:exec).with('dmidecode').returns(nil)
|
147
|
-
Facter::Util::Resolution.stubs(:exec).with('prtdiag'
|
164
|
+
Facter::Util::Resolution.stubs(:exec).with('prtdiag').returns("System Configuration: innotek GmbH VirtualBox")
|
148
165
|
Facter.fact(:virtual).value.should == "virtualbox"
|
149
166
|
end
|
150
167
|
end
|
@@ -164,6 +181,12 @@ describe "is_virtual fact" do
|
|
164
181
|
Facter.fact(:is_virtual).value.should == "false"
|
165
182
|
end
|
166
183
|
|
184
|
+
it "should be true when running on xenhvm" do
|
185
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
186
|
+
Facter.fact(:virtual).stubs(:value).returns("xenhvm")
|
187
|
+
Facter.fact(:is_virtual).value.should == "true"
|
188
|
+
end
|
189
|
+
|
167
190
|
it "should be false when running on physical" do
|
168
191
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
169
192
|
Facter.fact(:virtual).stubs(:value).returns("physical")
|
@@ -182,7 +205,7 @@ describe "is_virtual fact" do
|
|
182
205
|
Facter.fact(:is_virtual).value.should == "true"
|
183
206
|
end
|
184
207
|
|
185
|
-
it "should be true when running on
|
208
|
+
it "should be true when running on openvzve" do
|
186
209
|
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
187
210
|
Facter.fact(:virtual).stubs(:value).returns("openvzve")
|
188
211
|
Facter.fact(:is_virtual).value.should == "true"
|
@@ -214,6 +237,7 @@ describe "is_virtual fact" do
|
|
214
237
|
|
215
238
|
it "should be true when running on S390" do
|
216
239
|
Facter.fact(:architecture).stubs(:value).returns("s390x")
|
240
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
217
241
|
Facter.fact(:virtual).stubs(:value).returns("zlinux")
|
218
242
|
Facter.fact(:is_virtual).value.should == "true"
|
219
243
|
end
|
@@ -223,4 +247,16 @@ describe "is_virtual fact" do
|
|
223
247
|
Facter.fact(:virtual).stubs(:value).returns("parallels")
|
224
248
|
Facter.fact(:is_virtual).value.should == "true"
|
225
249
|
end
|
250
|
+
|
251
|
+
it "should be false on vmware_server" do
|
252
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
253
|
+
Facter.fact(:virtual).stubs(:value).returns("vmware_server")
|
254
|
+
Facter.fact(:is_virtual).value.should == "false"
|
255
|
+
end
|
256
|
+
|
257
|
+
it "should be false on openvz host nodes" do
|
258
|
+
Facter.fact(:kernel).stubs(:value).returns("Linux")
|
259
|
+
Facter.fact(:virtual).stubs(:value).returns("openvzhn")
|
260
|
+
Facter.fact(:is_virtual).value.should == "false"
|
261
|
+
end
|
226
262
|
end
|
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:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 1.6.
|
9
|
+
- 1
|
10
|
+
version: 1.6.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Puppet Labs
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-09-28 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description:
|
@@ -29,6 +28,7 @@ extra_rdoc_files: []
|
|
29
28
|
|
30
29
|
files:
|
31
30
|
- CHANGELOG
|
31
|
+
- CONTRIBUTING.md
|
32
32
|
- INSTALL
|
33
33
|
- LICENSE
|
34
34
|
- Rakefile
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- lib/facter/application.rb
|
39
39
|
- lib/facter/architecture.rb
|
40
40
|
- lib/facter/arp.rb
|
41
|
+
- lib/facter/augeasversion.rb
|
41
42
|
- lib/facter/Cfkey.rb
|
42
43
|
- lib/facter/domain.rb
|
43
44
|
- lib/facter/ec2.rb
|
@@ -81,6 +82,7 @@ files:
|
|
81
82
|
- lib/facter/uptime_hours.rb
|
82
83
|
- lib/facter/uptime_seconds.rb
|
83
84
|
- lib/facter/util/collection.rb
|
85
|
+
- lib/facter/util/config.rb
|
84
86
|
- lib/facter/util/confine.rb
|
85
87
|
- lib/facter/util/fact.rb
|
86
88
|
- lib/facter/util/ip.rb
|
@@ -98,6 +100,7 @@ files:
|
|
98
100
|
- lib/facter/util/values.rb
|
99
101
|
- lib/facter/util/virtual.rb
|
100
102
|
- lib/facter/util/vlans.rb
|
103
|
+
- lib/facter/util/wmi.rb
|
101
104
|
- lib/facter/util/xendomains.rb
|
102
105
|
- lib/facter/virtual.rb
|
103
106
|
- lib/facter/vlans.rb
|
@@ -134,6 +137,7 @@ files:
|
|
134
137
|
- spec/fixtures/ifconfig/sunos_ifconfig_all_with_multiple_interfaces
|
135
138
|
- spec/fixtures/ifconfig/ubuntu_7_04
|
136
139
|
- spec/fixtures/ifconfig/ubuntu_7_04_eth0
|
140
|
+
- spec/fixtures/netsh/windows_netsh_addresses_with_multiple_interfaces
|
137
141
|
- spec/fixtures/netstat/centos_5_5
|
138
142
|
- spec/fixtures/netstat/darwin_10_3_0
|
139
143
|
- spec/fixtures/netstat/darwin_10_6_4
|
@@ -143,6 +147,7 @@ files:
|
|
143
147
|
- spec/fixtures/netstat/open_solaris_10
|
144
148
|
- spec/fixtures/netstat/open_solaris_b132
|
145
149
|
- spec/fixtures/netstat/ubuntu_7_04
|
150
|
+
- spec/fixtures/unit/util/loader/nosuchfact.rb
|
146
151
|
- spec/fixtures/uptime/kstat_boot_time
|
147
152
|
- spec/fixtures/uptime/sysctl_kern_boottime_big_endian
|
148
153
|
- spec/fixtures/uptime/sysctl_kern_boottime_little_endian
|
@@ -153,7 +158,6 @@ files:
|
|
153
158
|
- spec/fixtures/virtual/proc_self_status/vserver_2_3/guest
|
154
159
|
- spec/fixtures/virtual/proc_self_status/vserver_2_3/host
|
155
160
|
- spec/integration/facter_spec.rb
|
156
|
-
- spec/spec.opts
|
157
161
|
- spec/spec_helper.rb
|
158
162
|
- spec/unit/data/6.0-STABLE_FreeBSD_ifconfig
|
159
163
|
- spec/unit/data/darwin_ifconfig_all_with_multiple_interfaces
|
@@ -170,15 +174,22 @@ files:
|
|
170
174
|
- spec/unit/data/selinux_sestatus
|
171
175
|
- spec/unit/data/solaris_ifconfig_all_with_multiple_interfaces
|
172
176
|
- spec/unit/data/solaris_ifconfig_single_interface
|
177
|
+
- spec/unit/data/windows_netsh_all_interfaces
|
178
|
+
- spec/unit/data/windows_netsh_single_interface
|
179
|
+
- spec/unit/data/windows_netsh_single_interface6
|
173
180
|
- spec/unit/data/xendomains
|
181
|
+
- spec/unit/domain_spec.rb
|
174
182
|
- spec/unit/facter_spec.rb
|
183
|
+
- spec/unit/hostname_spec.rb
|
175
184
|
- spec/unit/id_spec.rb
|
176
185
|
- spec/unit/interfaces_spec.rb
|
177
186
|
- spec/unit/ipaddress6_spec.rb
|
187
|
+
- spec/unit/macaddress_spec.rb
|
178
188
|
- spec/unit/memory_spec.rb
|
179
189
|
- spec/unit/operatingsystem_spec.rb
|
180
190
|
- spec/unit/operatingsystemrelease_spec.rb
|
181
191
|
- spec/unit/physicalprocessorcount_spec.rb
|
192
|
+
- spec/unit/processor_spec.rb
|
182
193
|
- spec/unit/selinux_spec.rb
|
183
194
|
- spec/unit/uptime_spec.rb
|
184
195
|
- spec/unit/util/collection_spec.rb
|
@@ -193,9 +204,9 @@ files:
|
|
193
204
|
- spec/unit/util/uptime_spec.rb
|
194
205
|
- spec/unit/util/virtual_spec.rb
|
195
206
|
- spec/unit/util/vlans_spec.rb
|
207
|
+
- spec/unit/util/wmi_spec.rb
|
196
208
|
- spec/unit/util/xendomains_spec.rb
|
197
209
|
- spec/unit/virtual_spec.rb
|
198
|
-
has_rdoc: true
|
199
210
|
homepage: http://puppetlabs.com
|
200
211
|
licenses: []
|
201
212
|
|
@@ -229,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
240
|
requirements: []
|
230
241
|
|
231
242
|
rubyforge_project: facter
|
232
|
-
rubygems_version: 1.
|
243
|
+
rubygems_version: 1.8.10
|
233
244
|
signing_key:
|
234
245
|
specification_version: 3
|
235
246
|
summary: Facter, a system inventory tool
|