summaryrefslogtreecommitdiff
path: root/lib/facter
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2011-08-18 10:44:40 -0700
committerJeff McCune <jeff@puppetlabs.com>2011-08-18 10:44:40 -0700
commitd30e7f81d0e64bf438cf68b0208c8f2753903a91 (patch)
treeaa10d754bedc30858dc6aae1ccd3b5b794c57987 /lib/facter
parent06b549b0287d6485048785745876217ee34029d2 (diff)
(#9080) Make facts.d match Facter 2.0
Based on feedback from Luke, the facts.d directory should at least match the directory that will be used by Facter 2.0. Reading #2157 I believe the Facter 2.0 facts.d feature is reasonably API compatible with this custom fact from R.I. so I'm comfortable using the same filesystem path. Change in behavior: Now look for facts in: * /etc/facter/facts.d * /etc/puppetlabs/facter/facts.d
Diffstat (limited to 'lib/facter')
-rw-r--r--lib/facter/facter_dot_d.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/facter/facter_dot_d.rb b/lib/facter/facter_dot_d.rb
index 2e5d865..90586a9 100644
--- a/lib/facter/facter_dot_d.rb
+++ b/lib/facter/facter_dot_d.rb
@@ -179,5 +179,5 @@ class Facter::Util::DotD
end
end
-Facter::Util::DotD.new("/etc/facts.d").create
-Facter::Util::DotD.new("/etc/puppetlabs/facts.d").create
+Facter::Util::DotD.new("/etc/facter/facts.d").create
+Facter::Util::DotD.new("/etc/puppetlabs/facter/facts.d").create