]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
(#2157) Make facts_dot_d compatible with external facts
authorHailee Kenney <hailee@puppetlabs.com>
Tue, 10 Jul 2012 22:24:33 +0000 (15:24 -0700)
committerHailee Kenney <hailee@puppetlabs.com>
Tue, 10 Jul 2012 22:24:33 +0000 (15:24 -0700)
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.

lib/facter/facter_dot_d.rb

index 3e528ab8b2f8c0ae7751141682e1c0e58b02e9f3..c43801c184bb160db8c1b3b5d7a537df8492deca 100644 (file)
@@ -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