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.

Files changed (47) hide show
  1. data/CHANGELOG +75 -22
  2. data/COPYING +289 -623
  3. data/Rakefile +60 -55
  4. data/bin/facter +39 -26
  5. data/conf/osx/PackageInfo.plist +30 -30
  6. data/conf/osx/createpackage.sh +17 -17
  7. data/conf/osx/preflight +1 -1
  8. data/install.rb +226 -226
  9. data/lib/facter.rb +12 -12
  10. data/lib/facter/architecture.rb +14 -3
  11. data/lib/facter/ec2.rb +35 -0
  12. data/lib/facter/hardwareisa.rb +1 -1
  13. data/lib/facter/id.rb +1 -1
  14. data/lib/facter/ipaddress.rb +41 -41
  15. data/lib/facter/kernel.rb +2 -2
  16. data/lib/facter/kernelmajversion.rb +5 -0
  17. data/lib/facter/lsb.rb +5 -5
  18. data/lib/facter/lsbmajdistrelease.rb +1 -1
  19. data/lib/facter/macaddress.rb +6 -6
  20. data/lib/facter/manufacturer.rb +8 -8
  21. data/lib/facter/memory.rb +5 -4
  22. data/lib/facter/netmask.rb +4 -4
  23. data/lib/facter/network.rb +4 -5
  24. data/lib/facter/operatingsystem.rb +13 -7
  25. data/lib/facter/operatingsystemrelease.rb +5 -5
  26. data/lib/facter/selinux.rb +45 -0
  27. data/lib/facter/timezone.rb +1 -1
  28. data/lib/facter/uniqueid.rb +2 -2
  29. data/lib/facter/uptime.rb +3 -3
  30. data/lib/facter/util/confine.rb +12 -12
  31. data/lib/facter/util/ip.rb +18 -22
  32. data/lib/facter/util/macosx.rb +5 -0
  33. data/lib/facter/util/manufacturer.rb +37 -37
  34. data/lib/facter/util/plist/generator.rb +181 -179
  35. data/lib/facter/util/plist/parser.rb +162 -163
  36. data/lib/facter/util/resolution.rb +2 -2
  37. data/lib/facter/util/uptime.rb +10 -12
  38. data/lib/facter/util/values.rb +14 -0
  39. data/lib/facter/virtual.rb +54 -34
  40. data/spec/unit/data/darwin_ifconfig_all_with_multiple_interfaces +10 -0
  41. data/spec/unit/operatingsystem.rb +36 -0
  42. data/spec/unit/selinux.rb +48 -0
  43. data/spec/unit/util/confine.rb +70 -5
  44. data/spec/unit/util/ip.rb +29 -3
  45. metadata +89 -77
  46. data/documentation/custom.page +0 -22
  47. data/documentation/index.page +0 -19
@@ -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.
@@ -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$*