]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#9859) Add root_home fact and tests
authorJeff McCune <jeff@puppetlabs.com>
Mon, 3 Oct 2011 18:51:05 +0000 (11:51 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Mon, 3 Oct 2011 18:51:05 +0000 (11:51 -0700)
commit11c18377456bd32fc91af78300e4d4dad2c42a02
treec774302c46efde850662da3c3588d93e21e6f570
parent05018f68199470f5f43e68bd54c7a39c9e8b3a85
(#9859) Add root_home fact and tests

Without this patch applied, the stdlib module does not provide a
root_home fact.  This fact is necessary to easily determine the root
account home directory on platforms Puppet is supported on.

The major variations this fact address are:
---
solaris: /
linux: /root
macosx: /var/root

Spec tests using rspec have been provided as well to cover these three
general cases.  Windows tests are marked as pending.
lib/facter/root_home.rb [new file with mode: 0644]
spec/spec_helper.rb
spec/unit/facter/root_home_spec.rb [new file with mode: 0644]