summaryrefslogtreecommitdiff
path: root/lib/facter
diff options
context:
space:
mode:
authorHailee Kenney <hailee@puppetlabs.com>2012-07-10 15:24:33 -0700
committerHailee Kenney <hailee@puppetlabs.com>2012-07-10 15:24:33 -0700
commit5fb0ddcf78504ed8d5abda4fb16664e447160106 (patch)
tree769df43901ae71a20f9f50e1fad1618e47666bef /lib/facter
parentd32115979d2a6b1670fe2a59bd7aea9f6d2507d1 (diff)
(#2157) Make facts_dot_d compatible with external facts
Since facts_dot_d will eventually be removed and replaced by external facts, warn users who are using a ttl on their external facts that this feature will not be in Facter external facts. Provide a link to a page explaining how to cache fact values without the ttl functionality.
Diffstat (limited to 'lib/facter')
-rw-r--r--lib/facter/facter_dot_d.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/facter/facter_dot_d.rb b/lib/facter/facter_dot_d.rb
index 3e528ab..c43801c 100644
--- a/lib/facter/facter_dot_d.rb
+++ b/lib/facter/facter_dot_d.rb
@@ -94,6 +94,7 @@ class Facter::Util::DotD
cache_save!
end
else
+ Puppet.deprecation_warning("TTL for external facts is being removed. See http://links.puppetlabs.com/factercaching for more information.")
Facter.debug("Using cached data for #{file}")
end