facter 1.5.4 → 1.5.5
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 +75 -22
- data/COPYING +289 -623
- data/Rakefile +60 -55
- data/bin/facter +39 -26
- data/conf/osx/PackageInfo.plist +30 -30
- data/conf/osx/createpackage.sh +17 -17
- data/conf/osx/preflight +1 -1
- data/install.rb +226 -226
- data/lib/facter.rb +12 -12
- data/lib/facter/architecture.rb +14 -3
- data/lib/facter/ec2.rb +35 -0
- data/lib/facter/hardwareisa.rb +1 -1
- data/lib/facter/id.rb +1 -1
- data/lib/facter/ipaddress.rb +41 -41
- data/lib/facter/kernel.rb +2 -2
- data/lib/facter/kernelmajversion.rb +5 -0
- data/lib/facter/lsb.rb +5 -5
- data/lib/facter/lsbmajdistrelease.rb +1 -1
- data/lib/facter/macaddress.rb +6 -6
- data/lib/facter/manufacturer.rb +8 -8
- data/lib/facter/memory.rb +5 -4
- data/lib/facter/netmask.rb +4 -4
- data/lib/facter/network.rb +4 -5
- data/lib/facter/operatingsystem.rb +13 -7
- data/lib/facter/operatingsystemrelease.rb +5 -5
- data/lib/facter/selinux.rb +45 -0
- data/lib/facter/timezone.rb +1 -1
- data/lib/facter/uniqueid.rb +2 -2
- data/lib/facter/uptime.rb +3 -3
- data/lib/facter/util/confine.rb +12 -12
- data/lib/facter/util/ip.rb +18 -22
- data/lib/facter/util/macosx.rb +5 -0
- data/lib/facter/util/manufacturer.rb +37 -37
- data/lib/facter/util/plist/generator.rb +181 -179
- data/lib/facter/util/plist/parser.rb +162 -163
- data/lib/facter/util/resolution.rb +2 -2
- data/lib/facter/util/uptime.rb +10 -12
- data/lib/facter/util/values.rb +14 -0
- data/lib/facter/virtual.rb +54 -34
- data/spec/unit/data/darwin_ifconfig_all_with_multiple_interfaces +10 -0
- data/spec/unit/operatingsystem.rb +36 -0
- data/spec/unit/selinux.rb +48 -0
- data/spec/unit/util/confine.rb +70 -5
- data/spec/unit/util/ip.rb +29 -3
- metadata +89 -77
- data/documentation/custom.page +0 -22
- data/documentation/index.page +0 -19
data/documentation/custom.page
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
---
|
2
|
-
inMenu: true
|
3
|
-
directoryName: Custom Facts
|
4
|
-
---
|
5
|
-
|
6
|
-
Facter does everything it can to make adding custom facts easy. It will
|
7
|
-
autoload any files it finds in a ``facter/`` directory in its search
|
8
|
-
path, so you don't need to modify the package files. Also, Facter will
|
9
|
-
search through your environment for any variables whose names start with
|
10
|
-
'FACTER_' (case insensitive) and automatically add those facts.
|
11
|
-
|
12
|
-
As a simple example, here is how I publish my home directory to Puppet:
|
13
|
-
|
14
|
-
Facter.add("home") do
|
15
|
-
setcode do
|
16
|
-
ENV['HOME']
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
I have ~/lib/ruby in my $RUBYLIB environment variable, so I just created
|
21
|
-
~/lib/ruby/facter and dropped the above code into a ``home.rb`` file
|
22
|
-
within that directory.
|
data/documentation/index.page
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
---
|
2
|
-
inMenu: false
|
3
|
-
directoryName: Facter
|
4
|
-
---
|
5
|
-
|
6
|
-
A cross-platform Ruby library for retrieving facts from operating systems.
|
7
|
-
Supports multiple resolution mechanisms, any of which can be restricted to
|
8
|
-
working only on certain operating systems or environments. Facter is especially
|
9
|
-
useful for retrieving things like operating system names, IP addresses, MAC
|
10
|
-
addresses, and SSH keys.
|
11
|
-
|
12
|
-
It is easy to extend Facter to include your own [custom facts](custom.html) or
|
13
|
-
to include additional mechanisms for retrieving facts.
|
14
|
-
|
15
|
-
* [Downloads](/downloads/facter/)
|
16
|
-
* [Bug Tracking](/cgi-bin/facter.cgi)
|
17
|
-
* [API Documentation](/downloads/facter/apidocs/)
|
18
|
-
|
19
|
-
*$Id$*
|